#include "base/test/scoped_feature_list.h"
#include "base/test/simple_test_clock.h"
#include "chrome/browser/subresource_filter/subresource_filter_browser_test_harness.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/subresource_filter/content/browser/ads_intervention_manager.h"
#include "components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h"
#include "components/subresource_filter/core/mojom/subresource_filter.mojom.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/test/browser_test.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace subresource_filter {
namespace {
const char kAdsInterventionRecordedHistogram[] = …;
}
class AdsInterventionManagerTestWithEnforcement
: public SubresourceFilterBrowserTest { … };
IN_PROC_BROWSER_TEST_F(AdsInterventionManagerTestWithEnforcement,
AdsInterventionEnforced_PageActivated) { … }
IN_PROC_BROWSER_TEST_F(
AdsInterventionManagerTestWithEnforcement,
MultipleAdsInterventions_PageActivationClearedAfterFirst) { … }
class AdsInterventionManagerTestWithoutEnforcement
: public SubresourceFilterBrowserTest { … };
IN_PROC_BROWSER_TEST_F(AdsInterventionManagerTestWithoutEnforcement,
AdsInterventionNotEnforced_NoPageActivation) { … }
}