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

Side by Side Diff: components/password_manager/core/browser/password_manager_test_utils.h

Issue 2777283004: Do not build Password Reuse on Android and iOS (Closed)
Patch Set: Changed #ifdef to OS defines Created 3 years, 8 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698