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

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

Issue 1200603003: Integrate PasswordStoreProxyMac instead of PasswordStoreMac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 5 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 "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 21 matching lines...) Expand all
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 ScopedVector<autofill::PasswordForm> FillMatchingLogins( 37 ScopedVector<autofill::PasswordForm> FillMatchingLogins(
38 const autofill::PasswordForm& form, 38 const autofill::PasswordForm& form,
39 PasswordStore::AuthorizationPromptPolicy prompt_policy) override { 39 PasswordStore::AuthorizationPromptPolicy prompt_policy) override {
40 return ScopedVector<autofill::PasswordForm>(); 40 return ScopedVector<autofill::PasswordForm>();
41 } 41 }
42 void GetAutofillableLoginsImpl(
43 scoped_ptr<GetLoginsRequest> request) override {}
44 void GetBlacklistLoginsImpl(scoped_ptr<GetLoginsRequest> request) override {}
45 MOCK_METHOD1(FillAutofillableLogins, 42 MOCK_METHOD1(FillAutofillableLogins,
46 bool(ScopedVector<autofill::PasswordForm>*)); 43 bool(ScopedVector<autofill::PasswordForm>*));
47 MOCK_METHOD1(FillBlacklistLogins, 44 MOCK_METHOD1(FillBlacklistLogins,
48 bool(ScopedVector<autofill::PasswordForm>*)); 45 bool(ScopedVector<autofill::PasswordForm>*));
49 MOCK_METHOD1(NotifyLoginsChanged, void(const PasswordStoreChangeList&)); 46 MOCK_METHOD1(NotifyLoginsChanged, void(const PasswordStoreChangeList&));
50 void AddSiteStatsImpl(const InteractionsStats& stats) override {} 47 void AddSiteStatsImpl(const InteractionsStats& stats) override {}
51 void RemoveSiteStatsImpl(const GURL& origin_domain) override {} 48 void RemoveSiteStatsImpl(const GURL& origin_domain) override {}
52 scoped_ptr<InteractionsStats> GetSiteStatsImpl( 49 scoped_ptr<InteractionsStats> GetSiteStatsImpl(
53 const GURL& origin_domain) override { 50 const GURL& origin_domain) override {
54 return scoped_ptr<InteractionsStats>(); 51 return scoped_ptr<InteractionsStats>();
55 } 52 }
56 53
57 PasswordStoreSync* GetSyncInterface() { return this; } 54 PasswordStoreSync* GetSyncInterface() { return this; }
58 55
59 protected: 56 protected:
60 virtual ~MockPasswordStore(); 57 virtual ~MockPasswordStore();
61 }; 58 };
62 59
63 } // namespace password_manager 60 } // namespace password_manager
64 61
65 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_ 62 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_PASSWORD_STORE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/password_manager/core/browser/password_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698