#include "chrome/browser/extensions/activity_log/counting_policy.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/cancelable_callback.h"
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/string_split.h"
#include "base/strings/stringprintf.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/simple_test_clock.h"
#include "base/test/test_timeouts.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/extensions/activity_log/activity_log.h"
#include "chrome/browser/extensions/activity_log/activity_log_task_runner.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/common/extension_builder.h"
#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/login/users/chrome_user_manager_impl.h"
#include "chrome/browser/ash/settings/scoped_cros_settings_test_helper.h"
#include "components/user_manager/scoped_user_manager.h"
#endif
namespace extensions {
class CountingPolicyTest : public testing::Test { … };
TEST_F(CountingPolicyTest, Construct) { … }
TEST_F(CountingPolicyTest, LogWithStrippedArguments) { … }
TEST_F(CountingPolicyTest, GetTodaysActions) { … }
TEST_F(CountingPolicyTest, GetOlderActions) { … }
TEST_F(CountingPolicyTest, LogAndFetchFilteredActions) { … }
TEST_F(CountingPolicyTest, MergingAndExpiring) { … }
TEST_F(CountingPolicyTest, StringTableCleaning) { … }
TEST_F(CountingPolicyTest, MoreMerging) { … }
TEST_F(CountingPolicyTest, EarlyFlush) { … }
TEST_F(CountingPolicyTest, CapReturns) { … }
TEST_F(CountingPolicyTest, RemoveAllURLs) { … }
TEST_F(CountingPolicyTest, RemoveSpecificURLs) { … }
TEST_F(CountingPolicyTest, RemoveExtensionData) { … }
TEST_F(CountingPolicyTest, DeleteDatabase) { … }
TEST_F(CountingPolicyTest, DuplicateRows) { … }
TEST_F(CountingPolicyTest, RemoveActions) { … }
}