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

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

Issue 2062583002: Add totalAmount to PaymentResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase #2 Created 4 years, 6 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 "modules/payments/CurrencyAmount.h" 7 #include "modules/payments/CurrencyAmount.h"
8 #include "platform/heap/HeapAllocator.h" 8 #include "platform/heap/HeapAllocator.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return result; 91 return result;
92 } 92 }
93 93
94 HeapVector<PaymentMethodData> buildPaymentMethodDataForTest() 94 HeapVector<PaymentMethodData> buildPaymentMethodDataForTest()
95 { 95 {
96 HeapVector<PaymentMethodData> methodData(1, PaymentMethodData()); 96 HeapVector<PaymentMethodData> methodData(1, PaymentMethodData());
97 methodData[0].setSupportedMethods(Vector<String>(1, "foo")); 97 methodData[0].setSupportedMethods(Vector<String>(1, "foo"));
98 return methodData; 98 return methodData;
99 } 99 }
100 100
101 mojom::blink::PaymentResponsePtr buildPaymentResponseForTest()
102 {
103 mojom::blink::PaymentResponsePtr result = mojom::blink::PaymentResponse::New ();
104 result->total_amount = mojom::blink::CurrencyAmount::New();
105 return result;
106 }
107
101 } // namespace blink 108 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698