Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: components/password_manager/content/renderer/test_credential_manager_dispatcher.h

Issue 464883002: Credential Manager: Renderer-side implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/password_manager/content/renderer/test_credential_manager_dispatcher.h
diff --git a/components/password_manager/content/renderer/test_credential_manager_dispatcher.h b/components/password_manager/content/renderer/test_credential_manager_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f41c5a45821d4d678a6e33c9c2d7fc2bf085faf
--- /dev/null
+++ b/components/password_manager/content/renderer/test_credential_manager_dispatcher.h
@@ -0,0 +1,36 @@
+// Copyright 2014 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.
+
+#ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_TEST_CREDENTIAL_MANAGER_DISPATCHER_H_
+#define COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_TEST_CREDENTIAL_MANAGER_DISPATCHER_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "components/password_manager/content/renderer/credential_manager_dispatcher.h"
+
+namespace password_manager {
+
+class TestCredentialManagerDispatcher : public CredentialManagerDispatcher {
+ public:
+ TestCredentialManagerDispatcher();
+ virtual ~TestCredentialManagerDispatcher();
+
+ virtual void ClearCallbackErrorMaps() OVERRIDE;
+
+ virtual int GetRoutingID() OVERRIDE;
+
+ NotificationCallbacksMap* failed_sign_in_map() {
+ return &failed_sign_in_callbacks_;
+ }
+ NotificationCallbacksMap* signed_in_map() { return &signed_in_callbacks_; }
+ NotificationCallbacksMap* signed_out_map() { return &signed_out_callbacks_; }
+
+ 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
+
+ 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.
+};
+
+} // namespace password_manager
+
+#endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_RENDERER_TEST_CREDENTIAL_MANAGER_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698