chromium/components/safe_browsing/content/browser/triggers/suspicious_site_trigger_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/safe_browsing/content/browser/triggers/suspicious_site_trigger.h"

#include <string>

#include "base/test/metrics/histogram_tester.h"
#include "base/test/test_simple_task_runner.h"
#include "build/build_config.h"
#include "components/prefs/testing_pref_service.h"
#include "components/safe_browsing/content/browser/triggers/mock_trigger_manager.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.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/gtest/include/gtest/gtest.h"

NavigationSimulator;
RenderFrameHost;
RenderFrameHostTester;

_;
DoAll;
Return;
SetArgPointee;

namespace safe_browsing {

namespace {
const char kSuspiciousUrl[] =;
const char kCleanUrl[] =;
const char kCleanUrl2[] =;

// A matcher for the VisibleURLChangeMidLoad_Suspicious test.
MATCHER_P(ResourceHasUrl, gurl, "") {}
}  // namespace

class SuspiciousSiteTriggerTest : public content::RenderViewHostTestHarness {};

TEST_F(SuspiciousSiteTriggerTest, RegularPageNonSuspicious) {}

TEST_F(SuspiciousSiteTriggerTest, SuspiciousHitDuringLoad) {}

TEST_F(SuspiciousSiteTriggerTest, SuspiciousHitAfterLoad) {}

TEST_F(SuspiciousSiteTriggerTest, ReportRejectedByTriggerManager) {}

TEST_F(SuspiciousSiteTriggerTest, NewNavigationMidLoad_NotSuspicious) {}

TEST_F(SuspiciousSiteTriggerTest, NewNavigationMidLoad_Suspicious) {}

TEST_F(SuspiciousSiteTriggerTest, MonitorMode_NotSuspicious) {}

TEST_F(SuspiciousSiteTriggerTest, MonitorMode_SuspiciousHitDuringLoad) {}

TEST_F(SuspiciousSiteTriggerTest, VisibleURLChangeMidLoad_NotSuspicious) {}

TEST_F(SuspiciousSiteTriggerTest, VisibleURLChangeMidLoad_Suspicious) {}
}  // namespace safe_browsing