#include "chrome/browser/browsing_data/counters/site_settings_counter.h"
#include <memory>
#include <string>
#include <utility>
#include "base/containers/flat_set.h"
#include "base/functional/bind.h"
#include "base/json/values_util.h"
#include "base/memory/raw_ptr.h"
#include "base/test/simple_test_clock.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
#include "chrome/browser/performance_manager/public/user_tuning/user_performance_tuning_manager.h"
#include "chrome/browser/translate/chrome_translate_client.h"
#include "chrome/test/base/testing_profile.h"
#include "components/browsing_data/core/browsing_data_utils.h"
#include "components/browsing_data/core/pref_names.h"
#include "components/custom_handlers/protocol_handler.h"
#include "components/custom_handlers/protocol_handler_registry.h"
#include "components/custom_handlers/test_protocol_handler_registry_delegate.h"
#include "components/prefs/pref_service.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/security/protocol_handler_security_level.h"
#if !BUILDFLAG(IS_ANDROID)
#include "content/public/browser/host_zoom_map.h"
#endif
ProtocolHandler;
namespace {
class SiteSettingsCounterTest : public testing::Test { … };
TEST_F(SiteSettingsCounterTest, Count) { … }
TEST_F(SiteSettingsCounterTest, CountWithTimePeriod) { … }
TEST_F(SiteSettingsCounterTest, OnlyCountContentSettings) { … }
TEST_F(SiteSettingsCounterTest, CountWebUsbSettings) { … }
TEST_F(SiteSettingsCounterTest, OnlyCountPatternOnce) { … }
TEST_F(SiteSettingsCounterTest, PrefChanged) { … }
TEST_F(SiteSettingsCounterTest, PeriodChanged) { … }
#if !BUILDFLAG(IS_ANDROID)
TEST_F(SiteSettingsCounterTest, ZoomLevel) { … }
TEST_F(SiteSettingsCounterTest, AllSiteSettingsMixed) { … }
#endif
TEST_F(SiteSettingsCounterTest, ProtocolHandlerCounting) { … }
TEST_F(SiteSettingsCounterTest, TranslatedSitesCounting) { … }
TEST_F(SiteSettingsCounterTest, DiscardingExceptionsCounting) { … }
}