Index: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp |
index ce0d4a7f888e9e75a05883b91e23d1eb2eadf2ff..3e72fe9d2d4fd4dd10b65bee278ada227f9e9647 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp |
@@ -101,5 +101,18 @@ TEST(PaymentRequestUpdateEventTest, UpdaterNotRequired) |
EXPECT_FALSE(scope.getExceptionState().hadException()); |
} |
+TEST(PaymentRequestUpdateEventTest, OnUpdatePaymentDetailsTimeout) |
+{ |
+ V8TestingScope scope; |
+ PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::create(); |
+ MockPaymentUpdater* updater = new MockPaymentUpdater; |
+ event->setPaymentDetailsUpdater(updater); |
+ |
+ EXPECT_CALL(*updater, onUpdatePaymentDetails(testing::_)).Times(0); |
+ EXPECT_CALL(*updater, onUpdatePaymentDetailsFailure(testing::_)); |
+ |
+ event->onTimerFired(0); |
+} |
+ |
} // namespace |
} // namespace blink |