#include "chrome/browser/privacy_sandbox/privacy_sandbox_service.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/chrome_test_utils.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/interaction/interactive_browser_test.h"
#include "components/prefs/pref_service.h"
#include "components/privacy_sandbox/canonical_topic.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
#include "components/privacy_sandbox/privacy_sandbox_prefs.h"
#include "content/public/test/browser_test.h"
namespace {
DeepQuery;
DEFINE_LOCAL_ELEMENT_IDENTIFIER_VALUE(…);
DEFINE_LOCAL_CUSTOM_ELEMENT_EVENT_TYPE(…);
constexpr char BlockedTopicsListLengthFunc[] = …;
constexpr char BlockedTopicsListFirstTopicIdFunc[] = …;
DeepQuery GetManageTopicsPageQuery() { … }
DeepQuery GetAdTopicsPageQuery() { … }
class PrivacySandboxSettingsTopicsInteractiveTest
: public InteractiveBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PrivacySandboxSettingsTopicsInteractiveTest,
StartWithTwoBlockedTopics) { … }
IN_PROC_BROWSER_TEST_F(PrivacySandboxSettingsTopicsInteractiveTest,
BlockFirstTopicOnManageTopicsPage) { … }
IN_PROC_BROWSER_TEST_F(PrivacySandboxSettingsTopicsInteractiveTest,
UnblockOneTopicOnAdTopicsPage) { … }
IN_PROC_BROWSER_TEST_F(PrivacySandboxSettingsTopicsInteractiveTest,
ConfirmDefaultIconIsNotUsed) { … }
IN_PROC_BROWSER_TEST_F(PrivacySandboxSettingsTopicsInteractiveTest,
DISABLED_ValidateScreenshotDefaultManageTopicsPage) { … }
IN_PROC_BROWSER_TEST_F(
PrivacySandboxSettingsTopicsInteractiveTest,
DISABLED_ValidateScreenshotsWithFirstTopicBlockedWithJS) { … }
}