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

Unified Diff: third_party/WebKit/Source/modules/payments/CompleteTest.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/CompleteTest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/CompleteTest.cpp b/third_party/WebKit/Source/modules/payments/CompleteTest.cpp
index c6c805bec7946d77501eb5385334c78c0a485615..8ae80f8d2429721d7b4c8c77f66f124bd9664246 100644
--- a/third_party/WebKit/Source/modules/payments/CompleteTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/CompleteTest.cpp
@@ -18,7 +18,7 @@ TEST(CompleteTest, CannotCallCompleteTwice) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
EXPECT_FALSE(scope.getExceptionState().hadException());
request->show(scope.getScriptState());
static_cast<payments::mojom::blink::PaymentRequestClient*>(request)
@@ -35,7 +35,7 @@ TEST(CompleteTest, RejectCompletePromiseOnError) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
EXPECT_FALSE(scope.getExceptionState().hadException());
request->show(scope.getScriptState());
static_cast<payments::mojom::blink::PaymentRequestClient*>(request)
@@ -60,7 +60,7 @@ TEST(CompleteTest, RejectCompletePromiseAfterError) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
EXPECT_FALSE(scope.getExceptionState().hadException());
request->show(scope.getScriptState());
static_cast<payments::mojom::blink::PaymentRequestClient*>(request)
@@ -78,7 +78,7 @@ TEST(CompleteTest, ResolvePromiseOnComplete) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
EXPECT_FALSE(scope.getExceptionState().hadException());
request->show(scope.getScriptState());
static_cast<payments::mojom::blink::PaymentRequestClient*>(request)
@@ -97,7 +97,7 @@ TEST(CompleteTest, RejectCompletePromiseOnUpdateDetailsFailure) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
EXPECT_FALSE(scope.getExceptionState().hadException());
request->show(scope.getScriptState())
.then(funcs.expectCall(), funcs.expectNoCall());
@@ -120,7 +120,7 @@ TEST(CompleteTest, RejectCompletePromiseAfterTimeout) {
makePaymentRequestOriginSecure(scope.document());
PaymentRequest* request = PaymentRequest::create(
scope.getExecutionContext(), buildPaymentMethodDataForTest(),
- buildPaymentDetailsForTest(), scope.getExceptionState());
+ buildPaymentDetailsInitForTest(), scope.getExceptionState());
EXPECT_FALSE(scope.getExceptionState().hadException());
request->show(scope.getScriptState())
.then(funcs.expectCall(), funcs.expectNoCall());

Powered by Google App Engine
This is Rietveld 408576698