1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/safe_browsing/test_database_manager.h"
11 #include "base/logging.h"
13 bool TestSafeBrowsingDatabaseManager::CanCheckUrl(const GURL
& url
) const {
18 bool TestSafeBrowsingDatabaseManager::download_protection_enabled() const {
23 bool TestSafeBrowsingDatabaseManager::CheckBrowseUrl(const GURL
& url
,
29 bool TestSafeBrowsingDatabaseManager::CheckDownloadUrl(
30 const std::vector
<GURL
>& url_chain
,
36 bool TestSafeBrowsingDatabaseManager::CheckExtensionIDs(
37 const std::set
<std::string
>& extension_ids
,
43 bool TestSafeBrowsingDatabaseManager::MatchCsdWhitelistUrl(const GURL
& url
) {
48 bool TestSafeBrowsingDatabaseManager::MatchMalwareIP(
49 const std::string
& ip_address
) {
54 bool TestSafeBrowsingDatabaseManager::MatchDownloadWhitelistUrl(
60 bool TestSafeBrowsingDatabaseManager::MatchDownloadWhitelistString(
61 const std::string
& str
) {
66 bool TestSafeBrowsingDatabaseManager::MatchInclusionWhitelistUrl(
72 bool TestSafeBrowsingDatabaseManager::IsMalwareKillSwitchOn() {
77 bool TestSafeBrowsingDatabaseManager::IsCsdWhitelistKillSwitchOn() {
82 void TestSafeBrowsingDatabaseManager::CancelCheck(Client
* client
) {
86 void TestSafeBrowsingDatabaseManager::StartOnIOThread() {
89 void TestSafeBrowsingDatabaseManager::StopOnIOThread(bool shutdown
) {