#include "chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.h"
#include <memory>
#include <tuple>
#include "base/test/values_test_util.h"
#include "chrome/browser/extensions/api/declarative_content/content_predicate_evaluator.h"
#include "chrome/browser/extensions/api/declarative_content/declarative_content_condition_tracker_test.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/public/test/mock_render_process_host.h"
#include "extensions/browser/api/declarative/rules_registry_service.h"
#include "extensions/browser/api/declarative_content/content_rules_registry.h"
#include "extensions/browser/renderer_startup_helper.h"
#include "extensions/common/extension_id.h"
#include "extensions/common/mojom/host_id.mojom.h"
#include "extensions/common/mojom/renderer.mojom.h"
#include "mojo/public/cpp/bindings/associated_receiver_set.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace extensions {
HasSubstr;
UnorderedElementsAre;
UnorderedElementsAreArray;
namespace {
class InterceptingRendererStartupHelper : public RendererStartupHelper,
public mojom::Renderer { … };
}
class DeclarativeContentCssConditionTrackerTest
: public DeclarativeContentConditionTrackerTest { … };
TEST(DeclarativeContentCssPredicateTest, WrongCssDatatype) { … }
TEST(DeclarativeContentCssPredicateTest, CssPredicate) { … }
TEST_F(DeclarativeContentCssConditionTrackerTest, AddAndRemovePredicates) { … }
TEST_F(DeclarativeContentCssConditionTrackerTest,
AddAndRemovePredicatesWithSameSelectors) { … }
TEST_F(DeclarativeContentCssConditionTrackerTest, WatchedPageChange) { … }
TEST_F(DeclarativeContentCssConditionTrackerTest, Navigation) { … }
TEST_F(DeclarativeContentCssConditionTrackerTest, WebContentsOutlivesTracker) { … }
}