| 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 "components/payments/payment_request.mojom-blink.h" | 10 #include "components/payments/payment_request.mojom-blink.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 PaymentTestDetailToChange = PaymentTestDetailNone, | 70 PaymentTestDetailToChange = PaymentTestDetailNone, |
| 71 PaymentTestDataToChange = PaymentTestDataNone, | 71 PaymentTestDataToChange = PaymentTestDataNone, |
| 72 PaymentTestModificationType = PaymentTestOverwriteValue, | 72 PaymentTestModificationType = PaymentTestOverwriteValue, |
| 73 const String& valueToUse = String()); | 73 const String& valueToUse = String()); |
| 74 | 74 |
| 75 PaymentDetails buildPaymentDetailsErrorMsgForTest( | 75 PaymentDetails buildPaymentDetailsErrorMsgForTest( |
| 76 const String& valueToUse = String()); | 76 const String& valueToUse = String()); |
| 77 | 77 |
| 78 HeapVector<PaymentMethodData> buildPaymentMethodDataForTest(); | 78 HeapVector<PaymentMethodData> buildPaymentMethodDataForTest(); |
| 79 | 79 |
| 80 payments::mojom::blink::PaymentResponsePtr buildPaymentResponseForTest(); | 80 mojom::blink::PaymentResponsePtr buildPaymentResponseForTest(); |
| 81 | 81 |
| 82 void makePaymentRequestOriginSecure(Document&); | 82 void makePaymentRequestOriginSecure(Document&); |
| 83 | 83 |
| 84 class PaymentRequestMockFunctionScope { | 84 class PaymentRequestMockFunctionScope { |
| 85 STACK_ALLOCATED(); | 85 STACK_ALLOCATED(); |
| 86 | 86 |
| 87 public: | 87 public: |
| 88 explicit PaymentRequestMockFunctionScope(ScriptState*); | 88 explicit PaymentRequestMockFunctionScope(ScriptState*); |
| 89 ~PaymentRequestMockFunctionScope(); | 89 ~PaymentRequestMockFunctionScope(); |
| 90 | 90 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 102 String* m_value; | 102 String* m_value; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 ScriptState* m_scriptState; | 105 ScriptState* m_scriptState; |
| 106 Vector<Persistent<MockFunction>> m_mockFunctions; | 106 Vector<Persistent<MockFunction>> m_mockFunctions; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace blink | 109 } // namespace blink |
| 110 | 110 |
| 111 #endif // PaymentTestHelper_h | 111 #endif // PaymentTestHelper_h |
| OLD | NEW |