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

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

Issue 2073603002: Add shippingOption 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/PaymentResponseTest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp b/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
index bde4b28a8deee676d25c9e005b17c872672e5240..12812b42fb643f9fa9b8ad0c1a646e52f5f3d139 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
@@ -48,6 +48,7 @@ TEST(PaymentResponseTest, DataCopiedOver)
input->total_amount->currency = "USD";
input->total_amount->value = "5.00";
input->stringified_details = "{\"transactionId\": 123}";
+ input->shipping_option = "standardShippingOption";
input->payer_email = "abc@gmail.com";
input->payer_phone = "0123";
MockPaymentCompleter* completeCallback = new MockPaymentCompleter;
@@ -55,6 +56,7 @@ TEST(PaymentResponseTest, DataCopiedOver)
PaymentResponse output(std::move(input), completeCallback);
EXPECT_EQ("foo", output.methodName());
+ EXPECT_EQ("standardShippingOption", output.shippingOption());
EXPECT_EQ("abc@gmail.com", output.payerEmail());
EXPECT_EQ("0123", output.payerPhone());

Powered by Google App Engine
This is Rietveld 408576698