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

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

Issue 2406923002: Move payment_request.mojom file to components/ (Closed)
Patch Set: Add Android test dependencies Created 4 years, 2 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 17eebeb19fcdee08286ec0868798c76f8f2a0cb0..293294c11f1052a67a8bdf90caa27be91f591e10 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp
@@ -129,10 +129,9 @@ TEST(PaymentResponseTest, JSONSerializerTest) {
input->shipping_address->country = "US";
input->shipping_address->language_code = "en";
input->shipping_address->script_code = "Latn";
- input->shipping_address->address_line = mojo::WTFArray<WTF::String>::New(3);
- input->shipping_address->address_line[0] = "340 Main St";
- input->shipping_address->address_line[1] = "BIN1";
- input->shipping_address->address_line[2] = "First floor";
+ input->shipping_address->address_line.append("340 Main St");
+ input->shipping_address->address_line.append("BIN1");
+ input->shipping_address->address_line.append("First floor");
PaymentResponse output(std::move(input), new MockPaymentCompleter);
ScriptValue jsonObject = output.toJSONForBinding(scope.getScriptState());

Powered by Google App Engine
This is Rietveld 408576698