chromium/chrome/browser/engagement/important_sites_util_unittest.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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"

// TODO(crbug.com/40666874): Disabled all tests because they lead the flakiness
// dashboard. The root cause is documented in the bug.
#if !BUILDFLAG(IS_ANDROID)

namespace site_engagement {

namespace {
BookmarkModel;
ImportantDomainInfo;

const size_t kNumImportantSites =;

// We only need to reproduce the values that we are testing. The values here
// need to match the values in important_sites_util.
enum ImportantReasonForTesting {};

}  // namespace

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) {}

}  // namespace site_engagement

#endif  // !BUILDFLAG(IS_ANDROID)