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

Side by Side Diff: components/autofill/core/browser/test_autofill_client.h

Issue 2789843004: [Payments] Upload card UI now has a CVC prompt (Closed)
Patch Set: Address code review comment 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_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 18 matching lines...) Expand all
29 ~TestAutofillClient() override; 29 ~TestAutofillClient() override;
30 30
31 // AutofillClient implementation. 31 // AutofillClient implementation.
32 PersonalDataManager* GetPersonalDataManager() override; 32 PersonalDataManager* GetPersonalDataManager() override;
33 scoped_refptr<AutofillWebDataService> GetDatabase() override; 33 scoped_refptr<AutofillWebDataService> GetDatabase() override;
34 PrefService* GetPrefs() override; 34 PrefService* GetPrefs() override;
35 syncer::SyncService* GetSyncService() override; 35 syncer::SyncService* GetSyncService() override;
36 IdentityProvider* GetIdentityProvider() override; 36 IdentityProvider* GetIdentityProvider() override;
37 rappor::RapporServiceImpl* GetRapporServiceImpl() override; 37 rappor::RapporServiceImpl* GetRapporServiceImpl() override;
38 ukm::UkmService* GetUkmService() override; 38 ukm::UkmService* GetUkmService() override;
39 SaveCardBubbleController* GetSaveCardBubbleController() override;
39 void ShowAutofillSettings() override; 40 void ShowAutofillSettings() override;
40 void ShowUnmaskPrompt(const CreditCard& card, 41 void ShowUnmaskPrompt(const CreditCard& card,
41 UnmaskCardReason reason, 42 UnmaskCardReason reason,
42 base::WeakPtr<CardUnmaskDelegate> delegate) override; 43 base::WeakPtr<CardUnmaskDelegate> delegate) override;
43 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; 44 void OnUnmaskVerificationResult(PaymentsRpcResult result) override;
44 void ConfirmSaveCreditCardLocally(const CreditCard& card, 45 void ConfirmSaveCreditCardLocally(const CreditCard& card,
45 const base::Closure& callback) override; 46 const base::Closure& callback) override;
46 void ConfirmSaveCreditCardToCloud( 47 void ConfirmSaveCreditCardToCloud(
47 const CreditCard& card, 48 const CreditCard& card,
48 std::unique_ptr<base::DictionaryValue> legal_message, 49 std::unique_ptr<base::DictionaryValue> legal_message,
50 bool should_cvc_be_requested,
49 const base::Closure& callback) override; 51 const base::Closure& callback) override;
50 void ConfirmCreditCardFillAssist(const CreditCard& card, 52 void ConfirmCreditCardFillAssist(const CreditCard& card,
51 const base::Closure& callback) override; 53 const base::Closure& callback) override;
52 void LoadRiskData( 54 void LoadRiskData(
53 const base::Callback<void(const std::string&)>& callback) override; 55 const base::Callback<void(const std::string&)>& callback) override;
54 bool HasCreditCardScanFeature() override; 56 bool HasCreditCardScanFeature() override;
55 void ScanCreditCard(const CreditCardScanCallback& callback) override; 57 void ScanCreditCard(const CreditCardScanCallback& callback) override;
56 void ShowAutofillPopup( 58 void ShowAutofillPopup(
57 const gfx::RectF& element_bounds, 59 const gfx::RectF& element_bounds,
58 base::i18n::TextDirection text_direction, 60 base::i18n::TextDirection text_direction,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return ukm_service_test_harness_.test_ukm_service(); 93 return ukm_service_test_harness_.test_ukm_service();
92 } 94 }
93 95
94 private: 96 private:
95 // NULL by default. 97 // NULL by default.
96 std::unique_ptr<PrefService> prefs_; 98 std::unique_ptr<PrefService> prefs_;
97 std::unique_ptr<FakeOAuth2TokenService> token_service_; 99 std::unique_ptr<FakeOAuth2TokenService> token_service_;
98 std::unique_ptr<FakeIdentityProvider> identity_provider_; 100 std::unique_ptr<FakeIdentityProvider> identity_provider_;
99 std::unique_ptr<rappor::TestRapporServiceImpl> rappor_service_; 101 std::unique_ptr<rappor::TestRapporServiceImpl> rappor_service_;
100 ukm::UkmServiceTestingHarness ukm_service_test_harness_; 102 ukm::UkmServiceTestingHarness ukm_service_test_harness_;
103 #if !defined(OS_ANDROID)
104 std::unique_ptr<SaveCardBubbleController> save_card_bubble_controller_;
105 #endif
101 GURL form_origin_; 106 GURL form_origin_;
102 107
103 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); 108 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient);
104 }; 109 };
105 110
106 } // namespace autofill 111 } // namespace autofill
107 112
108 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 113 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_metrics.h ('k') | components/autofill/core/browser/test_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698