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

Unified Diff: components/password_manager/core/browser/mock_password_manager_driver.h

Issue 250353003: Password bubble: refactor ManagePasswordsIconView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/cc/h Created 6 years, 8 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/core/browser/mock_password_manager_driver.h
diff --git a/components/password_manager/core/browser/mock_password_manager_driver.h b/components/password_manager/core/browser/mock_password_manager_driver.h
new file mode 100644
index 0000000000000000000000000000000000000000..b59a824ba8c6f7c7f77d9e03d5d2f87a01ed5c4d
--- /dev/null
+++ b/components/password_manager/core/browser/mock_password_manager_driver.h
@@ -0,0 +1,41 @@
+// Copyright (c) 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_CORE_BROWSER_MOCK_PASSWORD_MANAGER_DRIVER_H_
+#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_MANAGER_DRIVER_H_
+
+#include "components/autofill/core/browser/autofill_manager.h"
+#include "components/autofill/core/common/form_data.h"
+#include "components/autofill/core/common/password_form.h"
+#include "components/autofill/core/common/password_form_fill_data.h"
+#include "components/password_manager/core/browser/password_autofill_manager.h"
+#include "components/password_manager/core/browser/password_generation_manager.h"
+#include "components/password_manager/core/browser/password_manager.h"
+#include "components/password_manager/core/browser/password_manager_driver.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace password_manager {
+
+class MockPasswordManagerDriver : public PasswordManagerDriver {
+ public:
+ MockPasswordManagerDriver();
+ virtual ~MockPasswordManagerDriver();
+
+ MOCK_METHOD1(FillPasswordForm, void(const autofill::PasswordFormFillData&));
+ MOCK_METHOD0(DidLastPageLoadEncounterSSLErrors, bool());
+ MOCK_METHOD0(IsOffTheRecord, bool());
+ MOCK_METHOD0(GetPasswordGenerationManager, PasswordGenerationManager*());
+ MOCK_METHOD0(GetPasswordManager, PasswordManager*());
+ MOCK_METHOD0(GetAutofillManager, autofill::AutofillManager*());
+ MOCK_METHOD0(GetPasswordAutofillManager, PasswordAutofillManager*());
+ MOCK_METHOD1(AllowPasswordGenerationForForm, void(autofill::PasswordForm*));
+ MOCK_METHOD1(AccountCreationFormsFound,
+ void(const std::vector<autofill::FormData>&));
+ MOCK_METHOD2(AcceptPasswordAutofillSuggestion,
+ void(const base::string16&, const base::string16&));
+};
+
+} // namespace password_manager
+
+#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_MANAGER_DRIVER_H_
« no previous file with comments | « components/password_manager.gypi ('k') | components/password_manager/core/browser/mock_password_manager_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698