OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PASSWORD_MANAGER_TEST_UTILS_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_TEST_UTILS_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_TEST_UTILS_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_TEST_UTILS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 } | 76 } |
77 | 77 |
78 class MockPasswordStoreObserver : public PasswordStore::Observer { | 78 class MockPasswordStoreObserver : public PasswordStore::Observer { |
79 public: | 79 public: |
80 MockPasswordStoreObserver(); | 80 MockPasswordStoreObserver(); |
81 ~MockPasswordStoreObserver() override; | 81 ~MockPasswordStoreObserver() override; |
82 | 82 |
83 MOCK_METHOD1(OnLoginsChanged, void(const PasswordStoreChangeList& changes)); | 83 MOCK_METHOD1(OnLoginsChanged, void(const PasswordStoreChangeList& changes)); |
84 }; | 84 }; |
85 | 85 |
| 86 // TODO(crbug.com/706392): Fix password reuse detection for Android. |
| 87 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
86 class MockPasswordReuseDetectorConsumer : public PasswordReuseDetectorConsumer { | 88 class MockPasswordReuseDetectorConsumer : public PasswordReuseDetectorConsumer { |
87 public: | 89 public: |
88 MockPasswordReuseDetectorConsumer(); | 90 MockPasswordReuseDetectorConsumer(); |
89 ~MockPasswordReuseDetectorConsumer() override; | 91 ~MockPasswordReuseDetectorConsumer() override; |
90 | 92 |
91 MOCK_METHOD4(OnReuseFound, | 93 MOCK_METHOD4(OnReuseFound, |
92 void(const base::string16&, const std::string&, int, int)); | 94 void(const base::string16&, const std::string&, int, int)); |
93 }; | 95 }; |
| 96 #endif |
94 | 97 |
95 } // namespace password_manager | 98 } // namespace password_manager |
96 | 99 |
97 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_TEST_UTILS_
H_ | 100 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_MANAGER_TEST_UTILS_
H_ |
OLD | NEW |