#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/subresource_filter/subresource_filter_browser_test_harness.h"
#include "chrome/common/chrome_features.h"
#include "chrome/test/base/testing_browser_process.h"
#include "components/fingerprinting_protection_filter/common/fingerprinting_protection_filter_features.h"
#include "components/subresource_filter/content/shared/browser/ruleset_service.h"
#include "components/subresource_filter/core/browser/async_document_subresource_filter.h"
#include "components/subresource_filter/core/browser/async_document_subresource_filter_test_utils.h"
#include "components/subresource_filter/core/common/common_features.h"
#include "components/subresource_filter/core/common/indexed_ruleset.h"
#include "content/public/test/browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace subresource_filter {
namespace {
const mojom::ActivationState kDisabled;
RulesetVerificationStatus GetRulesetVerification() { … }
const char kIndexedRulesetVerifyHistogram[] = …;
}
IN_PROC_BROWSER_TEST_F(SubresourceFilterBrowserTest,
RulesetVerified_Activation) { … }
IN_PROC_BROWSER_TEST_F(SubresourceFilterBrowserTest, NoRuleset_NoActivation) { … }
IN_PROC_BROWSER_TEST_F(SubresourceFilterBrowserTest, InvalidRuleset_Checksum) { … }
IN_PROC_BROWSER_TEST_F(SubresourceFilterBrowserTest,
InvalidRuleset_NoActivation) { … }
class SubresourceFilterBrowserTestWithoutAdTagging
: public SubresourceFilterBrowserTest { … };
IN_PROC_BROWSER_TEST_F(SubresourceFilterBrowserTestWithoutAdTagging,
LazyRulesetValidation) { … }
class SubresourceFilterBrowserTestWithAdTagging
: public SubresourceFilterBrowserTest { … };
IN_PROC_BROWSER_TEST_F(SubresourceFilterBrowserTestWithAdTagging,
AdsTaggingImmediateRulesetValidation) { … }
}