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

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

Issue 2056803002: Rename remaining types so that all begin Payment* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename remaining types so that all begin Payment* Created 4 years, 6 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
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 "modules/payments/PaymentDetails.h" 9 #include "modules/payments/PaymentDetails.h"
10 #include "modules/payments/PaymentItem.h" 10 #include "modules/payments/PaymentItem.h"
11 #include "modules/payments/ShippingOption.h" 11 #include "modules/payments/PaymentShippingOption.h"
12 #include "platform/heap/HeapAllocator.h" 12 #include "platform/heap/HeapAllocator.h"
13 #include "platform/heap/Persistent.h" 13 #include "platform/heap/Persistent.h"
14 #include "public/platform/modules/payments/payment_request.mojom-blink.h" 14 #include "public/platform/modules/payments/payment_request.mojom-blink.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 #include "wtf/Allocator.h" 16 #include "wtf/Allocator.h"
17 #include "wtf/Vector.h" 17 #include "wtf/Vector.h"
18 #include "wtf/text/WTFString.h" 18 #include "wtf/text/WTFString.h"
19 19
20 namespace blink { 20 namespace blink {
21 21
(...skipping 18 matching lines...) Expand all
40 PaymentTestDataValue, 40 PaymentTestDataValue,
41 }; 41 };
42 42
43 enum PaymentTestModificationType { 43 enum PaymentTestModificationType {
44 PaymentTestOverwriteValue, 44 PaymentTestOverwriteValue,
45 PaymentTestRemoveKey 45 PaymentTestRemoveKey
46 }; 46 };
47 47
48 PaymentItem buildPaymentItemForTest(PaymentTestDataToChange = PaymentTestDataNon e, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueT oUse = String()); 48 PaymentItem buildPaymentItemForTest(PaymentTestDataToChange = PaymentTestDataNon e, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueT oUse = String());
49 49
50 ShippingOption buildShippingOptionForTest(PaymentTestDataToChange = PaymentTestD ataNone, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueToUse = String()); 50 PaymentShippingOption buildShippingOptionForTest(PaymentTestDataToChange = Payme ntTestDataNone, PaymentTestModificationType = PaymentTestOverwriteValue, const S tring& valueToUse = String());
51 51
52 PaymentDetails buildPaymentDetailsForTest(PaymentTestDetailToChange = PaymentTes tDetailNone, PaymentTestDataToChange = PaymentTestDataNone, PaymentTestModificat ionType = PaymentTestOverwriteValue, const String& valueToUse = String()); 52 PaymentDetails buildPaymentDetailsForTest(PaymentTestDetailToChange = PaymentTes tDetailNone, PaymentTestDataToChange = PaymentTestDataNone, PaymentTestModificat ionType = PaymentTestOverwriteValue, const String& valueToUse = String());
53 53
54 HeapVector<PaymentMethodData> buildPaymentMethodDataForTest(); 54 HeapVector<PaymentMethodData> buildPaymentMethodDataForTest();
55 55
56 mojom::blink::PaymentResponsePtr buildPaymentResponseForTest(); 56 mojom::blink::PaymentResponsePtr buildPaymentResponseForTest();
57 57
58 void makePaymentRequestOriginSecure(Document&); 58 void makePaymentRequestOriginSecure(Document&);
59 59
60 class PaymentRequestMockFunctionScope { 60 class PaymentRequestMockFunctionScope {
(...skipping 13 matching lines...) Expand all
74 MOCK_METHOD1(call, ScriptValue(ScriptValue)); 74 MOCK_METHOD1(call, ScriptValue(ScriptValue));
75 }; 75 };
76 76
77 ScriptState* m_scriptState; 77 ScriptState* m_scriptState;
78 Vector<Persistent<MockFunction>> m_mockFunctions; 78 Vector<Persistent<MockFunction>> m_mockFunctions;
79 }; 79 };
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif // PaymentTestHelper_h 83 #endif // PaymentTestHelper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698