OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_ |
6 #define COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_ | 6 #define COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_ |
7 | 7 |
8 #include "components/payments/core/payment_request_delegate.h" | 8 #include "components/payments/core/payment_request_delegate.h" |
9 #include "components/payments/core/test_address_normalizer.h" | 9 #include "components/payments/core/test_address_normalizer.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 const std::string& GetApplicationLocale() const override; | 24 const std::string& GetApplicationLocale() const override; |
25 bool IsIncognito() const override; | 25 bool IsIncognito() const override; |
26 bool IsSslCertificateValid() override; | 26 bool IsSslCertificateValid() override; |
27 const GURL& GetLastCommittedURL() const override; | 27 const GURL& GetLastCommittedURL() const override; |
28 void DoFullCardRequest( | 28 void DoFullCardRequest( |
29 const autofill::CreditCard& credit_card, | 29 const autofill::CreditCard& credit_card, |
30 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> | 30 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> |
31 result_delegate) override; | 31 result_delegate) override; |
32 AddressNormalizer* GetAddressNormalizer() override; | 32 AddressNormalizer* GetAddressNormalizer() override; |
33 autofill::RegionDataLoader* GetRegionDataLoader() override; | 33 autofill::RegionDataLoader* GetRegionDataLoader() override; |
| 34 ukm::UkmService* GetUkmService() override; |
34 | 35 |
35 TestAddressNormalizer* test_address_normalizer(); | 36 TestAddressNormalizer* test_address_normalizer(); |
36 void DelayFullCardRequestCompletion(); | 37 void DelayFullCardRequestCompletion(); |
37 void CompleteFullCardRequest(); | 38 void CompleteFullCardRequest(); |
38 | 39 |
39 private: | 40 private: |
40 autofill::PersonalDataManager* personal_data_manager_; | 41 autofill::PersonalDataManager* personal_data_manager_; |
41 std::string locale_; | 42 std::string locale_; |
42 const GURL last_committed_url_; | 43 const GURL last_committed_url_; |
43 TestAddressNormalizer address_normalizer_; | 44 TestAddressNormalizer address_normalizer_; |
44 | 45 |
| 46 bool instantaneous_full_card_request_result_ = true; |
45 autofill::CreditCard full_card_request_card_; | 47 autofill::CreditCard full_card_request_card_; |
46 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> | 48 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> |
47 full_card_result_delegate_; | 49 full_card_result_delegate_; |
48 | |
49 bool instantaneous_full_card_request_result_ = true; | |
50 DISALLOW_COPY_AND_ASSIGN(TestPaymentRequestDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(TestPaymentRequestDelegate); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace payments | 53 } // namespace payments |
54 | 54 |
55 #endif // COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_ | 55 #endif // COMPONENTS_PAYMENTS_CORE_TEST_PAYMENT_REQUEST_DELEGATE_H_ |
OLD | NEW |