| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/payments/PaymentAppRequestConversion.h" | 5 #include "modules/payments/PaymentAppRequestConversion.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptState.h" | 7 #include "bindings/core/v8/ScriptState.h" |
| 8 #include "bindings/core/v8/ScriptValue.h" | 8 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "bindings/core/v8/V8Binding.h" | 9 #include "bindings/core/v8/V8BindingForCore.h" |
| 10 #include "bindings/core/v8/V8BindingForTesting.h" | 10 #include "bindings/core/v8/V8BindingForTesting.h" |
| 11 #include "public/platform/modules/payments/WebPaymentAppRequest.h" | 11 #include "public/platform/modules/payments/WebPaymentAppRequest.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 static WebPaymentItem CreateWebPaymentItemForTest() { | 18 static WebPaymentItem CreateWebPaymentItemForTest() { |
| 19 WebPaymentItem web_item; | 19 WebPaymentItem web_item; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 ASSERT_TRUE(data.hasOptionId()); | 75 ASSERT_TRUE(data.hasOptionId()); |
| 76 EXPECT_EQ("payment-app-id", data.optionId()); | 76 EXPECT_EQ("payment-app-id", data.optionId()); |
| 77 | 77 |
| 78 ASSERT_TRUE(data.hasOrigin()); | 78 ASSERT_TRUE(data.hasOrigin()); |
| 79 EXPECT_EQ("https://example.com", data.origin()); | 79 EXPECT_EQ("https://example.com", data.origin()); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace | 82 } // namespace |
| 83 } // namespace blink | 83 } // namespace blink |
| OLD | NEW |