#include "extensions/browser/api/declarative/rules_registry_service.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/strings/strcat.h"
#include "base/values.h"
#include "chrome/test/base/testing_profile.h"
#include "components/version_info/channel.h"
#include "components/version_info/version_info.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/browser/api/declarative/test_rules_registry.h"
#include "extensions/browser/api/declarative_webrequest/webrequest_constants.h"
#include "extensions/common/api/declarative/declarative_constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/features/feature.h"
#include "extensions/common/features/feature_channel.h"
#include "extensions/common/features/feature_provider.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char kExtensionId[] = …;
void InsertRule(scoped_refptr<extensions::RulesRegistry> registry,
const std::string& id) { … }
void VerifyNumberOfRules(scoped_refptr<extensions::RulesRegistry> registry,
size_t expected_number_of_rules) { … }
}
namespace extensions {
class RulesRegistryServiceTest : public testing::Test { … };
TEST_F(RulesRegistryServiceTest, TestConstructionAndMultiThreading) { … }
TEST_F(RulesRegistryServiceTest, DefaultRulesRegistryRegistered) { … }
}