OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
please use gerrit instead
2016/06/01 19:20:21
You forgot to add the PaymentTestHelper.h and Paym
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef PaymentDetailsTestHelper_h | |
6 #define PaymentDetailsTestHelper_h | |
7 | |
8 #include "modules/payments/PaymentDetails.h" | |
9 #include "modules/payments/PaymentItem.h" | |
10 #include "modules/payments/ShippingOption.h" | |
11 #include "wtf/text/WTFString.h" | |
12 | |
13 namespace blink { | |
14 | |
15 enum PaymentTestDetailToChange { | |
16 PaymentTestDetailNone, | |
17 PaymentTestDetailItem, | |
18 PaymentTestDetailShippingOption | |
19 }; | |
20 | |
21 enum PaymentTestDataToChange { | |
22 PaymentTestDataNone, | |
23 PaymentTestDataId, | |
24 PaymentTestDataLabel, | |
25 PaymentTestDataAmount, | |
26 PaymentTestDataCurrencyCode, | |
27 PaymentTestDataValue, | |
28 }; | |
29 | |
30 enum PaymentTestModificationType { | |
31 PaymentTestOverwriteValue, | |
32 PaymentTestRemoveKey | |
33 }; | |
34 | |
35 PaymentItem buildPaymentItemForTest(PaymentTestDataToChange = PaymentTestDataNon e, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueT oUse = String()); | |
36 | |
37 ShippingOption buildShippingOptionForTest(PaymentTestDataToChange = PaymentTestD ataNone, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueToUse = String()); | |
38 | |
39 PaymentDetails buildPaymentDetailsForTest(PaymentTestDetailToChange = PaymentTes tDetailNone, PaymentTestDataToChange = PaymentTestDataNone, PaymentTestModificat ionType = PaymentTestOverwriteValue, const String& valueToUse = String()); | |
40 | |
41 } // namespace blink | |
42 | |
43 #endif // PaymentDetailsTestHelper_h | |
OLD | NEW |