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

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

Issue 2748093003: PaymentRequest: Introduce PaymentDetailsInit and PaymentDetailsUpdate. (Closed)
Patch Set: PaymentRequest: Introduce PaymentDetailsInit and PaymentDetailsUpdate. Created 3 years, 9 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
Index: third_party/WebKit/Source/modules/payments/PaymentTestHelper.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentTestHelper.h b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.h
index 7f8568a619a2b887030426f81d34298f6aa055b5..909eac56e59da264c1f6900a4b3f839c9ebffd25 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentTestHelper.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.h
@@ -8,7 +8,8 @@
#include "bindings/core/v8/ScriptFunction.h"
#include "bindings/core/v8/V8DOMException.h"
#include "components/payments/content/payment_request.mojom-blink.h"
-#include "modules/payments/PaymentDetails.h"
+#include "modules/payments/PaymentDetailsInit.h"
+#include "modules/payments/PaymentDetailsUpdate.h"
#include "modules/payments/PaymentItem.h"
#include "modules/payments/PaymentShippingOption.h"
#include "platform/heap/HeapAllocator.h"
@@ -66,13 +67,19 @@ PaymentDetailsModifier buildPaymentDetailsModifierForTest(
PaymentTestModificationType = PaymentTestOverwriteValue,
const String& valueToUse = String());
-PaymentDetails buildPaymentDetailsForTest(
+PaymentDetailsInit buildPaymentDetailsInitForTest(
PaymentTestDetailToChange = PaymentTestDetailNone,
PaymentTestDataToChange = PaymentTestDataNone,
PaymentTestModificationType = PaymentTestOverwriteValue,
const String& valueToUse = String());
-PaymentDetails buildPaymentDetailsErrorMsgForTest(
+PaymentDetailsUpdate buildPaymentDetailsUpdateForTest(
+ PaymentTestDetailToChange = PaymentTestDetailNone,
+ PaymentTestDataToChange = PaymentTestDataNone,
+ PaymentTestModificationType = PaymentTestOverwriteValue,
+ const String& valueToUse = String());
+
+PaymentDetailsUpdate buildPaymentDetailsErrorMsgForTest(
const String& valueToUse = String());
HeapVector<PaymentMethodData> buildPaymentMethodDataForTest();

Powered by Google App Engine
This is Rietveld 408576698