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/at_exit.h" | 5 #include "base/at_exit.h" |
6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.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" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "gin/array_buffer.h" | 12 #include "gin/array_buffer.h" |
13 #include "gin/public/isolate_holder.h" | 13 #include "gin/public/isolate_holder.h" |
14 #include "mojo/edk/js/mojo_runner_delegate.h" | 14 #include "mojo/edk/js/mojo_runner_delegate.h" |
15 #include "mojo/edk/js/tests/js_to_cpp.mojom.h" | 15 #include "mojo/edk/js/tests/js_to_cpp.mojom.h" |
16 #include "mojo/edk/test/test_utils.h" | 16 #include "mojo/edk/test/test_utils.h" |
| 17 #include "mojo/public/cpp/bindings/binding.h" |
| 18 #include "mojo/public/cpp/system/core.h" |
| 19 #include "mojo/public/cpp/system/macros.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | |
19 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" | |
20 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 namespace edk { | 23 namespace edk { |
24 | 24 |
25 // Global value updated by some checks to prevent compilers from optimizing | 25 // Global value updated by some checks to prevent compilers from optimizing |
26 // reads out of existence. | 26 // reads out of existence. |
27 uint32 g_waste_accumulator = 0; | 27 uint32 g_waste_accumulator = 0; |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 } | 418 } |
419 | 419 |
420 TEST_F(JsToCppTest, BackPointer) { | 420 TEST_F(JsToCppTest, BackPointer) { |
421 BackPointerCppSideConnection cpp_side_connection; | 421 BackPointerCppSideConnection cpp_side_connection; |
422 RunTest("mojo/edk/js/tests/js_to_cpp_tests", &cpp_side_connection); | 422 RunTest("mojo/edk/js/tests/js_to_cpp_tests", &cpp_side_connection); |
423 EXPECT_TRUE(cpp_side_connection.DidSucceed()); | 423 EXPECT_TRUE(cpp_side_connection.DidSucceed()); |
424 } | 424 } |
425 | 425 |
426 } // namespace edk | 426 } // namespace edk |
427 } // namespace mojo | 427 } // namespace mojo |
OLD | NEW |