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

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

Issue 1938843002: More thorough tests for PaymentDetails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-output-dir
Patch Set: Address comments Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef PaymentDetailsTestHelper_h 5 #ifndef PaymentDetailsTestHelper_h
6 #define PaymentDetailsTestHelper_h 6 #define PaymentDetailsTestHelper_h
7 7
8 #include "modules/payments/PaymentDetails.h" 8 #include "modules/payments/PaymentDetails.h"
9 #include "modules/payments/PaymentItem.h" 9 #include "modules/payments/PaymentItem.h"
10 #include "modules/payments/ShippingOption.h" 10 #include "modules/payments/ShippingOption.h"
11 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 enum PaymentTestDetailToChange { 15 enum PaymentTestDetailToChange {
16 PaymentTestDetailNone, 16 PaymentTestDetailNone,
17 PaymentTestDetailItem, 17 PaymentTestDetailItem,
18 PaymentTestDetailShippingOption 18 PaymentTestDetailShippingOption
19 }; 19 };
20 20
21 enum PaymentTestDataToChange { 21 enum PaymentTestDataToChange {
22 PaymentTestDataNone, 22 PaymentTestDataNone,
23 PaymentTestDataId, 23 PaymentTestDataId,
24 PaymentTestDataLabel, 24 PaymentTestDataLabel,
25 PaymentTestDataAmount,
25 PaymentTestDataCurrencyCode, 26 PaymentTestDataCurrencyCode,
26 PaymentTestDataAmount 27 PaymentTestDataValue,
27 }; 28 };
28 29
29 enum PaymentTestModificationType { 30 enum PaymentTestModificationType {
30 PaymentTestOverwriteValue, 31 PaymentTestOverwriteValue,
31 PaymentTestRemoveKey 32 PaymentTestRemoveKey
32 }; 33 };
33 34
34 PaymentItem buildPaymentItemForTest(PaymentTestDataToChange = PaymentTestDataNon e, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueT oUse = String()); 35 PaymentItem buildPaymentItemForTest(PaymentTestDataToChange = PaymentTestDataNon e, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueT oUse = String());
35 36
36 ShippingOption buildShippingOptionForTest(PaymentTestDataToChange = PaymentTestD ataNone, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueToUse = String()); 37 ShippingOption buildShippingOptionForTest(PaymentTestDataToChange = PaymentTestD ataNone, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueToUse = String());
37 38
38 PaymentDetails buildPaymentDetailsForTest(PaymentTestDetailToChange = PaymentTes tDetailNone, PaymentTestDataToChange = PaymentTestDataNone, PaymentTestModificat ionType = PaymentTestOverwriteValue, const String& valueToUse = String()); 39 PaymentDetails buildPaymentDetailsForTest(PaymentTestDetailToChange = PaymentTes tDetailNone, PaymentTestDataToChange = PaymentTestDataNone, PaymentTestModificat ionType = PaymentTestOverwriteValue, const String& valueToUse = String());
39 40
40 } // namespace blink 41 } // namespace blink
41 42
42 #endif // PaymentDetailsTestHelper_h 43 #endif // PaymentDetailsTestHelper_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698