#include "extensions/browser/api/declarative/rules_registry.h"
#include <memory>
#include "base/command_line.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/test_extension_environment.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/common/extensions/extension_test_util.h"
#include "chrome/test/base/testing_profile.h"
#include "components/value_store/testing_value_store.h"
#include "components/version_info/version_info.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/api/declarative/rules_cache_delegate.h"
#include "extensions/browser/api/declarative/rules_registry_service.h"
#include "extensions/browser/api/declarative/test_rules_registry.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
#include "extensions/common/features/feature_channel.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/permissions/permissions_data.h"
#include "testing/gtest/include/gtest/gtest.h"
LoadManifestUnchecked;
namespace {
const char kRuleId[] = …;
const char kRule2Id[] = …;
}
namespace extensions {
const int kRulesRegistryID = …;
class RulesRegistryWithCacheTest : public testing::Test { … };
TEST_F(RulesRegistryWithCacheTest, AddRules) { … }
TEST_F(RulesRegistryWithCacheTest, RemoveRules) { … }
TEST_F(RulesRegistryWithCacheTest, RemoveAllRules) { … }
TEST_F(RulesRegistryWithCacheTest, GetRules) { … }
TEST_F(RulesRegistryWithCacheTest, GetAllRules) { … }
TEST_F(RulesRegistryWithCacheTest, OnExtensionUninstalled) { … }
TEST_F(RulesRegistryWithCacheTest, DeclarativeRulesStored) { … }
TEST_F(RulesRegistryWithCacheTest, EphemeralCacheIsEphemeral) { … }
TEST_F(RulesRegistryWithCacheTest, RulesStoredFlagMultipleRegistries) { … }
TEST_F(RulesRegistryWithCacheTest, RulesPreservedAcrossRestart) { … }
TEST_F(RulesRegistryWithCacheTest, ConcurrentStoringOfRules) { … }
}