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

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

Issue 2038423002: Adding support for phone and email. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding support for phone and email. 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 5677cb40a10bd0a6b2cfb1f8577eceeab730e328..7aacd16b9730a836cbc1c7566e3dcf0aa51c4867 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
@@ -61,11 +61,15 @@ TEST_F(PaymentResponseTest, DataCopiedOver)
mojom::blink::PaymentResponsePtr input = mojom::blink::PaymentResponse::New();
input->method_name = "foo";
input->stringified_details = "{\"transactionId\": 123}";
+ input->payer_email = "abc@gmail.com";
+ input->payer_phone = "0123";
MockPaymentCompleter* completeCallback = new MockPaymentCompleter;
PaymentResponse output(std::move(input), completeCallback);
EXPECT_EQ("foo", output.methodName());
+ EXPECT_EQ("abc@gmail.com", output.payerEmail());
+ EXPECT_EQ("0123", output.payerPhone());
ScriptValue details = output.details(getScriptState(), getExceptionState());

Powered by Google App Engine
This is Rietveld 408576698