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
3 # found in the LICENSE file.
7 '../mojo_variables.gypi',
11 'target_name': 'mojo_edk_tests',
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
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
19 'mojo_message_pipe_perftests',
20 'mojo_public_application_unittests',
21 'mojo_public_bindings_unittests',
22 'mojo_public_environment_unittests',
23 'mojo_public_system_perftests',
24 'mojo_public_system_unittests',
25 'mojo_public_utility_unittests',
26 'mojo_system_unittests',
28 'mojo_js_integration_tests',
31 # TODO(vtl): Reorganize the mojo_public_*_unittests.
33 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests
34 'target_name': 'mojo_public_bindings_unittests',
37 '../../testing/gtest.gyp:gtest',
38 'mojo_edk.gyp:mojo_run_all_unittests',
39 '../public/mojo_public.gyp:mojo_cpp_bindings',
40 '../public/mojo_public.gyp:mojo_environment_standalone',
41 '../public/mojo_public.gyp:mojo_public_bindings_test_utils',
42 '../public/mojo_public.gyp:mojo_public_test_interfaces',
43 '../public/mojo_public.gyp:mojo_public_test_utils',
44 '../public/mojo_public.gyp:mojo_utility',
47 '../public/cpp/bindings/tests/array_unittest.cc',
48 '../public/cpp/bindings/tests/bounds_checker_unittest.cc',
49 '../public/cpp/bindings/tests/buffer_unittest.cc',
50 '../public/cpp/bindings/tests/connector_unittest.cc',
51 '../public/cpp/bindings/tests/container_test_util.cc',
52 '../public/cpp/bindings/tests/equals_unittest.cc',
53 '../public/cpp/bindings/tests/handle_passing_unittest.cc',
54 '../public/cpp/bindings/tests/interface_ptr_unittest.cc',
55 '../public/cpp/bindings/tests/map_unittest.cc',
56 '../public/cpp/bindings/tests/request_response_unittest.cc',
57 '../public/cpp/bindings/tests/router_unittest.cc',
58 '../public/cpp/bindings/tests/sample_service_unittest.cc',
59 '../public/cpp/bindings/tests/serialization_warning_unittest.cc',
60 '../public/cpp/bindings/tests/string_unittest.cc',
61 '../public/cpp/bindings/tests/struct_unittest.cc',
62 '../public/cpp/bindings/tests/type_conversion_unittest.cc',
63 '../public/cpp/bindings/tests/validation_unittest.cc',
67 # GN version: //mojo/public/cpp/environment/tests:mojo_public_environment_unittests
68 'target_name': 'mojo_public_environment_unittests',
71 '../../testing/gtest.gyp:gtest',
72 'mojo_edk.gyp:mojo_run_all_unittests',
73 '../public/mojo_public.gyp:mojo_environment_standalone',
74 '../public/mojo_public.gyp:mojo_public_test_utils',
75 '../public/mojo_public.gyp:mojo_utility',
77 'include_dirs': [ '../..' ],
79 '../public/cpp/environment/tests/async_wait_unittest.cc',
80 '../public/cpp/environment/tests/async_waiter_unittest.cc',
81 '../public/cpp/environment/tests/logger_unittest.cc',
82 '../public/cpp/environment/tests/logging_unittest.cc',
86 # GN version: //mojo/public/cpp/application/tests:mojo_public_application_unittests
87 'target_name': 'mojo_public_application_unittests',
90 '../../base/base.gyp:base',
91 '../../testing/gtest.gyp:gtest',
92 'mojo_edk.gyp:mojo_run_all_unittests',
93 '../public/mojo_public.gyp:mojo_application_standalone',
94 '../public/mojo_public.gyp:mojo_utility',
95 '../public/mojo_public.gyp:mojo_environment_standalone',
98 '../public/cpp/application/tests/service_registry_unittest.cc',
102 # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests
103 # and //mojo/public/c/system/tests
104 'target_name': 'mojo_public_system_unittests',
105 'type': 'executable',
107 '../../testing/gtest.gyp:gtest',
108 'mojo_edk.gyp:mojo_run_all_unittests',
109 '../public/mojo_public.gyp:mojo_public_test_utils',
111 'include_dirs': [ '../..' ],
113 '<@(mojo_public_system_unittest_sources)',
117 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unittests
118 'target_name': 'mojo_public_utility_unittests',
119 'type': 'executable',
121 '../../testing/gtest.gyp:gtest',
122 'mojo_edk.gyp:mojo_run_all_unittests',
123 '../public/mojo_public.gyp:mojo_public_test_utils',
124 '../public/mojo_public.gyp:mojo_utility',
126 'include_dirs': [ '../..' ],
128 '../public/cpp/utility/tests/mutex_unittest.cc',
129 '../public/cpp/utility/tests/run_loop_unittest.cc',
130 '../public/cpp/utility/tests/thread_unittest.cc',
133 # See crbug.com/342893:
136 '../public/cpp/utility/tests/mutex_unittest.cc',
137 '../public/cpp/utility/tests/thread_unittest.cc',
143 # GN version: //mojo/public/c/system/tests:perftests
144 'target_name': 'mojo_public_system_perftests',
145 'type': 'executable',
147 '../../base/base.gyp:base',
148 '../../testing/gtest.gyp:gtest',
149 'mojo_edk.gyp:mojo_run_all_perftests',
150 '../public/mojo_public.gyp:mojo_public_test_utils',
151 '../public/mojo_public.gyp:mojo_utility',
154 '../public/c/system/tests/core_perftest.cc',
158 # GN version: //mojo/edk/system:mojo_system_unittests
159 'target_name': 'mojo_system_unittests',
160 'type': 'executable',
162 '../../base/base.gyp:base',
163 '../../testing/gtest.gyp:gtest',
164 'mojo_edk.gyp:mojo_common_test_support',
165 'mojo_edk.gyp:mojo_system_impl',
168 'embedder/embedder_unittest.cc',
169 'embedder/platform_channel_pair_posix_unittest.cc',
170 'embedder/simple_platform_shared_buffer_unittest.cc',
171 'system/channel_endpoint_id_unittest.cc',
172 'system/channel_unittest.cc',
173 'system/core_unittest.cc',
174 'system/core_test_base.cc',
175 'system/core_test_base.h',
176 'system/data_pipe_unittest.cc',
177 'system/dispatcher_unittest.cc',
178 'system/local_data_pipe_unittest.cc',
179 'system/memory_unittest.cc',
180 'system/message_pipe_dispatcher_unittest.cc',
181 'system/message_pipe_test_utils.h',
182 'system/message_pipe_test_utils.cc',
183 'system/message_pipe_unittest.cc',
184 'system/multiprocess_message_pipe_unittest.cc',
185 'system/options_validation_unittest.cc',
186 'system/platform_handle_dispatcher_unittest.cc',
187 'system/raw_channel_unittest.cc',
188 'system/remote_message_pipe_unittest.cc',
189 'system/run_all_unittests.cc',
190 'system/shared_buffer_dispatcher_unittest.cc',
191 'system/simple_dispatcher_unittest.cc',
192 'system/test_utils.cc',
193 'system/test_utils.h',
194 'system/waiter_list_unittest.cc',
195 'system/waiter_test_utils.cc',
196 'system/waiter_test_utils.h',
197 'system/waiter_unittest.cc',
198 'test/multiprocess_test_helper_unittest.cc',
203 'embedder/embedder_unittest.cc',
204 'system/multiprocess_message_pipe_unittest.cc',
205 'test/multiprocess_test_helper_unittest.cc',
211 # GN version: //mojo/edk/system:mojo_message_pipe_perftests
212 'target_name': 'mojo_message_pipe_perftests',
213 'type': 'executable',
215 '../../base/base.gyp:base',
216 '../../base/base.gyp:test_support_base',
217 '../../base/base.gyp:test_support_perf',
218 '../../testing/gtest.gyp:gtest',
219 'mojo_edk.gyp:mojo_common_test_support',
220 'mojo_edk.gyp:mojo_system_impl',
223 'system/message_pipe_perftest.cc',
224 'system/message_pipe_test_utils.h',
225 'system/message_pipe_test_utils.cc',
226 'system/test_utils.cc',
227 'system/test_utils.h',
231 # GN version: //mojo/edk/js/test:js_unittests
232 'target_name': 'mojo_js_unittests',
233 'type': 'executable',
235 '../../gin/gin.gyp:gin_test',
236 'mojo_edk.gyp:mojo_common_test_support',
237 'mojo_edk.gyp:mojo_run_all_unittests',
238 'mojo_edk.gyp:mojo_js_lib',
239 '../public/mojo_public.gyp:mojo_environment_standalone',
240 '../public/mojo_public.gyp:mojo_public_test_interfaces',
241 '../public/mojo_public.gyp:mojo_utility',
244 'js/handle_unittest.cc',
245 'js/test/run_js_tests.cc',
249 # GN version: //mojo/edk/js/test:js_integration_tests
250 'target_name': 'mojo_js_integration_tests',
251 'type': 'executable',
253 '../../base/base.gyp:base',
254 '../../gin/gin.gyp:gin_test',
255 '../public/mojo_public.gyp:mojo_environment_standalone',
256 '../public/mojo_public.gyp:mojo_public_test_interfaces',
257 '../public/mojo_public.gyp:mojo_utility',
258 'mojo_edk.gyp:mojo_js_lib',
259 'mojo_edk.gyp:mojo_run_all_unittests',
260 'mojo_js_to_cpp_bindings',
263 'js/test/run_js_integration_tests.cc',
264 'js/tests/js_to_cpp_tests',
268 'target_name': 'mojo_js_to_cpp_bindings',
272 'js/tests/js_to_cpp.mojom',
275 'includes': [ '../public/tools/bindings/mojom_bindings_generator_explicit.gypi' ],