chromium/content/browser/first_party_sets/first_party_sets_handler_impl_browsertest.cc

// Copyright 2023 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/first_party_sets/first_party_sets_handler_impl.h"

#include <optional>

#include "base/test/test_future.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "net/base/schemeful_site.h"
#include "net/dns/mock_host_resolver.h"
#include "net/first_party_sets/first_party_set_entry.h"
#include "net/first_party_sets/global_first_party_sets.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "services/network/public/cpp/network_switches.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace content {

namespace {

constexpr char kSiteA[] =;
constexpr char kSiteB[] =;
constexpr char kSiteC[] =;
constexpr char kSiteD[] =;

}  // namespace

class FirstPartySetsHandlerImplBrowserTest
    : public content::ContentBrowserTest {};

IN_PROC_BROWSER_TEST_F(FirstPartySetsHandlerImplBrowserTest, LocalSwitch) {}

// Verify that when both `kUseFirstPartySet` and `kUseRelatedWebsiteSet`
// switches present, `kUseRelatedWebsiteSet` takes precedence.
class FirstPartySetsHandlerImplWithNewSwitchBrowserTest
    : public FirstPartySetsHandlerImplBrowserTest {};

IN_PROC_BROWSER_TEST_F(FirstPartySetsHandlerImplWithNewSwitchBrowserTest,
                       NewSwitch) {}

}  // namespace content