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 #include "modules/payments/PaymentRequest.h" | 5 #include "modules/payments/PaymentRequest.h" |
6 | 6 |
7 #include <ostream> // NOLINT | 7 #include <ostream> // NOLINT |
8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
10 #include "bindings/core/v8/V8BindingForTesting.h" | 10 #include "bindings/core/v8/V8BindingForTesting.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 ExceptionCode expectedExceptionCode = 0) | 28 ExceptionCode expectedExceptionCode = 0) |
29 : m_detail(detail), | 29 : m_detail(detail), |
30 m_data(data), | 30 m_data(data), |
31 m_modType(modType), | 31 m_modType(modType), |
32 m_valueToUse(valueToUse), | 32 m_valueToUse(valueToUse), |
33 m_expectException(expectException), | 33 m_expectException(expectException), |
34 m_expectedExceptionCode(expectedExceptionCode) {} | 34 m_expectedExceptionCode(expectedExceptionCode) {} |
35 | 35 |
36 ~DetailsTestCase() {} | 36 ~DetailsTestCase() {} |
37 | 37 |
38 PaymentDetailsInit buildDetails() const { | 38 PaymentDetails buildDetails() const { |
39 return buildPaymentDetailsInitForTest(m_detail, m_data, m_modType, | 39 return buildPaymentDetailsForTest(m_detail, m_data, m_modType, |
40 m_valueToUse); | 40 m_valueToUse); |
41 } | 41 } |
42 | 42 |
43 bool expectException() const { return m_expectException; } | 43 bool expectException() const { return m_expectException; } |
44 | 44 |
45 ExceptionCode getExpectedExceptionCode() const { | 45 ExceptionCode getExpectedExceptionCode() const { |
46 return m_expectedExceptionCode; | 46 return m_expectedExceptionCode; |
47 } | 47 } |
48 | 48 |
49 private: | 49 private: |
50 friend std::ostream& operator<<(std::ostream&, DetailsTestCase); | 50 friend std::ostream& operator<<(std::ostream&, DetailsTestCase); |
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 V8TypeError), | 980 V8TypeError), |
981 DetailsTestCase(PaymentTestDetailModifierItem, | 981 DetailsTestCase(PaymentTestDetailModifierItem, |
982 PaymentTestDataValue, | 982 PaymentTestDataValue, |
983 PaymentTestOverwriteValue, | 983 PaymentTestOverwriteValue, |
984 "1/3", | 984 "1/3", |
985 true, | 985 true, |
986 V8TypeError))); | 986 V8TypeError))); |
987 | 987 |
988 } // namespace | 988 } // namespace |
989 } // namespace blink | 989 } // namespace blink |
OLD | NEW |