OLD | NEW |
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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "gin/public/isolate_holder.h" | 10 #include "gin/public/isolate_holder.h" |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 | 426 |
427 TEST_F(JsToCppTest, Echo) { | 427 TEST_F(JsToCppTest, Echo) { |
428 if (IsRunningOnIsolatedBot()) | 428 if (IsRunningOnIsolatedBot()) |
429 return; | 429 return; |
430 | 430 |
431 EchoCppSideConnection cpp_side_connection; | 431 EchoCppSideConnection cpp_side_connection; |
432 RunTest("mojo/apps/js/test/js_to_cpp_unittest", &cpp_side_connection); | 432 RunTest("mojo/apps/js/test/js_to_cpp_unittest", &cpp_side_connection); |
433 EXPECT_TRUE(cpp_side_connection.DidSucceed()); | 433 EXPECT_TRUE(cpp_side_connection.DidSucceed()); |
434 } | 434 } |
435 | 435 |
436 // TODO(tsepez): Disabled due to http://crbug.com/366797. | 436 TEST_F(JsToCppTest, BitFlip) { |
437 TEST_F(JsToCppTest, DISABLED_BitFlip) { | |
438 if (IsRunningOnIsolatedBot()) | 437 if (IsRunningOnIsolatedBot()) |
439 return; | 438 return; |
440 | 439 |
441 BitFlipCppSideConnection cpp_side_connection; | 440 BitFlipCppSideConnection cpp_side_connection; |
442 RunTest("mojo/apps/js/test/js_to_cpp_unittest", &cpp_side_connection); | 441 RunTest("mojo/apps/js/test/js_to_cpp_unittest", &cpp_side_connection); |
443 EXPECT_TRUE(cpp_side_connection.DidSucceed()); | 442 EXPECT_TRUE(cpp_side_connection.DidSucceed()); |
444 } | 443 } |
445 | 444 |
446 // TODO(tsepez): Disabled due to http://crbug.com/366797. | 445 TEST_F(JsToCppTest, BackPointer) { |
447 TEST_F(JsToCppTest, DISABLED_BackPointer) { | |
448 if (IsRunningOnIsolatedBot()) | 446 if (IsRunningOnIsolatedBot()) |
449 return; | 447 return; |
450 | 448 |
451 BackPointerCppSideConnection cpp_side_connection; | 449 BackPointerCppSideConnection cpp_side_connection; |
452 RunTest("mojo/apps/js/test/js_to_cpp_unittest", &cpp_side_connection); | 450 RunTest("mojo/apps/js/test/js_to_cpp_unittest", &cpp_side_connection); |
453 EXPECT_TRUE(cpp_side_connection.DidSucceed()); | 451 EXPECT_TRUE(cpp_side_connection.DidSucceed()); |
454 } | 452 } |
455 | 453 |
456 } // namespace js | 454 } // namespace js |
457 } // namespace mojo | 455 } // namespace mojo |
OLD | NEW |