| Index: third_party/WebKit/Source/modules/payments/OnPaymentResponseTest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/payments/OnPaymentResponseTest.cpp b/third_party/WebKit/Source/modules/payments/OnPaymentResponseTest.cpp
|
| index 99d1e1834b9d9f4ca3115d89e55ecdfc7e67cd4f..79fff77f2b1b84f878fd4169e885820c5500783d 100644
|
| --- a/third_party/WebKit/Source/modules/payments/OnPaymentResponseTest.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/OnPaymentResponseTest.cpp
|
| @@ -26,7 +26,7 @@
|
| options.setRequestShipping(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| ASSERT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| buildPaymentResponseForTest();
|
| @@ -52,7 +52,7 @@
|
| options.setRequestShipping(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| ASSERT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| buildPaymentResponseForTest();
|
| @@ -75,7 +75,7 @@
|
| options.setRequestPayerName(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -97,7 +97,7 @@
|
| options.setRequestPayerEmail(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -119,7 +119,7 @@
|
| options.setRequestPayerPhone(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -141,7 +141,7 @@
|
| options.setRequestShipping(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| ASSERT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| buildPaymentResponseForTest();
|
| @@ -168,7 +168,7 @@
|
| options.setRequestShipping(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| ASSERT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| buildPaymentResponseForTest();
|
| @@ -192,7 +192,7 @@
|
| options.setRequestPayerName(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -215,7 +215,7 @@
|
| options.setRequestPayerEmail(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -238,7 +238,7 @@
|
| options.setRequestPayerPhone(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -261,7 +261,7 @@
|
| options.setRequestShipping(false);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| ASSERT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -287,7 +287,7 @@
|
| options.setRequestShipping(false);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| ASSERT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -310,7 +310,7 @@
|
| options.setRequestPayerName(false);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -333,7 +333,7 @@
|
| options.setRequestPayerEmail(false);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -356,7 +356,7 @@
|
| options.setRequestPayerPhone(false);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -379,7 +379,7 @@
|
| options.setRequestShipping(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| ASSERT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| buildPaymentResponseForTest();
|
| @@ -428,7 +428,7 @@
|
| options.setRequestShipping(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| ASSERT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| buildPaymentResponseForTest();
|
| @@ -463,7 +463,7 @@
|
| options.setRequestPayerName(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -492,7 +492,7 @@
|
| options.setRequestPayerEmail(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -521,7 +521,7 @@
|
| options.setRequestPayerPhone(true);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -551,7 +551,7 @@
|
| options.setRequestShipping(false);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| ASSERT_FALSE(scope.getExceptionState().hadException());
|
| ScriptValue outValue;
|
| request->show(scope.getScriptState())
|
| @@ -578,7 +578,7 @@
|
| options.setRequestPayerPhone(false);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -607,7 +607,7 @@
|
| options.setRequestPayerName(false);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
| @@ -636,7 +636,7 @@
|
| options.setRequestPayerEmail(false);
|
| PaymentRequest* request = PaymentRequest::create(
|
| scope.getExecutionContext(), buildPaymentMethodDataForTest(),
|
| - buildPaymentDetailsInitForTest(), options, scope.getExceptionState());
|
| + buildPaymentDetailsForTest(), options, scope.getExceptionState());
|
| EXPECT_FALSE(scope.getExceptionState().hadException());
|
| payments::mojom::blink::PaymentResponsePtr response =
|
| payments::mojom::blink::PaymentResponse::New();
|
|
|