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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc

Issue 1970823002: Remove the unused OffDomainInclusionDetector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits Created 4 years, 7 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
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This test creates a safebrowsing service using test safebrowsing database 5 // This test creates a safebrowsing service using test safebrowsing database
6 // and a test protocol manager. It is used to test logics in safebrowsing 6 // and a test protocol manager. It is used to test logics in safebrowsing
7 // service. 7 // service.
8 8
9 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 9 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
10 10
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 if (!found) 243 if (!found)
244 return false; 244 return false;
245 DCHECK_LE(1U, prefix_hits->size()); 245 DCHECK_LE(1U, prefix_hits->size());
246 return true; 246 return true;
247 } 247 }
248 bool ContainsCsdWhitelistedUrl(const GURL& url) override { return true; } 248 bool ContainsCsdWhitelistedUrl(const GURL& url) override { return true; }
249 bool ContainsDownloadWhitelistedString(const std::string& str) override { 249 bool ContainsDownloadWhitelistedString(const std::string& str) override {
250 return true; 250 return true;
251 } 251 }
252 bool ContainsDownloadWhitelistedUrl(const GURL& url) override { return true; } 252 bool ContainsDownloadWhitelistedUrl(const GURL& url) override { return true; }
253 bool ContainsInclusionWhitelistedUrl(const GURL& url) override {
254 return true;
255 }
256 bool ContainsModuleWhitelistedString(const std::string& str) override { 253 bool ContainsModuleWhitelistedString(const std::string& str) override {
257 return true; 254 return true;
258 } 255 }
259 bool ContainsExtensionPrefixes(const std::vector<SBPrefix>& prefixes, 256 bool ContainsExtensionPrefixes(const std::vector<SBPrefix>& prefixes,
260 std::vector<SBPrefix>* prefix_hits) override { 257 std::vector<SBPrefix>* prefix_hits) override {
261 return false; 258 return false;
262 } 259 }
263 bool ContainsMalwareIP(const std::string& ip_address) override { 260 bool ContainsMalwareIP(const std::string& ip_address) override {
264 return true; 261 return true;
265 } 262 }
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 chrome::NOTIFICATION_SAFE_BROWSING_UPDATE_COMPLETE, 1726 chrome::NOTIFICATION_SAFE_BROWSING_UPDATE_COMPLETE,
1730 content::Source<SafeBrowsingDatabaseManager>( 1727 content::Source<SafeBrowsingDatabaseManager>(
1731 sb_service_->database_manager().get())); 1728 sb_service_->database_manager().get()));
1732 BrowserThread::PostTask( 1729 BrowserThread::PostTask(
1733 BrowserThread::IO, FROM_HERE, 1730 BrowserThread::IO, FROM_HERE,
1734 base::Bind(&SafeBrowsingDatabaseManagerCookieTest::ForceUpdate, this)); 1731 base::Bind(&SafeBrowsingDatabaseManagerCookieTest::ForceUpdate, this));
1735 observer.Wait(); 1732 observer.Wait();
1736 } 1733 }
1737 1734
1738 } // namespace safe_browsing 1735 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698