#include "chrome/browser/engagement/important_sites_util.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/sample_vector.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "build/build_config.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/site_engagement/content/site_engagement_score.h"
#include "components/site_engagement/content/site_engagement_service.h"
#include "content/public/browser/web_contents.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#if !BUILDFLAG(IS_ANDROID)
namespace site_engagement {
namespace {
BookmarkModel;
ImportantDomainInfo;
const size_t kNumImportantSites = …;
enum ImportantReasonForTesting { … };
}
class ImportantSitesUtilTest : public ChromeRenderViewHostTestHarness { … };
TEST_F(ImportantSitesUtilTest, TestNoImportantSites) { … }
TEST_F(ImportantSitesUtilTest, SourceOrdering) { … }
TEST_F(ImportantSitesUtilTest, TooManyBookmarks) { … }
TEST_F(ImportantSitesUtilTest, Suppressing) { … }
TEST_F(ImportantSitesUtilTest, SuppressingReset) { … }
TEST_F(ImportantSitesUtilTest, Metrics) { … }
TEST_F(ImportantSitesUtilTest, DialogExcluding) { … }
TEST_F(ImportantSitesUtilTest, ExcludeNonRegisterableDomains) { … }
}
#endif