#include "components/browsing_data/core/counters/history_counter.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/time/time.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/history/web_history_service_factory.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/browsing_data/core/browsing_data_utils.h"
#include "components/browsing_data/core/pref_names.h"
#include "components/history/core/browser/history_service.h"
#include "components/history/core/browser/web_history_service.h"
#include "components/history/core/test/fake_web_history_service.h"
#include "components/prefs/pref_service.h"
#include "content/public/test/browser_test.h"
#include "net/http/http_status_code.h"
#include "url/gurl.h"
namespace {
BrowsingDataCounter;
HistoryCounter;
class HistoryCounterTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(HistoryCounterTest, DuplicateVisits) { … }
IN_PROC_BROWSER_TEST_F(HistoryCounterTest, WithoutSyncService) { … }
IN_PROC_BROWSER_TEST_F(HistoryCounterTest, PrefChanged) { … }
IN_PROC_BROWSER_TEST_F(HistoryCounterTest, PeriodChanged) { … }
IN_PROC_BROWSER_TEST_F(HistoryCounterTest, Synced) { … }
}