Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: components/safe_browsing_db/test_database_manager.cc

Issue 2890293004: Add the ability to check the CSD Whitelist asynchronously, for PhishGuard. (Closed)
Patch Set: Respond to vakhs review, fix up tests Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/safe_browsing_db/test_database_manager.h" 5 #include "components/safe_browsing_db/test_database_manager.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 return true; 59 return true;
60 } 60 }
61 61
62 bool TestSafeBrowsingDatabaseManager::CheckUrlForSubresourceFilter( 62 bool TestSafeBrowsingDatabaseManager::CheckUrlForSubresourceFilter(
63 const GURL& url, 63 const GURL& url,
64 Client* client) { 64 Client* client) {
65 NOTIMPLEMENTED(); 65 NOTIMPLEMENTED();
66 return true; 66 return true;
67 } 67 }
68 68
69 AsyncMatch TestSafeBrowsingDatabaseManager::CheckCsdWhitelistUrl(
70 const GURL& url,
71 Client* client) {
72 NOTIMPLEMENTED();
73 return AsyncMatch::MATCH;
74 }
75
69 bool TestSafeBrowsingDatabaseManager::MatchCsdWhitelistUrl(const GURL& url) { 76 bool TestSafeBrowsingDatabaseManager::MatchCsdWhitelistUrl(const GURL& url) {
70 NOTIMPLEMENTED(); 77 NOTIMPLEMENTED();
71 return true; 78 return true;
72 } 79 }
73 80
74 bool TestSafeBrowsingDatabaseManager::MatchDownloadWhitelistString( 81 bool TestSafeBrowsingDatabaseManager::MatchDownloadWhitelistString(
75 const std::string& str) { 82 const std::string& str) {
76 NOTIMPLEMENTED(); 83 NOTIMPLEMENTED();
77 return true; 84 return true;
78 } 85 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 SafeBrowsingDatabaseManager::StartOnIOThread(request_context_getter, config); 134 SafeBrowsingDatabaseManager::StartOnIOThread(request_context_getter, config);
128 enabled_ = true; 135 enabled_ = true;
129 } 136 }
130 137
131 void TestSafeBrowsingDatabaseManager::StopOnIOThread(bool shutdown) { 138 void TestSafeBrowsingDatabaseManager::StopOnIOThread(bool shutdown) {
132 enabled_ = false; 139 enabled_ = false;
133 SafeBrowsingDatabaseManager::StopOnIOThread(shutdown); 140 SafeBrowsingDatabaseManager::StopOnIOThread(shutdown);
134 } 141 }
135 142
136 } // namespace safe_browsing 143 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698