summaryrefslogtreecommitdiff
path: root/chromium/components/safe_browsing/password_protection/mock_password_protection_service.cc
blob: 3c372d0e596fe1f48e735ef4460db09f34609c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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