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

Unified Diff: third_party/WebKit/Source/modules/payments/CanMakePaymentTest.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/CanMakePaymentTest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/CanMakePaymentTest.cpp b/third_party/WebKit/Source/modules/payments/CanMakePaymentTest.cpp
index 87a88f84d20d0c0d4972d323ba4a95e07e85238f..6900388448ba69b8e5d74b5eab5d7249a12239a2 100644
--- a/third_party/WebKit/Source/modules/payments/CanMakePaymentTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/CanMakePaymentTest.cpp
@@ -22,7 +22,7 @@ TEST(CanMakePaymentTest, RejectPromiseOnUserCancel) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->canMakePayment(scope.getScriptState())
.then(funcs.expectNoCall(), funcs.expectCall());
@@ -37,7 +37,7 @@ TEST(CanMakePaymentTest, RejectPromiseOnUnknownError) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->canMakePayment(scope.getScriptState())
.then(funcs.expectNoCall(), funcs.expectCall());
@@ -52,7 +52,7 @@ TEST(CanMakePaymentTest, RejectDuplicateRequest) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->canMakePayment(scope.getScriptState());
request->canMakePayment(scope.getScriptState())
@@ -65,7 +65,7 @@ TEST(CanMakePaymentTest, RejectQueryQuotaExceeded) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
request->canMakePayment(scope.getScriptState())
.then(funcs.expectNoCall(), funcs.expectCall());
@@ -80,7 +80,7 @@ TEST(CanMakePaymentTest, ReturnCannotMakeCanMakePayment) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
String captor;
request->canMakePayment(scope.getScriptState())
.then(funcs.expectCall(&captor), funcs.expectNoCall());
@@ -98,7 +98,7 @@ TEST(CanMakePaymentTest, ReturnCanMakePayment) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
String captor;
request->canMakePayment(scope.getScriptState())
.then(funcs.expectCall(&captor), funcs.expectNoCall());

Powered by Google App Engine
This is Rietveld 408576698