chromium/chrome/browser/interest_group/interest_group_permissions_browsertest.cc

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

#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "base/test/bind.h"
#include "base/test/test_timeouts.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_attestations/privacy_sandbox_attestations_mixin.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/mixin_based_in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/privacy_sandbox/privacy_sandbox_attestations/privacy_sandbox_attestations.h"
#include "components/privacy_sandbox/privacy_sandbox_settings.h"
#include "content/public/common/content_features.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "third_party/blink/public/common/features.h"

namespace interest_group {

class InterestGroupPermissionsBrowserTest
    : public MixinBasedInProcessBrowserTest {};

class InterestGroupOffBrowserTest : public InterestGroupPermissionsBrowserTest {};

IN_PROC_BROWSER_TEST_F(InterestGroupOffBrowserTest, AdAPIsOffWithoutFlags) {}

class InterestGroupFledgeOnBrowserTest
    : public InterestGroupPermissionsBrowserTest {};

IN_PROC_BROWSER_TEST_F(InterestGroupFledgeOnBrowserTest, FledgeOnWithAPIFlag) {}

class InterestGroupParakeetOnBrowserTest
    : public InterestGroupPermissionsBrowserTest {};

IN_PROC_BROWSER_TEST_F(InterestGroupParakeetOnBrowserTest,
                       ParakeetOnWithAPIFlag) {}

class InterestGroupAPIOnBrowserTest
    : public InterestGroupPermissionsBrowserTest {};

IN_PROC_BROWSER_TEST_F(InterestGroupAPIOnBrowserTest,
                       InterestGroupsOnWithAPIFlag) {}

IN_PROC_BROWSER_TEST_F(InterestGroupPermissionsBrowserTest, CookiesAllowed) {}

IN_PROC_BROWSER_TEST_F(InterestGroupPermissionsBrowserTest,
                       CookiesAllowedForSite) {}

IN_PROC_BROWSER_TEST_F(InterestGroupPermissionsBrowserTest,
                       ThirdPartyCookiesAllowedForSite) {}

IN_PROC_BROWSER_TEST_F(InterestGroupPermissionsBrowserTest, CookiesBlocked) {}

IN_PROC_BROWSER_TEST_F(InterestGroupPermissionsBrowserTest,
                       CookiesBlockedForSite) {}

IN_PROC_BROWSER_TEST_F(InterestGroupPermissionsBrowserTest,
                       ThirdPartyCookiesBlocked) {}

IN_PROC_BROWSER_TEST_F(InterestGroupPermissionsBrowserTest,
                       ThirdPartyCookiesBlockedForSite) {}

class FledgePermissionBrowserTestBaseFeatureDisabled
    : public InterestGroupPermissionsBrowserTest {};

IN_PROC_BROWSER_TEST_F(FledgePermissionBrowserTestBaseFeatureDisabled,
                       CookiesAllowed) {}

}  // namespace interest_group