#include "chrome/browser/browsing_data/counters/downloads_counter.h"
#include <memory>
#include <set>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "base/uuid.h"
#include "build/build_config.h"
#include "chrome/browser/download/download_core_service.h"
#include "chrome/browser/download/download_core_service_factory.h"
#include "chrome/browser/download/download_history.h"
#include "chrome/browser/profiles/profile.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/download_row.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/storage_partition_config.h"
#include "content/public/test/browser_test.h"
#include "extensions/buildflags/buildflags.h"
#include "url/origin.h"
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "extensions/common/extension.h"
#endif
namespace {
class DownloadsCounterTest : public InProcessBrowserTest,
public DownloadHistory::Observer { … };
IN_PROC_BROWSER_TEST_F(DownloadsCounterTest, Count) { … }
IN_PROC_BROWSER_TEST_F(DownloadsCounterTest, Types) { … }
IN_PROC_BROWSER_TEST_F(DownloadsCounterTest, NotPersisted) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_TimeRanges …
#else
#define MAYBE_TimeRanges …
#endif
IN_PROC_BROWSER_TEST_F(DownloadsCounterTest, MAYBE_TimeRanges) { … }
}