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

Side by Side Diff: services/js/system/tests/js_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 unified diff | Download patch
« no previous file with comments | « services/files/file_impl.cc ('k') | services/native_support/redirectors.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 args->ui32 = kExpectedUInt32Value; 86 args->ui32 = kExpectedUInt32Value;
87 args->ui16 = kExpectedUInt16Value; 87 args->ui16 = kExpectedUInt16Value;
88 args->ui8 = kExpectedUInt8Value; 88 args->ui8 = kExpectedUInt8Value;
89 args->float_val = kExpectedFloatVal; 89 args->float_val = kExpectedFloatVal;
90 args->float_inf = kExpectedFloatInf; 90 args->float_inf = kExpectedFloatInf;
91 args->float_nan = kExpectedFloatNan; 91 args->float_nan = kExpectedFloatNan;
92 args->double_val = kExpectedDoubleVal; 92 args->double_val = kExpectedDoubleVal;
93 args->double_inf = kExpectedDoubleInf; 93 args->double_inf = kExpectedDoubleInf;
94 args->double_nan = kExpectedDoubleNan; 94 args->double_nan = kExpectedDoubleNan;
95 args->name = "coming"; 95 args->name = "coming";
96 Array<String> string_array(3); 96 auto string_array = Array<String>::New(3);
97 string_array[0] = "one"; 97 string_array[0] = "one";
98 string_array[1] = "two"; 98 string_array[1] = "two";
99 string_array[2] = "three"; 99 string_array[2] = "three";
100 args->string_array = string_array.Pass(); 100 args->string_array = string_array.Pass();
101 return args.Pass(); 101 return args.Pass();
102 } 102 }
103 103
104 void CheckSampleEchoArgs(const js_to_cpp::EchoArgs& arg) { 104 void CheckSampleEchoArgs(const js_to_cpp::EchoArgs& arg) {
105 EXPECT_EQ(kExpectedInt64Value, arg.si64); 105 EXPECT_EQ(kExpectedInt64Value, arg.si64);
106 EXPECT_EQ(kExpectedInt32Value, arg.si32); 106 EXPECT_EQ(kExpectedInt32Value, arg.si32);
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 417 }
418 418
419 TEST_F(JsToCppTest, BackPointer) { 419 TEST_F(JsToCppTest, BackPointer) {
420 BackPointerCppSideConnection cpp_side_connection; 420 BackPointerCppSideConnection cpp_side_connection;
421 RunTest("services/js/system/tests/js_to_cpp_tests", &cpp_side_connection); 421 RunTest("services/js/system/tests/js_to_cpp_tests", &cpp_side_connection);
422 EXPECT_TRUE(cpp_side_connection.DidSucceed()); 422 EXPECT_TRUE(cpp_side_connection.DidSucceed());
423 } 423 }
424 424
425 } // namespace js 425 } // namespace js
426 } // namespace mojo 426 } // namespace mojo
OLDNEW
« no previous file with comments | « services/files/file_impl.cc ('k') | services/native_support/redirectors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698