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

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

Issue 2028603004: Rename 'items' into 'displayItems' in PaymentDetails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/PaymentDetailsTestHelper.h" 5 #include "modules/payments/PaymentDetailsTestHelper.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 else 71 else
72 item = buildPaymentItemForTest(); 72 item = buildPaymentItemForTest();
73 73
74 ShippingOption shippingOption; 74 ShippingOption shippingOption;
75 if (detail == PaymentTestDetailShippingOption) 75 if (detail == PaymentTestDetailShippingOption)
76 shippingOption = buildShippingOptionForTest(data, modificationType, valu eToUse); 76 shippingOption = buildShippingOptionForTest(data, modificationType, valu eToUse);
77 else 77 else
78 shippingOption = buildShippingOptionForTest(); 78 shippingOption = buildShippingOptionForTest();
79 79
80 PaymentDetails result; 80 PaymentDetails result;
81 result.setItems(HeapVector<PaymentItem>(1, item)); 81 result.setDisplayItems(HeapVector<PaymentItem>(1, item));
82 result.setShippingOptions(HeapVector<ShippingOption>(2, shippingOption)); 82 result.setShippingOptions(HeapVector<ShippingOption>(2, shippingOption));
83 83
84 return result; 84 return result;
85 } 85 }
86 86
87 } // namespace blink 87 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698