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

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

Issue 2348103002: PaymentRequest: Add support for payerName. (in blink side) (Closed)
Patch Set: PaymentRequest: Add support for payerName. (in blink side) Created 4 years, 3 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 327e4a650b22beff2708c91c5c56c7bca24691b4..d2e54e322f4daafa359cd714d801d85caa37ab26 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
@@ -47,6 +47,7 @@ TEST(PaymentResponseTest, DataCopiedOver)
input->method_name = "foo";
input->stringified_details = "{\"transactionId\": 123}";
input->shipping_option = "standardShippingOption";
+ input->payer_name = "Jon Doe";
input->payer_email = "abc@gmail.com";
input->payer_phone = "0123";
MockPaymentCompleter* completeCallback = new MockPaymentCompleter;
@@ -55,6 +56,7 @@ TEST(PaymentResponseTest, DataCopiedOver)
EXPECT_EQ("foo", output.methodName());
EXPECT_EQ("standardShippingOption", output.shippingOption());
+ EXPECT_EQ("Jon Doe", output.payerName());
EXPECT_EQ("abc@gmail.com", output.payerEmail());
EXPECT_EQ("0123", output.payerPhone());

Powered by Google App Engine
This is Rietveld 408576698