#include "chrome/browser/browsing_data/counters/cache_counter.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/browsing_data/core/browsing_data_utils.h"
#include "components/browsing_data/core/pref_names.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/simple_url_loader_test_helper.h"
#include "net/test/embedded_test_server/default_handlers.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "services/network/public/mojom/clear_data_filter.mojom.h"
#include "services/network/public/mojom/network_context.mojom.h"
BrowserContext;
BrowserThread;
namespace {
class CacheCounterTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(CacheCounterTest, Empty) { … }
IN_PROC_BROWSER_TEST_F(CacheCounterTest, NonEmpty) { … }
IN_PROC_BROWSER_TEST_F(CacheCounterTest, AfterDoom) { … }
IN_PROC_BROWSER_TEST_F(CacheCounterTest, PrefChanged) { … }
IN_PROC_BROWSER_TEST_F(CacheCounterTest, PeriodChanged) { … }
}