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

Side by Side Diff: services/js/system/tests/js_to_cpp_tests.cc

Issue 1408793006: Convert "return local_var.Pass();" to "return local_var;". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 auto string_array = Array<String>::New(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;
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);
107 EXPECT_EQ(kExpectedInt16Value, arg.si16); 107 EXPECT_EQ(kExpectedInt16Value, arg.si16);
108 EXPECT_EQ(kExpectedInt8Value, arg.si8); 108 EXPECT_EQ(kExpectedInt8Value, arg.si8);
109 EXPECT_EQ(kExpectedUInt64Value, arg.ui64); 109 EXPECT_EQ(kExpectedUInt64Value, arg.ui64);
110 EXPECT_EQ(kExpectedUInt32Value, arg.ui32); 110 EXPECT_EQ(kExpectedUInt32Value, arg.ui32);
111 EXPECT_EQ(kExpectedUInt16Value, arg.ui16); 111 EXPECT_EQ(kExpectedUInt16Value, arg.ui16);
(...skipping 305 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/http_server/http_server_apptest.cc ('k') | services/kiosk_wm/merged_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698