chromium/net/cookies/cookie_base_unittest.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/cookies/cookie_base.h"

#include <string>

#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "net/cookies/cookie_constants.h"
#include "net/cookies/cookie_partition_key.h"
#include "net/test/test_with_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/third_party/mozilla/url_parse.h"

namespace net {
namespace {

// A subclass of CookieBase to allow access to its protected members. Allows
// customizing the Lax-allow-unsafe threshold age.
class TestCookie : public CookieBase {};

class CookieBaseTest : public ::testing::Test, public WithTaskEnvironment {};

// TODO(crbug.com/324405105): Add tests for other CookieBase functionality.

TEST_F(CookieBaseTest, GetLaxAllowUnsafeThresholdAge) {}

TEST_F(CookieBaseTest, GetEffectiveSameSite) {}

// Test behavior where the effective samesite depends on whether the cookie is
// newer than the Lax-allow-unsafe age threshold.
TEST_F(CookieBaseTest, GetEffectiveSameSiteAgeThreshold) {}

}  // namespace
}  // namespace net