OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_SERVICE_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_SERVICE_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_SERVICE_H_ |
7 | 7 |
8 #include "chrome/browser/password_manager/password_store_factory.h" | 8 #include "chrome/browser/password_manager/password_store_factory.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 class BrowserContext; | 11 class BrowserContext; |
12 } | 12 } |
13 | 13 |
14 namespace password_manager { | 14 namespace password_manager { |
15 class PasswordStore; | 15 class PasswordStore; |
16 } | 16 } |
17 | 17 |
18 class MockPasswordStoreService : public PasswordStoreService { | 18 class MockPasswordStoreService : public PasswordStoreService { |
19 public: | 19 public: |
20 static KeyedService* Build(content::BrowserContext* profile); | 20 static KeyedService* Build(content::BrowserContext* profile); |
21 | 21 |
22 private: | 22 private: |
23 explicit MockPasswordStoreService( | 23 explicit MockPasswordStoreService( |
24 scoped_refptr<password_manager::PasswordStore> password_store); | 24 scoped_refptr<password_manager::PasswordStore> password_store); |
25 | 25 |
26 virtual ~MockPasswordStoreService(); | 26 ~MockPasswordStoreService() override; |
27 | 27 |
28 DISALLOW_COPY_AND_ASSIGN(MockPasswordStoreService); | 28 DISALLOW_COPY_AND_ASSIGN(MockPasswordStoreService); |
29 }; | 29 }; |
30 | 30 |
31 #endif // CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_SERVICE_H_ | 31 #endif // CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_SERVICE_H_ |
OLD | NEW |