chromium/content/browser/attribution_reporting/attribution_cookie_checker_impl_unittest.cc

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

#include "content/browser/attribution_reporting/attribution_cookie_checker_impl.h"

#include <memory>
#include <optional>

#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "base/unguessable_token.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.h"
#include "net/cookies/canonical_cookie.h"
#include "net/cookies/cookie_options.h"
#include "net/cookies/cookie_util.h"
#include "services/network/public/mojom/cookie_manager.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace content {

namespace {

// It is not possible to create a `SameSite: None` cookie insecurely, so
// we can't explicitly test what happens when `secure = false` but the other
// parameters are correct.
struct AttributionCookieParams {};

class AttributionCookieCheckerImplTest : public testing::Test {};

TEST_F(AttributionCookieCheckerImplTest, NoCookie_NotSet) {}

TEST_F(AttributionCookieCheckerImplTest, ValidCookie_Set) {}

TEST_F(AttributionCookieCheckerImplTest, WrongCookieName_NotSet) {}

TEST_F(AttributionCookieCheckerImplTest, WrongDomain_NotSet) {}

TEST_F(AttributionCookieCheckerImplTest, NotHttpOnly_NotSet) {}

TEST_F(AttributionCookieCheckerImplTest, SameSiteLaxMode_NotSet) {}

TEST_F(AttributionCookieCheckerImplTest, SameSiteStrictMode_NotSet) {}

TEST_F(AttributionCookieCheckerImplTest, Partitioned_NotSet) {}

}  // namespace
}  // namespace content