| 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/PaymentRequestUpdateEvent.h" | 5 #include "modules/payments/PaymentRequestUpdateEvent.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
| 9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | |
| 11 #include "bindings/core/v8/V8BindingForTesting.h" | 10 #include "bindings/core/v8/V8BindingForTesting.h" |
| 12 #include "core/EventTypeNames.h" | 11 #include "core/EventTypeNames.h" |
| 13 #include "modules/payments/PaymentRequest.h" | 12 #include "modules/payments/PaymentRequest.h" |
| 14 #include "modules/payments/PaymentTestHelper.h" | 13 #include "modules/payments/PaymentTestHelper.h" |
| 15 #include "modules/payments/PaymentUpdater.h" | 14 #include "modules/payments/PaymentUpdater.h" |
| 15 #include "platform/bindings/ScriptState.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 class MockPaymentUpdater : public GarbageCollectedFinalized<MockPaymentUpdater>, | 22 class MockPaymentUpdater : public GarbageCollectedFinalized<MockPaymentUpdater>, |
| 23 public PaymentUpdater { | 23 public PaymentUpdater { |
| 24 USING_GARBAGE_COLLECTED_MIXIN(MockPaymentUpdater); | 24 USING_GARBAGE_COLLECTED_MIXIN(MockPaymentUpdater); |
| 25 WTF_MAKE_NONCOPYABLE(MockPaymentUpdater); | 25 WTF_MAKE_NONCOPYABLE(MockPaymentUpdater); |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 EXPECT_EQ( | 244 EXPECT_EQ( |
| 245 "AbortError: Timed out waiting for a response to a " | 245 "AbortError: Timed out waiting for a response to a " |
| 246 "'shippingoptionchange' event", | 246 "'shippingoptionchange' event", |
| 247 error_message); | 247 error_message); |
| 248 | 248 |
| 249 payment_details->Resolve("foo"); | 249 payment_details->Resolve("foo"); |
| 250 } | 250 } |
| 251 | 251 |
| 252 } // namespace | 252 } // namespace |
| 253 } // namespace blink | 253 } // namespace blink |
| OLD | NEW |