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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp

Issue 2834053003: Split V8Binding (Closed)
Patch Set: Rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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/PaymentResponse.h" 5 #include "modules/payments/PaymentResponse.h"
6 6
7 #include <memory>
8 #include <utility>
7 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/core/v8/ScriptValue.h" 11 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/V8Binding.h" 12 #include "bindings/core/v8/V8BindingForCore.h"
11 #include "bindings/core/v8/V8BindingForTesting.h" 13 #include "bindings/core/v8/V8BindingForTesting.h"
12 #include "modules/payments/PaymentAddress.h" 14 #include "modules/payments/PaymentAddress.h"
13 #include "modules/payments/PaymentCompleter.h" 15 #include "modules/payments/PaymentCompleter.h"
14 #include "modules/payments/PaymentTestHelper.h" 16 #include "modules/payments/PaymentTestHelper.h"
15 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
17 #include <memory>
18 #include <utility>
19 19
20 namespace blink { 20 namespace blink {
21 namespace { 21 namespace {
22 22
23 class MockPaymentCompleter 23 class MockPaymentCompleter
24 : public GarbageCollectedFinalized<MockPaymentCompleter>, 24 : public GarbageCollectedFinalized<MockPaymentCompleter>,
25 public PaymentCompleter { 25 public PaymentCompleter {
26 USING_GARBAGE_COLLECTED_MIXIN(MockPaymentCompleter); 26 USING_GARBAGE_COLLECTED_MIXIN(MockPaymentCompleter);
27 WTF_MAKE_NONCOPYABLE(MockPaymentCompleter); 27 WTF_MAKE_NONCOPYABLE(MockPaymentCompleter);
28 28
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 "Latn\"," 163 "Latn\","
164 "\"organization\":\"\",\"recipient\":\"\",\"phone\":\"\"}," 164 "\"organization\":\"\",\"recipient\":\"\",\"phone\":\"\"},"
165 "\"shippingOption\":" 165 "\"shippingOption\":"
166 "\"standardShippingOption\",\"payerName\":\"Jon Doe\"," 166 "\"standardShippingOption\",\"payerName\":\"Jon Doe\","
167 "\"payerEmail\":\"abc@gmail.com\",\"payerPhone\":\"0123\"}"; 167 "\"payerEmail\":\"abc@gmail.com\",\"payerPhone\":\"0123\"}";
168 EXPECT_EQ(expected, json_string); 168 EXPECT_EQ(expected, json_string);
169 } 169 }
170 170
171 } // namespace 171 } // namespace
172 } // namespace blink 172 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698