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

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

Issue 2062583002: Add totalAmount to PaymentResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase #2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp
index eedf68e12ebce3ee3783f842bfcf68cb14994da8..91d530ce9a8cea7b75d83111fd93e917c7e905fa 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp
@@ -98,4 +98,11 @@ HeapVector<PaymentMethodData> buildPaymentMethodDataForTest()
return methodData;
}
+mojom::blink::PaymentResponsePtr buildPaymentResponseForTest()
+{
+ mojom::blink::PaymentResponsePtr result = mojom::blink::PaymentResponse::New();
+ result->total_amount = mojom::blink::CurrencyAmount::New();
+ return result;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698