OLD | NEW |
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 PaymentTestHelper_h | 5 #ifndef PaymentTestHelper_h |
6 #define PaymentTestHelper_h | 6 #define PaymentTestHelper_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptFunction.h" | 8 #include "bindings/core/v8/ScriptFunction.h" |
9 #include "bindings/core/v8/V8DOMException.h" | 9 #include "bindings/core/v8/V8DOMException.h" |
10 #include "modules/payments/PaymentDetails.h" | 10 #include "modules/payments/PaymentDetails.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 PaymentTestDetailModifierItem, | 34 PaymentTestDetailModifierItem, |
35 PaymentTestDetailError | 35 PaymentTestDetailError |
36 }; | 36 }; |
37 | 37 |
38 enum PaymentTestDataToChange { | 38 enum PaymentTestDataToChange { |
39 PaymentTestDataNone, | 39 PaymentTestDataNone, |
40 PaymentTestDataId, | 40 PaymentTestDataId, |
41 PaymentTestDataLabel, | 41 PaymentTestDataLabel, |
42 PaymentTestDataAmount, | 42 PaymentTestDataAmount, |
43 PaymentTestDataCurrencyCode, | 43 PaymentTestDataCurrencyCode, |
| 44 PaymentTestDataCurrencySystem, |
44 PaymentTestDataValue, | 45 PaymentTestDataValue, |
45 }; | 46 }; |
46 | 47 |
47 enum PaymentTestModificationType { | 48 enum PaymentTestModificationType { |
48 PaymentTestOverwriteValue, | 49 PaymentTestOverwriteValue, |
49 PaymentTestRemoveKey | 50 PaymentTestRemoveKey |
50 }; | 51 }; |
51 | 52 |
52 PaymentItem buildPaymentItemForTest( | 53 PaymentItem buildPaymentItemForTest( |
53 PaymentTestDataToChange = PaymentTestDataNone, | 54 PaymentTestDataToChange = PaymentTestDataNone, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 String* m_value; | 102 String* m_value; |
102 }; | 103 }; |
103 | 104 |
104 ScriptState* m_scriptState; | 105 ScriptState* m_scriptState; |
105 Vector<Persistent<MockFunction>> m_mockFunctions; | 106 Vector<Persistent<MockFunction>> m_mockFunctions; |
106 }; | 107 }; |
107 | 108 |
108 } // namespace blink | 109 } // namespace blink |
109 | 110 |
110 #endif // PaymentTestHelper_h | 111 #endif // PaymentTestHelper_h |
OLD | NEW |