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

Unified Diff: chrome/browser/safe_browsing/test_safe_browsing_service.h

Issue 2675063002: Browser tests for using the new SafeBrowsing protocol (v4) (Closed)
Patch Set: Simplify V4DB creation in product code and tests 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/test_safe_browsing_service.h
diff --git a/chrome/browser/safe_browsing/test_safe_browsing_service.h b/chrome/browser/safe_browsing/test_safe_browsing_service.h
index facf791b83e2b0acad4529814245db6c0eeeb089..e5fbdc4336b7182c229c75957e2852c44aba3785 100644
--- a/chrome/browser/safe_browsing/test_safe_browsing_service.h
+++ b/chrome/browser/safe_browsing/test_safe_browsing_service.h
@@ -40,7 +40,8 @@ class TestSafeBrowsingUIManager;
// test_sb_factory_.
class TestSafeBrowsingService : public SafeBrowsingService {
public:
- TestSafeBrowsingService();
+ explicit TestSafeBrowsingService(bool v4_enabled = false,
+ bool use_v4_only = false);
// SafeBrowsingService overrides
SafeBrowsingProtocolConfig GetProtocolConfig() const override;
V4ProtocolConfig GetV4ProtocolConfig() const override;
@@ -80,7 +81,8 @@ class TestSafeBrowsingService : public SafeBrowsingService {
class TestSafeBrowsingServiceFactory : public SafeBrowsingServiceFactory {
public:
- TestSafeBrowsingServiceFactory();
+ TestSafeBrowsingServiceFactory(bool v4_enabled = false,
+ bool use_v4_only = false);
~TestSafeBrowsingServiceFactory() override;
// Creates test safe browsing service, and configures test UI manager,
@@ -101,6 +103,8 @@ class TestSafeBrowsingServiceFactory : public SafeBrowsingServiceFactory {
scoped_refptr<TestSafeBrowsingDatabaseManager> test_database_manager_;
scoped_refptr<TestSafeBrowsingUIManager> test_ui_manager_;
SafeBrowsingProtocolConfig* test_protocol_config_;
+ bool use_v4_only_;
+ bool v4_enabled_;
DISALLOW_COPY_AND_ASSIGN(TestSafeBrowsingServiceFactory);
};

Powered by Google App Engine
This is Rietveld 408576698