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

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

Issue 2956323002: [Payment Request] Simplifies VC's logic to decide if an item is selectable (Closed)
Patch Set: Addressed comment 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/ui/payments/payment_method_selection_coordinator_unittest.mm
diff --git a/ios/chrome/browser/ui/payments/payment_method_selection_coordinator_unittest.mm b/ios/chrome/browser/ui/payments/payment_method_selection_coordinator_unittest.mm
index c3ab482b125826562bf12f8ae5e07dbf3c7756ae..145efaf0a5151a11c286a986369d0648d7d05913 100644
--- a/ios/chrome/browser/ui/payments/payment_method_selection_coordinator_unittest.mm
+++ b/ios/chrome/browser/ui/payments/payment_method_selection_coordinator_unittest.mm
@@ -123,14 +123,12 @@ TEST_F(PaymentRequestPaymentMethodSelectionCoordinatorTest,
PaymentRequestSelectorViewController* view_controller =
base::mac::ObjCCastStrict<PaymentRequestSelectorViewController>(
navigation_controller.visibleViewController);
- [coordinator paymentRequestSelectorViewController:view_controller
- didSelectItemAtIndex:0];
- // Wait for the coordinator delegate to be notified.
- base::test::ios::SpinRunLoopWithMinDelay(base::TimeDelta::FromSecondsD(0.5));
- [coordinator paymentRequestSelectorViewController:view_controller
- didSelectItemAtIndex:1];
+ EXPECT_TRUE([coordinator paymentRequestSelectorViewController:view_controller
+ didSelectItemAtIndex:0]);
// Wait for the coordinator delegate to be notified.
base::test::ios::SpinRunLoopWithMinDelay(base::TimeDelta::FromSecondsD(0.5));
+ EXPECT_FALSE([coordinator paymentRequestSelectorViewController:view_controller
+ didSelectItemAtIndex:1]);
EXPECT_OCMOCK_VERIFY(delegate);
}

Powered by Google App Engine
This is Rietveld 408576698