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