Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_TEST_CREDENTIAL_MANAGER_DIS PATCHER_H_ | |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_TEST_CREDENTIAL_MANAGER_DIS PATCHER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "components/password_manager/content/renderer/credential_manager_dispat cher.h" | |
| 11 | |
| 12 namespace password_manager { | |
| 13 | |
| 14 class TestCredentialManagerDispatcher : public CredentialManagerDispatcher { | |
| 15 public: | |
| 16 TestCredentialManagerDispatcher(); | |
| 17 virtual ~TestCredentialManagerDispatcher(); | |
| 18 | |
| 19 virtual void ClearCallbackErrorMaps() OVERRIDE; | |
| 20 | |
| 21 virtual int GetRoutingID() OVERRIDE; | |
| 22 | |
| 23 NotificationCallbacksMap* failed_sign_in_map() { | |
| 24 return &failed_sign_in_callbacks_; | |
| 25 } | |
| 26 NotificationCallbacksMap* signed_in_map() { return &signed_in_callbacks_; } | |
| 27 NotificationCallbacksMap* signed_out_map() { return &signed_out_callbacks_; } | |
| 28 | |
| 29 RequestCallbacksMap* request_credentials_map() { return &request_callbacks_; } | |
|
Ilya Sherman
2014/08/19 23:55:54
Can all of these accessors be const and return con
Mike West
2014/08/20 13:17:20
Removed entirely in favor of exposing protected me
| |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(TestCredentialManagerDispatcher); | |
|
Ilya Sherman
2014/08/19 23:55:54
This needs to be private, else it doesn't work ;)
Mike West
2014/08/20 13:17:20
Done.
| |
| 32 }; | |
| 33 | |
| 34 } // namespace password_manager | |
| 35 | |
| 36 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_TEST_CREDENTIAL_MANAGER_ DISPATCHER_H_ | |
| OLD | NEW |