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

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

Issue 2695233004: Implement PasswordStore::GetAllStats (Closed)
Patch Set: Add Mac Implementations Created 3 years, 10 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 (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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 PasswordStoreChangeList(const base::Callback<bool(const GURL&)>&)); 52 PasswordStoreChangeList(const base::Callback<bool(const GURL&)>&));
53 std::vector<std::unique_ptr<autofill::PasswordForm>> FillMatchingLogins( 53 std::vector<std::unique_ptr<autofill::PasswordForm>> FillMatchingLogins(
54 const PasswordStore::FormDigest& form) override { 54 const PasswordStore::FormDigest& form) override {
55 return std::vector<std::unique_ptr<autofill::PasswordForm>>(); 55 return std::vector<std::unique_ptr<autofill::PasswordForm>>();
56 } 56 }
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_METHOD1(GetSiteStatsImpl, 63 MOCK_METHOD1(GetSiteStatsImpl,
63 std::vector<InteractionsStats>(const GURL& origin_domain)); 64 std::vector<InteractionsStats>(const GURL& origin_domain));
64 MOCK_METHOD1(AddSiteStatsImpl, void(const InteractionsStats&)); 65 MOCK_METHOD1(AddSiteStatsImpl, void(const InteractionsStats&));
65 MOCK_METHOD1(RemoveSiteStatsImpl, void(const GURL&)); 66 MOCK_METHOD1(RemoveSiteStatsImpl, void(const GURL&));
66 MOCK_METHOD3(CheckReuse, 67 MOCK_METHOD3(CheckReuse,
67 void(const base::string16&, 68 void(const base::string16&,
68 const std::string&, 69 const std::string&,
69 PasswordReuseDetectorConsumer*)); 70 PasswordReuseDetectorConsumer*));
70 71
71 PasswordStoreSync* GetSyncInterface() { return this; } 72 PasswordStoreSync* GetSyncInterface() { return this; }
72 73
73 protected: 74 protected:
74 virtual ~MockPasswordStore(); 75 virtual ~MockPasswordStore();
75 }; 76 };
76 77
77 } // namespace password_manager 78 } // namespace password_manager
78 79
79 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ 80 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_proxy_mac.cc ('k') | components/password_manager/core/browser/password_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698