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 #include "components/payments/core/test_payment_request_delegate.h" | 5 #include "components/payments/core/test_payment_request_delegate.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 | 8 |
9 namespace payments { | 9 namespace payments { |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void TestPaymentRequestDelegate::DelayFullCardRequestCompletion() { | 70 void TestPaymentRequestDelegate::DelayFullCardRequestCompletion() { |
71 instantaneous_full_card_request_result_ = false; | 71 instantaneous_full_card_request_result_ = false; |
72 } | 72 } |
73 | 73 |
74 void TestPaymentRequestDelegate::CompleteFullCardRequest() { | 74 void TestPaymentRequestDelegate::CompleteFullCardRequest() { |
75 DCHECK(instantaneous_full_card_request_result_ == false); | 75 DCHECK(instantaneous_full_card_request_result_ == false); |
76 full_card_result_delegate_->OnFullCardRequestSucceeded( | 76 full_card_result_delegate_->OnFullCardRequestSucceeded( |
77 full_card_request_card_, base::ASCIIToUTF16("123")); | 77 full_card_request_card_, base::ASCIIToUTF16("123")); |
78 } | 78 } |
79 | 79 |
| 80 std::string TestPaymentRequestDelegate::GetAuthenticatedEmail() const { |
| 81 return ""; |
| 82 } |
| 83 |
| 84 PrefService* TestPaymentRequestDelegate::GetPrefService() { |
| 85 return nullptr; |
| 86 } |
| 87 |
80 } // namespace payments | 88 } // namespace payments |
OLD | NEW |