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_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 TestAutofillClient(); | 27 TestAutofillClient(); |
28 ~TestAutofillClient() override; | 28 ~TestAutofillClient() override; |
29 | 29 |
30 // AutofillClient implementation. | 30 // AutofillClient implementation. |
31 PersonalDataManager* GetPersonalDataManager() override; | 31 PersonalDataManager* GetPersonalDataManager() override; |
32 scoped_refptr<AutofillWebDataService> GetDatabase() override; | 32 scoped_refptr<AutofillWebDataService> GetDatabase() override; |
33 PrefService* GetPrefs() override; | 33 PrefService* GetPrefs() override; |
34 syncer::SyncService* GetSyncService() override; | 34 syncer::SyncService* GetSyncService() override; |
35 IdentityProvider* GetIdentityProvider() override; | 35 IdentityProvider* GetIdentityProvider() override; |
36 rappor::RapporService* GetRapporService() override; | 36 rappor::RapporServiceImpl* GetRapporServiceImpl() override; |
37 void ShowAutofillSettings() override; | 37 void ShowAutofillSettings() override; |
38 void ShowUnmaskPrompt(const CreditCard& card, | 38 void ShowUnmaskPrompt(const CreditCard& card, |
39 UnmaskCardReason reason, | 39 UnmaskCardReason reason, |
40 base::WeakPtr<CardUnmaskDelegate> delegate) override; | 40 base::WeakPtr<CardUnmaskDelegate> delegate) override; |
41 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 41 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
42 void ConfirmSaveCreditCardLocally(const CreditCard& card, | 42 void ConfirmSaveCreditCardLocally(const CreditCard& card, |
43 const base::Closure& callback) override; | 43 const base::Closure& callback) override; |
44 void ConfirmSaveCreditCardToCloud( | 44 void ConfirmSaveCreditCardToCloud( |
45 const CreditCard& card, | 45 const CreditCard& card, |
46 std::unique_ptr<base::DictionaryValue> legal_message, | 46 std::unique_ptr<base::DictionaryValue> legal_message, |
(...skipping 22 matching lines...) Expand all Loading... |
69 void OnFirstUserGestureObserved() override; | 69 void OnFirstUserGestureObserved() override; |
70 bool IsContextSecure(const GURL& form_origin) override; | 70 bool IsContextSecure(const GURL& form_origin) override; |
71 bool ShouldShowSigninPromo() override; | 71 bool ShouldShowSigninPromo() override; |
72 void StartSigninFlow() override; | 72 void StartSigninFlow() override; |
73 void ShowHttpNotSecureExplanation() override; | 73 void ShowHttpNotSecureExplanation() override; |
74 | 74 |
75 void SetPrefs(std::unique_ptr<PrefService> prefs) { | 75 void SetPrefs(std::unique_ptr<PrefService> prefs) { |
76 prefs_ = std::move(prefs); | 76 prefs_ = std::move(prefs); |
77 } | 77 } |
78 | 78 |
79 rappor::TestRapporService* test_rappor_service() { | 79 rappor::TestRapporServiceImpl* test_rappor_service() { |
80 return rappor_service_.get(); | 80 return rappor_service_.get(); |
81 } | 81 } |
82 | 82 |
83 private: | 83 private: |
84 // NULL by default. | 84 // NULL by default. |
85 std::unique_ptr<PrefService> prefs_; | 85 std::unique_ptr<PrefService> prefs_; |
86 std::unique_ptr<FakeOAuth2TokenService> token_service_; | 86 std::unique_ptr<FakeOAuth2TokenService> token_service_; |
87 std::unique_ptr<FakeIdentityProvider> identity_provider_; | 87 std::unique_ptr<FakeIdentityProvider> identity_provider_; |
88 std::unique_ptr<rappor::TestRapporService> rappor_service_; | 88 std::unique_ptr<rappor::TestRapporServiceImpl> rappor_service_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); | 90 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace autofill | 93 } // namespace autofill |
94 | 94 |
95 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 95 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
OLD | NEW |