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

Unified Diff: ios/chrome/browser/payments/test_payment_request.mm

Issue 2958873002: [Payment Request] Unit tests for incomplete shipping/billing address selection (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/payments/test_payment_request.mm
diff --git a/ios/chrome/browser/payments/test_payment_request.mm b/ios/chrome/browser/payments/test_payment_request.mm
index 336d45fc41e91b1223dc1a99b13b052be11d6851..be46d8a30b2423434ffa8c5f8ad771db6d06e9f9 100644
--- a/ios/chrome/browser/payments/test_payment_request.mm
+++ b/ios/chrome/browser/payments/test_payment_request.mm
@@ -26,9 +26,13 @@ void TestPaymentRequest::ClearCreditCards() {
}
autofill::RegionDataLoader* TestPaymentRequest::GetRegionDataLoader() {
- return region_data_loader_;
+ if (region_data_loader_)
+ return region_data_loader_;
+ return PaymentRequest::GetRegionDataLoader();
}
payments::PaymentsProfileComparator* TestPaymentRequest::profile_comparator() {
- return profile_comparator_;
+ if (profile_comparator_)
+ return profile_comparator_;
+ return PaymentRequest::profile_comparator();
}

Powered by Google App Engine
This is Rietveld 408576698