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

Unified Diff: chrome/browser/password_manager/mock_password_store.h

Issue 9665007: Profile refactoring: Remove all PasswordStore code from the Profile interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add to factory list Created 8 years, 9 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
« no previous file with comments | « chrome/browser/importer/profile_writer.cc ('k') | chrome/browser/password_manager/mock_password_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/mock_password_store.h
diff --git a/chrome/browser/password_manager/mock_password_store.h b/chrome/browser/password_manager/mock_password_store.h
new file mode 100644
index 0000000000000000000000000000000000000000..daa940cc87665dd7ecbcc4f8ca01e7807315239f
--- /dev/null
+++ b/chrome/browser/password_manager/mock_password_store.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_
+#define CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_
+
+#include "chrome/browser/password_manager/password_store.h"
+#include "testing/gmock/include/gmock/gmock.h"
+#include "webkit/forms/password_form.h"
+
+class Profile;
+
+class MockPasswordStore : public PasswordStore {
+ public:
+ MockPasswordStore();
+ virtual ~MockPasswordStore();
+
+ static ProfileKeyedBase* Build(Profile* profile);
+
+ MOCK_METHOD1(RemoveLogin, void(const webkit::forms::PasswordForm&));
+ MOCK_METHOD2(GetLogins, int(const webkit::forms::PasswordForm&,
+ PasswordStoreConsumer*));
+ MOCK_METHOD1(AddLogin, void(const webkit::forms::PasswordForm&));
+ MOCK_METHOD1(UpdateLogin, void(const webkit::forms::PasswordForm&));
+ MOCK_METHOD0(ReportMetrics, void());
+ MOCK_METHOD0(ReportMetricsImpl, void());
+ MOCK_METHOD1(AddLoginImpl, void(const webkit::forms::PasswordForm&));
+ MOCK_METHOD1(UpdateLoginImpl, void(const webkit::forms::PasswordForm&));
+ MOCK_METHOD1(RemoveLoginImpl, void(const webkit::forms::PasswordForm&));
+ MOCK_METHOD2(RemoveLoginsCreatedBetweenImpl, void(const base::Time&,
+ const base::Time&));
+ MOCK_METHOD2(GetLoginsImpl, void(GetLoginsRequest*,
+ const webkit::forms::PasswordForm&));
+ MOCK_METHOD1(GetAutofillableLoginsImpl, void(GetLoginsRequest*));
+ MOCK_METHOD1(GetBlacklistLoginsImpl, void(GetLoginsRequest*));
+ MOCK_METHOD1(FillAutofillableLogins,
+ bool(std::vector<webkit::forms::PasswordForm*>*));
+ MOCK_METHOD1(FillBlacklistLogins,
+ bool(std::vector<webkit::forms::PasswordForm*>*));
+
+ virtual void ShutdownOnUIThread();
+};
+
+#endif // CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_
« no previous file with comments | « chrome/browser/importer/profile_writer.cc ('k') | chrome/browser/password_manager/mock_password_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698