chromium/chrome/browser/ui/views/location_bar/cookie_controls/cookie_controls_bubble_view_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 "base/test/scoped_feature_list.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/privacy_sandbox/tracking_protection_settings_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/toolbar_button_provider.h"
#include "chrome/browser/ui/views/location_bar/cookie_controls/cookie_controls_bubble_coordinator.h"
#include "chrome/browser/ui/views/page_action/page_action_icon_view.h"
#include "chrome/test/base/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_types.h"
#include "components/content_settings/core/common/content_settings_utils.h"
#include "components/content_settings/core/common/cookie_blocking_3pcd_status.h"
#include "components/content_settings/core/common/features.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
#include "components/privacy_sandbox/tracking_protection_prefs.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/mock_web_contents_observer.h"
#include "content/public/test/test_navigation_observer.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "ui/views/test/widget_test.h"

class CookieControlsBubbleViewBrowserTest : public InProcessBrowserTest {};

IN_PROC_BROWSER_TEST_F(CookieControlsBubbleViewBrowserTest,
                       ToggleCreatesCookiesException) {}

class TrackingProtectionBubbleViewBrowserTest
    : public CookieControlsBubbleViewBrowserTest {};

IN_PROC_BROWSER_TEST_F(TrackingProtectionBubbleViewBrowserTest,
                       ToggleCreatesTrackingProtectionException) {}

IN_PROC_BROWSER_TEST_F(CookieControlsBubbleViewBrowserTest,
                       HidingControlsClosesBubble) {}

IN_PROC_BROWSER_TEST_F(CookieControlsBubbleViewBrowserTest, PageReload) {}

IN_PROC_BROWSER_TEST_F(CookieControlsBubbleViewBrowserTest,
                       PageReload_CloseView) {}

IN_PROC_BROWSER_TEST_F(CookieControlsBubbleViewBrowserTest,
                       NoPageReload_NoChange) {}

IN_PROC_BROWSER_TEST_F(CookieControlsBubbleViewBrowserTest,
                       NoPageReload_NonUserClose) {}