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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.h

Issue 1860303002: Fix CFI: Invalid cast in PaymentRequestTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.h b/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.h
index 748f27f5f3436bea99c9f753edd9def293240243..786e6a70a06303ccd9c79650d1dbfd2796d7d472 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.h
@@ -6,6 +6,8 @@
#define PaymentDetailsTestHelper_h
#include "modules/payments/PaymentDetails.h"
+#include "modules/payments/PaymentItem.h"
+#include "modules/payments/ShippingOption.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -29,6 +31,10 @@ enum PaymentTestModificationType {
PaymentTestRemoveKey
};
+PaymentItem buildPaymentItemForTest(PaymentTestDataToChange = PaymentTestDataNone, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueToUse = String());
+
+ShippingOption buildShippingOptionForTest(PaymentTestDataToChange = PaymentTestDataNone, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueToUse = String());
+
PaymentDetails buildPaymentDetailsForTest(PaymentTestDetailToChange = PaymentTestDetailNone, PaymentTestDataToChange = PaymentTestDataNone, PaymentTestModificationType = PaymentTestOverwriteValue, const String& valueToUse = String());
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698