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

Side by Side Diff: components/payments/core/test_payment_request_delegate.cc

Issue 2851893002: [Payments] Record CanMakePayment metrics on Desktop. (Closed)
Patch Set: Windows Fix and Rebase Fix Created 3 years, 7 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
« no previous file with comments | « components/payments/core/test_payment_request_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 AddressNormalizer* TestPaymentRequestDelegate::GetAddressNormalizer() { 54 AddressNormalizer* TestPaymentRequestDelegate::GetAddressNormalizer() {
55 return &address_normalizer_; 55 return &address_normalizer_;
56 } 56 }
57 57
58 autofill::RegionDataLoader* TestPaymentRequestDelegate::GetRegionDataLoader() { 58 autofill::RegionDataLoader* TestPaymentRequestDelegate::GetRegionDataLoader() {
59 return nullptr; 59 return nullptr;
60 } 60 }
61 61
62 ukm::UkmService* TestPaymentRequestDelegate::GetUkmService() {
63 return nullptr;
64 }
65
62 TestAddressNormalizer* TestPaymentRequestDelegate::test_address_normalizer() { 66 TestAddressNormalizer* TestPaymentRequestDelegate::test_address_normalizer() {
63 return &address_normalizer_; 67 return &address_normalizer_;
64 } 68 }
65 69
66 void TestPaymentRequestDelegate::DelayFullCardRequestCompletion() { 70 void TestPaymentRequestDelegate::DelayFullCardRequestCompletion() {
67 instantaneous_full_card_request_result_ = false; 71 instantaneous_full_card_request_result_ = false;
68 } 72 }
69 73
70 void TestPaymentRequestDelegate::CompleteFullCardRequest() { 74 void TestPaymentRequestDelegate::CompleteFullCardRequest() {
71 DCHECK(instantaneous_full_card_request_result_ == false); 75 DCHECK(instantaneous_full_card_request_result_ == false);
72 full_card_result_delegate_->OnFullCardRequestSucceeded( 76 full_card_result_delegate_->OnFullCardRequestSucceeded(
73 full_card_request_card_, base::ASCIIToUTF16("123")); 77 full_card_request_card_, base::ASCIIToUTF16("123"));
74 } 78 }
75 79
76 } // namespace payments 80 } // namespace payments
OLDNEW
« no previous file with comments | « components/payments/core/test_payment_request_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698