chromium/chrome/browser/ui/views/location_bar/cookie_controls/cookie_controls_bubble_view_pixel_test.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/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/time/time_override.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/dips/dips_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/location_bar/location_bar.h"
#include "chrome/browser/ui/test/test_browser_dialog.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_icon_view.h"
#include "chrome/browser/ui/views/page_action/page_action_icon_view.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/features.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/content_settings/core/common/tracking_protection_feature.h"
#include "components/content_settings/core/test/content_settings_mock_provider.h"
#include "components/content_settings/core/test/content_settings_test_utils.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_mock_cert_verifier.h"
#include "net/dns/mock_host_resolver.h"
#include "ui/views/widget/any_widget_observer.h"
#include "url/gurl.h"

Status;
FeatureType;

class CookieControlsBubbleViewPixelTest
    : public DialogBrowserTest,
      public testing::WithParamInterface<CookieBlocking3pcdStatus> {};

IN_PROC_BROWSER_TEST_P(CookieControlsBubbleViewPixelTest,
                       InvokeUi_CookiesBlocked) {}

IN_PROC_BROWSER_TEST_P(CookieControlsBubbleViewPixelTest,
                       InvokeUi_PermanentException) {}

IN_PROC_BROWSER_TEST_P(CookieControlsBubbleViewPixelTest,
                       InvokeUi_TemporaryException) {}

IN_PROC_BROWSER_TEST_P(CookieControlsBubbleViewPixelTest,
                       InvokeUi_EnforcedByCookieSetting) {}

IN_PROC_BROWSER_TEST_P(CookieControlsBubbleViewPixelTest,
                       InvokeUi_EnforcedByPolicy) {}

IN_PROC_BROWSER_TEST_P(CookieControlsBubbleViewPixelTest,
                       InvokeUi_EnforcedByExtension) {}

std::string ParamToTestSuffix(
    const testing::TestParamInfo<CookieControlsBubbleViewPixelTest::ParamType>&
        info) {}

INSTANTIATE_TEST_SUITE_P();

// TODO(https://b/354946320): Add pixel tests for ACT feature states once we
// have UX.