| Index: third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp
|
| index 988948ea1bc35689faf06dc53ad478585f9cabb2..374e6b776ddedc167ac648020b27dea2be649a30 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp
|
| @@ -10,6 +10,7 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "modules/payments/PaymentDetails.h"
|
| +#include "modules/payments/PaymentOptions.h"
|
| #include "modules/payments/PaymentTestHelper.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include <ostream> // NOLINT
|
| @@ -129,9 +130,11 @@ TEST_P(PaymentRequestDetailsTest, ValidatesDetails) {
|
| V8TestingScope scope;
|
| scope.document().setSecurityOrigin(
|
| SecurityOrigin::create(KURL(KURL(), "https://www.example.com/")));
|
| - PaymentRequest::create(scope.getScriptState(),
|
| - buildPaymentMethodDataForTest(),
|
| - GetParam().buildDetails(), scope.getExceptionState());
|
| + PaymentOptions options;
|
| + options.setRequestShipping(true);
|
| + PaymentRequest::create(
|
| + scope.getScriptState(), buildPaymentMethodDataForTest(),
|
| + GetParam().buildDetails(), options, scope.getExceptionState());
|
|
|
| EXPECT_EQ(GetParam().expectException(),
|
| scope.getExceptionState().hadException());
|
|
|