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

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

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (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/PaymentTestHelper.h" 5 #include "modules/payments/PaymentTestHelper.h"
6 6
7 #include "bindings/core/v8/ScriptState.h"
8 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
9 #include "modules/payments/PaymentCurrencyAmount.h" 8 #include "modules/payments/PaymentCurrencyAmount.h"
10 #include "modules/payments/PaymentMethodData.h" 9 #include "modules/payments/PaymentMethodData.h"
10 #include "platform/bindings/ScriptState.h"
11 #include "platform/heap/HeapAllocator.h" 11 #include "platform/heap/HeapAllocator.h"
12 12
13 namespace blink { 13 namespace blink {
14 namespace { 14 namespace {
15 15
16 static int g_unique_id = 0; 16 static int g_unique_id = 0;
17 // PaymentItem and PaymentShippingOption have identical structure 17 // PaymentItem and PaymentShippingOption have identical structure
18 // except for the "id" field, which is present only in PaymentShippingOption. 18 // except for the "id" field, which is present only in PaymentShippingOption.
19 template <typename PaymentItemOrPaymentShippingOption> 19 template <typename PaymentItemOrPaymentShippingOption>
20 void SetValues(PaymentItemOrPaymentShippingOption& original, 20 void SetValues(PaymentItemOrPaymentShippingOption& original,
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 ON_CALL(*this, Call(testing::_)) 255 ON_CALL(*this, Call(testing::_))
256 .WillByDefault( 256 .WillByDefault(
257 testing::DoAll(SaveValueIn(value_), testing::ReturnArg<0>())); 257 testing::DoAll(SaveValueIn(value_), testing::ReturnArg<0>()));
258 } 258 }
259 259
260 v8::Local<v8::Function> PaymentRequestMockFunctionScope::MockFunction::Bind() { 260 v8::Local<v8::Function> PaymentRequestMockFunctionScope::MockFunction::Bind() {
261 return BindToV8Function(); 261 return BindToV8Function();
262 } 262 }
263 263
264 } // namespace blink 264 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698