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

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

Issue 2489943003: Revert of [Web Payments] Mojom namespace blink -> payments (Closed)
Patch Set: Created 4 years, 1 month 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
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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698