#include "chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/test/values_test_util.h"
#include "chrome/browser/extensions/api/declarative_content/content_predicate.h"
#include "chrome/browser/extensions/api/declarative_content/content_predicate_evaluator.h"
#include "chrome/browser/extensions/test_extension_environment.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/public/test/test_renderer_host.h"
#include "extensions/common/extension.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
namespace {
class TestPredicateEvaluator;
class TestPredicate : public ContentPredicate { … };
class TestPredicateEvaluator : public ContentPredicateEvaluator { … };
std::vector<std::unique_ptr<ContentPredicateEvaluator>> CreateTestEvaluator(
TestPredicateEvaluator** evaluator,
ContentPredicateEvaluator::Delegate* delegate) { … }
}
class DeclarativeChromeContentRulesRegistryTest : public testing::Test { … };
TEST_F(DeclarativeChromeContentRulesRegistryTest, ActiveRulesDoesntGrow) { … }
}