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

Unified Diff: third_party/WebKit/Source/modules/payments/AbortTest.cpp

Issue 2748093003: PaymentRequest: Introduce PaymentDetailsInit and PaymentDetailsUpdate. (Closed)
Patch Set: PaymentRequest: Introduce PaymentDetailsInit and PaymentDetailsUpdate. Created 3 years, 9 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: third_party/WebKit/Source/modules/payments/AbortTest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/AbortTest.cpp b/third_party/WebKit/Source/modules/payments/AbortTest.cpp
index 98daac8493ccaff0892c6666cfc941d810cd02bc..bf92a2fa85826d97cc4aeb57ac0e70ad1dd84759 100644
--- a/third_party/WebKit/Source/modules/payments/AbortTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/AbortTest.cpp
@@ -20,7 +20,7 @@ TEST(AbortTest, CannotAbortBeforeShow) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->abort(scope.getScriptState())
.then(funcs.expectNoCall(), funcs.expectCall());
@@ -34,7 +34,7 @@ TEST(AbortTest, CannotAbortTwiceConcurrently) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->show(scope.getScriptState());
request->abort(scope.getScriptState());
@@ -50,7 +50,7 @@ TEST(AbortTest, CanAbortAfterShow) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->show(scope.getScriptState());
request->abort(scope.getScriptState())
@@ -65,7 +65,7 @@ TEST(AbortTest, FailedAbortShouldRejectAbortPromise) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->show(scope.getScriptState());
request->abort(scope.getScriptState())
@@ -83,7 +83,7 @@ TEST(AbortTest, CanAbortAgainAfterFirstAbortRejected) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->show(scope.getScriptState());
request->abort(scope.getScriptState());
static_cast<payments::mojom::blink::PaymentRequestClient*>(request)->OnAbort(
@@ -101,7 +101,7 @@ TEST(AbortTest, SuccessfulAbortShouldRejectShowPromiseAndResolveAbortPromise) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->show(scope.getScriptState())
.then(funcs.expectNoCall(), funcs.expectCall());

Powered by Google App Engine
This is Rietveld 408576698