#include "components/safe_browsing/content/browser/triggers/ad_sampler_trigger.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_simple_task_runner.h"
#include "components/prefs/testing_pref_service.h"
#include "components/safe_browsing/content/browser/triggers/mock_trigger_manager.h"
#include "components/safe_browsing/content/browser/web_contents_key.h"
#include "components/safe_browsing/core/common/features.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/test_renderer_host.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
NavigationSimulator;
RenderFrameHost;
RenderFrameHostTester;
_;
Return;
namespace safe_browsing {
namespace {
const char kAdUrl[] = …;
const char kNonAdUrl[] = …;
const char kAdName[] = …;
const char kNonAdName[] = …;
}
class AdSamplerTriggerTest : public content::RenderViewHostTestHarness { … };
TEST_F(AdSamplerTriggerTest, TriggerDisabledBySamplingFrequency) { … }
TEST_F(AdSamplerTriggerTest, PageWithNoAds) { … }
TEST_F(AdSamplerTriggerTest, PageWithMultipleAds) { … }
TEST_F(AdSamplerTriggerTest, ReportRejectedByTriggerManager) { … }
TEST(AdSamplerTriggerTestFinch, FrequencyDenominatorFeature) { … }
}