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

Unified Diff: mojo/dart/embedder/test/dart_to_cpp_tests.cc

Issue 1397133002: Remove callers of mojo::Array<size_t> constructor in favor of ::New (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | mojo/public/cpp/bindings/array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/test/dart_to_cpp_tests.cc
diff --git a/mojo/dart/embedder/test/dart_to_cpp_tests.cc b/mojo/dart/embedder/test/dart_to_cpp_tests.cc
index 12ae53caed95b970afee3600527988d7fab0ab04..40ed395db25a6833676358fdead2a65bcd5a16e9 100644
--- a/mojo/dart/embedder/test/dart_to_cpp_tests.cc
+++ b/mojo/dart/embedder/test/dart_to_cpp_tests.cc
@@ -96,7 +96,7 @@ dart_to_cpp::EchoArgsPtr BuildSampleEchoArgs() {
args->double_inf = kExpectedDoubleInf;
args->double_nan = kExpectedDoubleNan;
args->name = "coming";
- Array<String> string_array(3);
+ auto string_array = Array<String>::New(3);
string_array[0] = "one";
string_array[1] = "two";
string_array[2] = "three";
« no previous file with comments | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | mojo/public/cpp/bindings/array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698