summaryrefslogtreecommitdiff
path: root/chromium/components/safe_browsing/password_protection/mock_password_protection_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/safe_browsing/password_protection/mock_password_protection_service.cc')
-rw-r--r--chromium/components/safe_browsing/password_protection/mock_password_protection_service.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/chromium/components/safe_browsing/password_protection/mock_password_protection_service.cc b/chromium/components/safe_browsing/password_protection/mock_password_protection_service.cc
new file mode 100644
index 00000000000..3c372d0e596
--- /dev/null
+++ b/chromium/components/safe_browsing/password_protection/mock_password_protection_service.cc
@@ -0,0 +1,27 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/safe_browsing/password_protection/mock_password_protection_service.h"
+
+#include "components/content_settings/core/browser/host_content_settings_map.h"
+#include "components/safe_browsing/db/database_manager.h"
+#include "services/network/public/cpp/shared_url_loader_factory.h"
+
+namespace safe_browsing {
+
+MockPasswordProtectionService::MockPasswordProtectionService()
+ : PasswordProtectionService(nullptr, nullptr, nullptr, nullptr) {}
+
+MockPasswordProtectionService::MockPasswordProtectionService(
+ const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager,
+ scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
+ scoped_refptr<HostContentSettingsMap> content_setting_map)
+ : PasswordProtectionService(database_manager,
+ url_loader_factory,
+ nullptr,
+ content_setting_map.get()) {}
+
+MockPasswordProtectionService::~MockPasswordProtectionService() {}
+
+} // namespace safe_browsing