#include "components/permissions/permission_actions_history.h"
#include <optional>
#include <vector>
#include "base/containers/adapters.h"
#include "base/json/json_reader.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/permissions/permission_request_enums.h"
#include "components/permissions/permission_uma_util.h"
#include "components/permissions/permission_util.h"
#include "components/permissions/permissions_client.h"
#include "components/permissions/pref_names.h"
#include "components/permissions/request_type.h"
#include "components/permissions/test/test_permissions_client.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "components/prefs/testing_pref_service.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace permissions {
namespace {
struct TestEntry { … } kTestEntries[]{ … };
const char kLegacyPrefs[] = …;
}
class PermissionActionHistoryTest : public testing::Test { … };
TEST_F(PermissionActionHistoryTest, GetHistorySortedOrder) { … }
TEST_F(PermissionActionHistoryTest, NotificationRecordAction) { … }
TEST_F(PermissionActionHistoryTest, ClearHistory) { … }
TEST_F(PermissionActionHistoryTest, EntryFilterTest) { … }
TEST_F(PermissionActionHistoryTest, FillInActionCountsTest) { … }
}