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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_CLIENT_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_CLIENT_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_CLIENT_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_CLIENT_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "components/password_manager/core/browser/password_manager_client.h" | 9 #include "components/password_manager/core/browser/password_manager_client.h" |
9 #include "components/password_manager/core/browser/stub_log_manager.h" | 10 #include "components/password_manager/core/browser/stub_log_manager.h" |
10 | 11 |
11 namespace password_manager { | 12 namespace password_manager { |
12 | 13 |
13 // Use this class as a base for mock or test clients to avoid stubbing | 14 // Use this class as a base for mock or test clients to avoid stubbing |
14 // uninteresting pure virtual methods. All the implemented methods are just | 15 // uninteresting pure virtual methods. All the implemented methods are just |
15 // trivial stubs. Do NOT use in production, only use in tests. | 16 // trivial stubs. Do NOT use in production, only use in tests. |
16 class StubPasswordManagerClient : public PasswordManagerClient { | 17 class StubPasswordManagerClient : public PasswordManagerClient { |
17 public: | 18 public: |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 55 |
55 const PassThroughCredentialsFilter credentials_filter_; | 56 const PassThroughCredentialsFilter credentials_filter_; |
56 StubLogManager log_manager_; | 57 StubLogManager log_manager_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(StubPasswordManagerClient); | 59 DISALLOW_COPY_AND_ASSIGN(StubPasswordManagerClient); |
59 }; | 60 }; |
60 | 61 |
61 } // namespace password_manager | 62 } // namespace password_manager |
62 | 63 |
63 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_CLIENT
_H_ | 64 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_CLIENT
_H_ |
OLD | NEW |