NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / password_manager / mock_password_store.h
blob24d268386f2f8bdc7b5ac0e3eb3b817531979663
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_
8 #include "components/autofill/core/common/password_form.h"
9 #include "components/password_manager/core/browser/password_store.h"
10 #include "testing/gmock/include/gmock/gmock.h"
12 namespace content {
13 class BrowserContext;
16 class MockPasswordStore : public PasswordStore {
17 public:
18 MockPasswordStore();
20 MOCK_METHOD1(RemoveLogin, void(const autofill::PasswordForm&));
21 MOCK_METHOD3(GetLogins, void(
22 const autofill::PasswordForm&,
23 PasswordStore::AuthorizationPromptPolicy prompt_policy,
24 PasswordStoreConsumer*));
25 MOCK_METHOD1(AddLogin, void(const autofill::PasswordForm&));
26 MOCK_METHOD1(UpdateLogin, void(const autofill::PasswordForm&));
27 MOCK_METHOD0(ReportMetrics, void());
28 MOCK_METHOD0(ReportMetricsImpl, void());
29 MOCK_METHOD1(AddLoginImpl,
30 PasswordStoreChangeList(const autofill::PasswordForm&));
31 MOCK_METHOD1(UpdateLoginImpl,
32 PasswordStoreChangeList(const autofill::PasswordForm&));
33 MOCK_METHOD1(RemoveLoginImpl,
34 PasswordStoreChangeList(const autofill::PasswordForm&));
35 MOCK_METHOD2(RemoveLoginsCreatedBetweenImpl,
36 PasswordStoreChangeList(const base::Time&, const base::Time&));
37 MOCK_METHOD3(GetLoginsImpl,
38 void(const autofill::PasswordForm& form,
39 PasswordStore::AuthorizationPromptPolicy prompt_policy,
40 const ConsumerCallbackRunner& callback_runner));
41 MOCK_METHOD1(GetAutofillableLoginsImpl, void(GetLoginsRequest*));
42 MOCK_METHOD1(GetBlacklistLoginsImpl, void(GetLoginsRequest*));
43 MOCK_METHOD1(FillAutofillableLogins,
44 bool(std::vector<autofill::PasswordForm*>*));
45 MOCK_METHOD1(FillBlacklistLogins,
46 bool(std::vector<autofill::PasswordForm*>*));
48 protected:
49 virtual ~MockPasswordStore();
52 #endif // CHROME_BROWSER_PASSWORD_MANAGER_MOCK_PASSWORD_STORE_H_