| OLD | NEW |
| 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ |
| 7 | 7 |
| 8 #include "components/autofill/core/common/password_form.h" | 8 #include "components/autofill/core/common/password_form.h" |
| 9 #include "components/password_manager/core/browser/password_store.h" | 9 #include "components/password_manager/core/browser/password_store.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 MOCK_METHOD1(RemoveLoginImpl, | 31 MOCK_METHOD1(RemoveLoginImpl, |
| 32 PasswordStoreChangeList(const autofill::PasswordForm&)); | 32 PasswordStoreChangeList(const autofill::PasswordForm&)); |
| 33 MOCK_METHOD2(RemoveLoginsCreatedBetweenImpl, | 33 MOCK_METHOD2(RemoveLoginsCreatedBetweenImpl, |
| 34 PasswordStoreChangeList(base::Time, base::Time)); | 34 PasswordStoreChangeList(base::Time, base::Time)); |
| 35 MOCK_METHOD2(RemoveLoginsSyncedBetweenImpl, | 35 MOCK_METHOD2(RemoveLoginsSyncedBetweenImpl, |
| 36 PasswordStoreChangeList(base::Time, base::Time)); | 36 PasswordStoreChangeList(base::Time, base::Time)); |
| 37 MOCK_METHOD3(GetLoginsImpl, | 37 MOCK_METHOD3(GetLoginsImpl, |
| 38 void(const autofill::PasswordForm& form, | 38 void(const autofill::PasswordForm& form, |
| 39 PasswordStore::AuthorizationPromptPolicy prompt_policy, | 39 PasswordStore::AuthorizationPromptPolicy prompt_policy, |
| 40 const ConsumerCallbackRunner& callback_runner)); | 40 const ConsumerCallbackRunner& callback_runner)); |
| 41 MOCK_METHOD1(GetAutofillableLoginsImpl, void(GetLoginsRequest*)); | 41 void GetAutofillableLoginsImpl( |
| 42 MOCK_METHOD1(GetBlacklistLoginsImpl, void(GetLoginsRequest*)); | 42 scoped_ptr<GetLoginsRequest> request) override {} |
| 43 void GetBlacklistLoginsImpl(scoped_ptr<GetLoginsRequest> request) override {} |
| 43 MOCK_METHOD1(FillAutofillableLogins, | 44 MOCK_METHOD1(FillAutofillableLogins, |
| 44 bool(ScopedVector<autofill::PasswordForm>*)); | 45 bool(ScopedVector<autofill::PasswordForm>*)); |
| 45 MOCK_METHOD1(FillBlacklistLogins, | 46 MOCK_METHOD1(FillBlacklistLogins, |
| 46 bool(ScopedVector<autofill::PasswordForm>*)); | 47 bool(ScopedVector<autofill::PasswordForm>*)); |
| 47 MOCK_METHOD1(NotifyLoginsChanged, void(const PasswordStoreChangeList&)); | 48 MOCK_METHOD1(NotifyLoginsChanged, void(const PasswordStoreChangeList&)); |
| 48 | 49 |
| 49 PasswordStoreSync* GetSyncInterface() { return this; } | 50 PasswordStoreSync* GetSyncInterface() { return this; } |
| 50 | 51 |
| 51 protected: | 52 protected: |
| 52 virtual ~MockPasswordStore(); | 53 virtual ~MockPasswordStore(); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace password_manager | 56 } // namespace password_manager |
| 56 | 57 |
| 57 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ | 58 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ |
| OLD | NEW |