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

Unified Diff: ios/chrome/browser/ui/payments/payment_request_view_controller_unittest.mm

Issue 2878763002: [Payments] Better default selections on iOS (Closed)
Patch Set: fix test, really 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/payments/payment_request_coordinator.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/payments/payment_request_view_controller_unittest.mm
diff --git a/ios/chrome/browser/ui/payments/payment_request_view_controller_unittest.mm b/ios/chrome/browser/ui/payments/payment_request_view_controller_unittest.mm
index 5b4fd27cf327ddb91a54defa531fba32d92f74fe..7fd061fdd7e1bf2c257a067c04102f8cc1c1f403 100644
--- a/ios/chrome/browser/ui/payments/payment_request_view_controller_unittest.mm
+++ b/ios/chrome/browser/ui/payments/payment_request_view_controller_unittest.mm
@@ -114,7 +114,7 @@ TEST_F(PaymentRequestViewControllerTest, TestModelNoDisplayItem) {
CreateController();
CheckController();
- payment_request_->set_payment_details(web::PaymentDetails());
+ payment_request_->UpdatePaymentDetails(web::PaymentDetails());
[GetPaymentRequestViewController() loadModel];
// The only item in the Summary section should stil be of type PriceItem, but
@@ -152,7 +152,7 @@ TEST_F(PaymentRequestViewControllerTest, TestModelNoSelectedShippingOption) {
CheckController();
// Resetting the payment details should reset the selected shipping option.
- payment_request_->set_payment_details(web::PaymentDetails());
+ payment_request_->UpdatePaymentDetails(web::PaymentDetails());
[GetPaymentRequestViewController() loadModel];
// There should still be two items in the Shipping section.
« no previous file with comments | « ios/chrome/browser/ui/payments/payment_request_coordinator.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698