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

Side by Side Diff: chrome/browser/password_manager/mock_password_store.h

Issue 23742004: Move PasswordForm from //content to //autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_password_form_conversion_utils
Patch Set: Rebase Created 7 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_
7 7
8 #include "chrome/browser/password_manager/password_store.h" 8 #include "chrome/browser/password_manager/password_store.h"
9 #include "content/public/common/password_form.h" 9 #include "components/autofill/core/common/password_form.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace content { 12 namespace content {
13 class BrowserContext; 13 class BrowserContext;
14 } 14 }
15 15
16 class MockPasswordStore : public PasswordStore { 16 class MockPasswordStore : public PasswordStore {
17 public: 17 public:
18 MockPasswordStore(); 18 MockPasswordStore();
19 19
20 static scoped_refptr<RefcountedBrowserContextKeyedService> Build( 20 static scoped_refptr<RefcountedBrowserContextKeyedService> Build(
21 content::BrowserContext* profile); 21 content::BrowserContext* profile);
22 22
23 MOCK_METHOD1(RemoveLogin, void(const content::PasswordForm&)); 23 MOCK_METHOD1(RemoveLogin, void(const autofill::PasswordForm&));
24 MOCK_METHOD2(GetLogins, 24 MOCK_METHOD2(GetLogins,
25 CancelableTaskTracker::TaskId(const content::PasswordForm&, 25 CancelableTaskTracker::TaskId(const autofill::PasswordForm&,
26 PasswordStoreConsumer*)); 26 PasswordStoreConsumer*));
27 MOCK_METHOD1(AddLogin, void(const content::PasswordForm&)); 27 MOCK_METHOD1(AddLogin, void(const autofill::PasswordForm&));
28 MOCK_METHOD1(UpdateLogin, void(const content::PasswordForm&)); 28 MOCK_METHOD1(UpdateLogin, void(const autofill::PasswordForm&));
29 MOCK_METHOD0(ReportMetrics, void()); 29 MOCK_METHOD0(ReportMetrics, void());
30 MOCK_METHOD0(ReportMetricsImpl, void()); 30 MOCK_METHOD0(ReportMetricsImpl, void());
31 MOCK_METHOD1(AddLoginImpl, void(const content::PasswordForm&)); 31 MOCK_METHOD1(AddLoginImpl, void(const autofill::PasswordForm&));
32 MOCK_METHOD1(UpdateLoginImpl, void(const content::PasswordForm&)); 32 MOCK_METHOD1(UpdateLoginImpl, void(const autofill::PasswordForm&));
33 MOCK_METHOD1(RemoveLoginImpl, void(const content::PasswordForm&)); 33 MOCK_METHOD1(RemoveLoginImpl, void(const autofill::PasswordForm&));
34 MOCK_METHOD2(RemoveLoginsCreatedBetweenImpl, void(const base::Time&, 34 MOCK_METHOD2(RemoveLoginsCreatedBetweenImpl, void(const base::Time&,
35 const base::Time&)); 35 const base::Time&));
36 MOCK_METHOD2(GetLoginsImpl, 36 MOCK_METHOD2(GetLoginsImpl,
37 void(const content::PasswordForm& form, 37 void(const autofill::PasswordForm& form,
38 const ConsumerCallbackRunner& callback_runner)); 38 const ConsumerCallbackRunner& callback_runner));
39 MOCK_METHOD1(GetAutofillableLoginsImpl, void(GetLoginsRequest*)); 39 MOCK_METHOD1(GetAutofillableLoginsImpl, void(GetLoginsRequest*));
40 MOCK_METHOD1(GetBlacklistLoginsImpl, void(GetLoginsRequest*)); 40 MOCK_METHOD1(GetBlacklistLoginsImpl, void(GetLoginsRequest*));
41 MOCK_METHOD1(FillAutofillableLogins, 41 MOCK_METHOD1(FillAutofillableLogins,
42 bool(std::vector<content::PasswordForm*>*)); 42 bool(std::vector<autofill::PasswordForm*>*));
43 MOCK_METHOD1(FillBlacklistLogins, 43 MOCK_METHOD1(FillBlacklistLogins,
44 bool(std::vector<content::PasswordForm*>*)); 44 bool(std::vector<autofill::PasswordForm*>*));
45 45
46 virtual void ShutdownOnUIThread(); 46 virtual void ShutdownOnUIThread();
47 47
48 protected: 48 protected:
49 virtual ~MockPasswordStore(); 49 virtual ~MockPasswordStore();
50 }; 50 };
51 51
52 #endif // CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_ 52 #endif // CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/login_database_unittest.cc ('k') | chrome/browser/password_manager/native_backend_gnome_x.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698