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

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

Issue 2648193002: SafeBrowsing: Move enabled_ to base class DB Manager (Closed)
Patch Set: Update comments Created 3 years, 10 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 bool TestSafeBrowsingDatabaseManager::IsMalwareKillSwitchOn() { 107 bool TestSafeBrowsingDatabaseManager::IsMalwareKillSwitchOn() {
108 NOTIMPLEMENTED(); 108 NOTIMPLEMENTED();
109 return false; 109 return false;
110 } 110 }
111 111
112 bool TestSafeBrowsingDatabaseManager::IsSupported() const { 112 bool TestSafeBrowsingDatabaseManager::IsSupported() const {
113 NOTIMPLEMENTED(); 113 NOTIMPLEMENTED();
114 return false; 114 return false;
115 } 115 }
116 116
117 void TestSafeBrowsingDatabaseManager::StartOnIOThread(
118 net::URLRequestContextGetter* request_context_getter,
119 const V4ProtocolConfig& config) {
120 SafeBrowsingDatabaseManager::StartOnIOThread(request_context_getter, config);
121 enabled_ = true;
122 }
123
124 void TestSafeBrowsingDatabaseManager::StopOnIOThread(bool shutdown) {
125 enabled_ = false;
126 SafeBrowsingDatabaseManager::StopOnIOThread(shutdown);
127 }
128
117 } // namespace safe_browsing 129 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « components/safe_browsing_db/test_database_manager.h ('k') | components/safe_browsing_db/v4_local_database_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698