| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 MOCK_METHOD1(FillAutofillableLogins, | 57 MOCK_METHOD1(FillAutofillableLogins, |
| 58 bool(std::vector<std::unique_ptr<autofill::PasswordForm>>*)); | 58 bool(std::vector<std::unique_ptr<autofill::PasswordForm>>*)); |
| 59 MOCK_METHOD1(FillBlacklistLogins, | 59 MOCK_METHOD1(FillBlacklistLogins, |
| 60 bool(std::vector<std::unique_ptr<autofill::PasswordForm>>*)); | 60 bool(std::vector<std::unique_ptr<autofill::PasswordForm>>*)); |
| 61 MOCK_METHOD1(NotifyLoginsChanged, void(const PasswordStoreChangeList&)); | 61 MOCK_METHOD1(NotifyLoginsChanged, void(const PasswordStoreChangeList&)); |
| 62 MOCK_METHOD0(GetAllSiteStatsImpl, std::vector<InteractionsStats>()); | 62 MOCK_METHOD0(GetAllSiteStatsImpl, std::vector<InteractionsStats>()); |
| 63 MOCK_METHOD1(GetSiteStatsImpl, | 63 MOCK_METHOD1(GetSiteStatsImpl, |
| 64 std::vector<InteractionsStats>(const GURL& origin_domain)); | 64 std::vector<InteractionsStats>(const GURL& origin_domain)); |
| 65 MOCK_METHOD1(AddSiteStatsImpl, void(const InteractionsStats&)); | 65 MOCK_METHOD1(AddSiteStatsImpl, void(const InteractionsStats&)); |
| 66 MOCK_METHOD1(RemoveSiteStatsImpl, void(const GURL&)); | 66 MOCK_METHOD1(RemoveSiteStatsImpl, void(const GURL&)); |
| 67 // TODO(crbug.com/706392): Fix password reuse detection for Android. |
| 68 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 67 MOCK_METHOD3(CheckReuse, | 69 MOCK_METHOD3(CheckReuse, |
| 68 void(const base::string16&, | 70 void(const base::string16&, |
| 69 const std::string&, | 71 const std::string&, |
| 70 PasswordReuseDetectorConsumer*)); | 72 PasswordReuseDetectorConsumer*)); |
| 73 #endif |
| 71 | 74 |
| 72 PasswordStoreSync* GetSyncInterface() { return this; } | 75 PasswordStoreSync* GetSyncInterface() { return this; } |
| 73 | 76 |
| 74 protected: | 77 protected: |
| 75 virtual ~MockPasswordStore(); | 78 virtual ~MockPasswordStore(); |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 } // namespace password_manager | 81 } // namespace password_manager |
| 79 | 82 |
| 80 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ | 83 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ |
| OLD | NEW |