| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 { | 5 { |
| 6 'includes': [ | 6 'variables': { |
| 7 '../third_party/mojo/mojo_variables.gypi', | 7 'chromium_code': 1, |
| 8 ], | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| 11 'target_name': 'mojo_edk_tests', | 11 'target_name': 'mojo_edk_tests', |
| 12 'type': 'none', | 12 'type': 'none', |
| 13 'dependencies': [ | 13 'dependencies': [ |
| 14 # NOTE: If adding a new dependency here, please consider whether it | 14 # NOTE: If adding a new dependency here, please consider whether it |
| 15 # should also be added to the list of Mojo-related dependencies of | 15 # should also be added to the list of Mojo-related dependencies of |
| 16 # build/all.gyp:All on iOS, as All cannot depend on the mojo_base | 16 # build/all.gyp:All on iOS, as All cannot depend on the mojo_base |
| 17 # target on iOS due to the presence of the js targets, which cause v8 | 17 # target on iOS due to the presence of the js targets, which cause v8 |
| 18 # to be built. | 18 # to be built. |
| 19 'mojo_message_pipe_perftests2', | 19 'mojo_message_pipe_perftests', |
| 20 'mojo_system_unittests2', | 20 'mojo_system_unittests', |
| 21 'mojo_js_unittests', | 21 'mojo_js_unittests', |
| 22 'mojo_js_integration_tests', | 22 'mojo_js_integration_tests', |
| 23 # TODO(jam): temporarly so that the targets there are reachable from |
| 24 # all.gyp, until they're moved here. |
| 25 '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_bindings_perftests', |
| 26 '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_bindings_unittests', |
| 27 '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_environment_unittest
s', |
| 28 '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_system_perftests', |
| 29 '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_system_unittests', |
| 30 '../third_party/mojo/mojo_edk_tests.gyp:mojo_public_utility_unittests', |
| 23 ], | 31 ], |
| 24 }, | 32 }, |
| 25 { | 33 { |
| 26 # GN version: //mojo/edk/system:mojo_system_unittests | 34 # GN version: //mojo/edk/system:mojo_system_unittests |
| 27 'target_name': 'mojo_system_unittests2', | 35 'target_name': 'mojo_system_unittests', |
| 28 'type': 'executable', | 36 'type': 'executable', |
| 29 'dependencies': [ | 37 'dependencies': [ |
| 30 '../base/base.gyp:base', | 38 '../base/base.gyp:base', |
| 31 '../testing/gtest.gyp:gtest', | 39 '../testing/gtest.gyp:gtest', |
| 32 'mojo_edk.gyp:mojo_common_test_support2', | 40 'mojo_edk.gyp:mojo_common_test_support', |
| 33 'mojo_edk.gyp:mojo_system_impl2', | 41 'mojo_edk.gyp:mojo_run_all_unittests', |
| 42 'mojo_edk.gyp:mojo_system_impl', |
| 34 ], | 43 ], |
| 35 'sources': [ | 44 'sources': [ |
| 36 'edk/embedder/embedder_unittest.cc', | 45 'edk/embedder/embedder_unittest.cc', |
| 37 'edk/embedder/platform_channel_pair_posix_unittest.cc', | 46 'edk/embedder/platform_channel_pair_posix_unittest.cc', |
| 38 'edk/embedder/simple_platform_shared_buffer_unittest.cc', | 47 'edk/embedder/simple_platform_shared_buffer_unittest.cc', |
| 39 'edk/system/awakable_list_unittest.cc', | 48 'edk/system/awakable_list_unittest.cc', |
| 40 'edk/system/core_test_base.cc', | 49 'edk/system/core_test_base.cc', |
| 41 'edk/system/core_test_base.h', | 50 'edk/system/core_test_base.h', |
| 42 'edk/system/core_unittest.cc', | 51 'edk/system/core_unittest.cc', |
| 43 'edk/system/data_pipe_unittest.cc', | 52 'edk/system/data_pipe_unittest.cc', |
| 44 'edk/system/dispatcher_unittest.cc', | 53 'edk/system/dispatcher_unittest.cc', |
| 45 'edk/system/message_in_transit_queue_unittest.cc', | 54 'edk/system/message_in_transit_queue_unittest.cc', |
| 46 'edk/system/message_in_transit_test_utils.cc', | 55 'edk/system/message_in_transit_test_utils.cc', |
| 47 'edk/system/message_in_transit_test_utils.h', | 56 'edk/system/message_in_transit_test_utils.h', |
| 48 'edk/system/message_pipe_test_utils.cc', | 57 'edk/system/message_pipe_test_utils.cc', |
| 49 'edk/system/message_pipe_test_utils.h', | 58 'edk/system/message_pipe_test_utils.h', |
| 50 'edk/system/message_pipe_unittest.cc', | 59 'edk/system/message_pipe_unittest.cc', |
| 51 'edk/system/multiprocess_message_pipe_unittest.cc', | 60 'edk/system/multiprocess_message_pipe_unittest.cc', |
| 52 'edk/system/options_validation_unittest.cc', | 61 'edk/system/options_validation_unittest.cc', |
| 53 'edk/system/platform_handle_dispatcher_unittest.cc', | 62 'edk/system/platform_handle_dispatcher_unittest.cc', |
| 54 'edk/system/raw_channel_unittest.cc', | 63 'edk/system/raw_channel_unittest.cc', |
| 55 'edk/system/run_all_unittests.cc', | |
| 56 'edk/system/shared_buffer_dispatcher_unittest.cc', | 64 'edk/system/shared_buffer_dispatcher_unittest.cc', |
| 57 'edk/system/simple_dispatcher_unittest.cc', | 65 'edk/system/simple_dispatcher_unittest.cc', |
| 58 'edk/system/test_utils.cc', | 66 'edk/system/test_utils.cc', |
| 59 'edk/system/test_utils.h', | 67 'edk/system/test_utils.h', |
| 60 'edk/system/wait_set_dispatcher_unittest.cc', | 68 'edk/system/wait_set_dispatcher_unittest.cc', |
| 61 'edk/system/waiter_test_utils.cc', | 69 'edk/system/waiter_test_utils.cc', |
| 62 'edk/system/waiter_test_utils.h', | 70 'edk/system/waiter_test_utils.h', |
| 63 'edk/system/waiter_unittest.cc', | 71 'edk/system/waiter_unittest.cc', |
| 64 'edk/test/multiprocess_test_helper_unittest.cc', | 72 'edk/test/multiprocess_test_helper_unittest.cc', |
| 65 ], | 73 ], |
| 66 'conditions': [ | 74 'conditions': [ |
| 67 ['OS=="ios"', { | 75 ['OS=="ios"', { |
| 68 'sources!': [ | 76 'sources!': [ |
| 69 'edk/embedder/embedder_unittest.cc', | 77 'edk/embedder/embedder_unittest.cc', |
| 70 'edk/system/multiprocess_message_pipe_unittest.cc', | 78 'edk/system/multiprocess_message_pipe_unittest.cc', |
| 71 'edk/test/multiprocess_test_helper_unittest.cc', | 79 'edk/test/multiprocess_test_helper_unittest.cc', |
| 72 ], | 80 ], |
| 73 }], | 81 }], |
| 74 ], | 82 ], |
| 75 }, | 83 }, |
| 76 { | 84 { |
| 77 # GN version: //mojo/edk/system:mojo_message_pipe_perftests | 85 # GN version: //mojo/edk/system:mojo_message_pipe_perftests |
| 78 'target_name': 'mojo_message_pipe_perftests2', | 86 'target_name': 'mojo_message_pipe_perftests', |
| 79 'type': 'executable', | 87 'type': 'executable', |
| 80 'dependencies': [ | 88 'dependencies': [ |
| 81 '../base/base.gyp:base', | 89 '../base/base.gyp:base', |
| 82 '../base/base.gyp:test_support_base', | 90 '../base/base.gyp:test_support_base', |
| 83 '../base/base.gyp:test_support_perf', | 91 '../base/base.gyp:test_support_perf', |
| 84 '../testing/gtest.gyp:gtest', | 92 '../testing/gtest.gyp:gtest', |
| 85 'mojo_edk.gyp:mojo_common_test_support2', | 93 'mojo_edk.gyp:mojo_common_test_support', |
| 86 'mojo_edk.gyp:mojo_system_impl2', | 94 'mojo_edk.gyp:mojo_system_impl', |
| 87 ], | 95 ], |
| 88 'sources': [ | 96 'sources': [ |
| 89 'edk/system/message_pipe_perftest.cc', | 97 'edk/system/message_pipe_perftest.cc', |
| 90 'edk/system/message_pipe_test_utils.cc', | 98 'edk/system/message_pipe_test_utils.cc', |
| 91 'edk/system/message_pipe_test_utils.h', | 99 'edk/system/message_pipe_test_utils.h', |
| 92 'edk/system/test_utils.cc', | 100 'edk/system/test_utils.cc', |
| 93 'edk/system/test_utils.h', | 101 'edk/system/test_utils.h', |
| 94 ], | 102 ], |
| 95 }, | 103 }, |
| 96 # TODO(yzshen): fix the following two targets. | 104 # TODO(yzshen): fix the following two targets. |
| 97 { | 105 { |
| 98 # GN version: //mojo/edk/js/test:js_unittests | 106 # GN version: //mojo/edk/js/test:js_unittests |
| 99 'target_name': 'mojo_js_unittests', | 107 'target_name': 'mojo_js_unittests', |
| 100 'type': 'executable', | 108 'type': 'executable', |
| 101 'dependencies': [ | 109 'dependencies': [ |
| 102 '../gin/gin.gyp:gin_test', | 110 '../gin/gin.gyp:gin_test', |
| 103 '../third_party/mojo/mojo_public.gyp:mojo_environment_standalone', | 111 '../third_party/mojo/mojo_public.gyp:mojo_environment_standalone', |
| 104 '../third_party/mojo/mojo_public.gyp:mojo_public_test_interfaces', | 112 '../third_party/mojo/mojo_public.gyp:mojo_public_test_interfaces', |
| 105 '../third_party/mojo/mojo_public.gyp:mojo_utility', | 113 '../third_party/mojo/mojo_public.gyp:mojo_utility', |
| 106 'mojo_edk.gyp:mojo_common_test_support2', | 114 'mojo_edk.gyp:mojo_common_test_support', |
| 107 'mojo_edk.gyp:mojo_run_all_unittests2', | 115 'mojo_edk.gyp:mojo_run_all_unittests', |
| 108 'mojo_edk.gyp:mojo_js_lib2', | 116 'mojo_edk.gyp:mojo_js_lib', |
| 109 ], | 117 ], |
| 110 'sources': [ | 118 'sources': [ |
| 111 'edk/js/handle_unittest.cc', | 119 'edk/js/handle_unittest.cc', |
| 112 'edk/js/test/run_js_tests.cc', | 120 'edk/js/test/run_js_tests.cc', |
| 113 ], | 121 ], |
| 114 }, | 122 }, |
| 115 { | 123 { |
| 116 # GN version: //mojo/edk/js/test:js_integration_tests | 124 # GN version: //mojo/edk/js/test:js_integration_tests |
| 117 'target_name': 'mojo_js_integration_tests', | 125 'target_name': 'mojo_js_integration_tests', |
| 118 'type': 'executable', | 126 'type': 'executable', |
| 119 'dependencies': [ | 127 'dependencies': [ |
| 120 '../base/base.gyp:base', | 128 '../base/base.gyp:base', |
| 121 '../gin/gin.gyp:gin_test', | 129 '../gin/gin.gyp:gin_test', |
| 122 '../third_party/mojo/mojo_public.gyp:mojo_environment_standalone', | 130 '../third_party/mojo/mojo_public.gyp:mojo_environment_standalone', |
| 123 '../third_party/mojo/mojo_public.gyp:mojo_public_test_interfaces', | 131 '../third_party/mojo/mojo_public.gyp:mojo_public_test_interfaces', |
| 124 '../third_party/mojo/mojo_public.gyp:mojo_utility', | 132 '../third_party/mojo/mojo_public.gyp:mojo_utility', |
| 125 'mojo_edk.gyp:mojo_js_lib2', | 133 'mojo_base.gyp:mojo_common_lib', |
| 126 'mojo_edk.gyp:mojo_run_all_unittests2', | 134 'mojo_edk.gyp:mojo_js_lib', |
| 135 'mojo_edk.gyp:mojo_run_all_unittests', |
| 127 'mojo_js_to_cpp_bindings', | 136 'mojo_js_to_cpp_bindings', |
| 128 ], | 137 ], |
| 129 'sources': [ | 138 'sources': [ |
| 130 'edk/js/test/run_js_integration_tests.cc', | 139 'edk/js/test/run_js_integration_tests.cc', |
| 131 'edk/js/tests/js_to_cpp_tests.cc', | 140 'edk/js/tests/js_to_cpp_tests.cc', |
| 132 ], | 141 ], |
| 133 }, | 142 }, |
| 143 { |
| 144 'target_name': 'mojo_js_to_cpp_bindings', |
| 145 'type': 'none', |
| 146 'variables': { |
| 147 'mojom_files': [ |
| 148 'edk/js/tests/js_to_cpp.mojom', |
| 149 ], |
| 150 }, |
| 151 'includes': [ '../third_party/mojo/mojom_bindings_generator_explicit.gypi'
], |
| 152 }, |
| 134 ], | 153 ], |
| 135 } | 154 } |
| OLD | NEW |