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.
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_bindings_perftests',
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/edk/test: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 'mojo_public.gyp:mojo_cpp_bindings',
40 'mojo_public.gyp:mojo_environment_standalone',
41 'mojo_public.gyp:mojo_public_bindings_test_utils',
42 'mojo_public.gyp:mojo_public_test_interfaces',
43 'mojo_public.gyp:mojo_public_test_utils',
44 'mojo_public.gyp:mojo_utility',
47 'src/mojo/public/cpp/bindings/tests/array_unittest.cc',
48 'src/mojo/public/cpp/bindings/tests/bounds_checker_unittest.cc',
49 'src/mojo/public/cpp/bindings/tests/buffer_unittest.cc',
50 'src/mojo/public/cpp/bindings/tests/connector_unittest.cc',
51 'src/mojo/public/cpp/bindings/tests/container_test_util.cc',
52 'src/mojo/public/cpp/bindings/tests/equals_unittest.cc',
53 'src/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc',
54 'src/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc',
55 'src/mojo/public/cpp/bindings/tests/map_unittest.cc',
56 'src/mojo/public/cpp/bindings/tests/message_queue.cc',
57 'src/mojo/public/cpp/bindings/tests/message_queue.h',
58 'src/mojo/public/cpp/bindings/tests/request_response_unittest.cc',
59 'src/mojo/public/cpp/bindings/tests/router_unittest.cc',
60 'src/mojo/public/cpp/bindings/tests/sample_service_unittest.cc',
61 'src/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc',
62 'src/mojo/public/cpp/bindings/tests/string_unittest.cc',
63 'src/mojo/public/cpp/bindings/tests/struct_unittest.cc',
64 'src/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc',
65 'src/mojo/public/cpp/bindings/tests/validation_unittest.cc',
69 # GN version: //mojo/edk/test:mojo_public_bindings_perftests
70 'target_name': 'mojo_public_bindings_perftests',
73 '../../testing/gtest.gyp:gtest',
74 'mojo_edk.gyp:mojo_run_all_unittests',
75 'mojo_public.gyp:mojo_cpp_bindings',
76 'mojo_public.gyp:mojo_environment_standalone',
77 'mojo_public.gyp:mojo_public_bindings_test_utils',
78 'mojo_public.gyp:mojo_public_test_interfaces',
79 'mojo_public.gyp:mojo_public_test_utils',
80 'mojo_public.gyp:mojo_utility',
83 'src/mojo/public/cpp/bindings/tests/bindings_perftest.cc',
87 # GN version: //mojo/edk/test:mojo_public_environment_unittests
88 'target_name': 'mojo_public_environment_unittests',
91 '../../testing/gtest.gyp:gtest',
92 'mojo_edk.gyp:mojo_run_all_unittests',
93 'mojo_public.gyp:mojo_environment_standalone',
94 'mojo_public.gyp:mojo_public_test_utils',
95 'mojo_public.gyp:mojo_utility',
97 'include_dirs': [ '../..' ],
99 'src/mojo/public/cpp/environment/tests/async_wait_unittest.cc',
100 'src/mojo/public/cpp/environment/tests/async_waiter_unittest.cc',
101 'src/mojo/public/cpp/environment/tests/logger_unittest.cc',
102 'src/mojo/public/cpp/environment/tests/logging_unittest.cc',
106 # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests
107 # and //mojo/public/c/system/tests
108 'target_name': 'mojo_public_system_unittests',
109 'type': 'executable',
111 '../../testing/gtest.gyp:gtest',
112 'mojo_edk.gyp:mojo_run_all_unittests',
113 'mojo_public.gyp:mojo_public_test_utils',
115 'include_dirs': [ '../..' ],
117 '<@(mojo_public_system_unittest_sources)',
121 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unittests
122 'target_name': 'mojo_public_utility_unittests',
123 'type': 'executable',
125 '../../testing/gtest.gyp:gtest',
126 'mojo_edk.gyp:mojo_run_all_unittests',
127 'mojo_public.gyp:mojo_public_test_utils',
128 'mojo_public.gyp:mojo_utility',
130 'include_dirs': [ '../..' ],
132 'src/mojo/public/cpp/utility/tests/mutex_unittest.cc',
133 'src/mojo/public/cpp/utility/tests/run_loop_unittest.cc',
134 'src/mojo/public/cpp/utility/tests/thread_unittest.cc',
137 # See crbug.com/342893:
140 'src/mojo/public/cpp/utility/tests/mutex_unittest.cc',
141 'src/mojo/public/cpp/utility/tests/thread_unittest.cc',
147 # GN version: //mojo/edk/test:mojo_public_system_perftests
148 'target_name': 'mojo_public_system_perftests',
149 'type': 'executable',
151 '../../base/base.gyp:base',
152 '../../testing/gtest.gyp:gtest',
153 'mojo_edk.gyp:mojo_run_all_perftests',
154 'mojo_public.gyp:mojo_public_test_utils',
155 'mojo_public.gyp:mojo_utility',
158 'src/mojo/public/c/system/tests/core_perftest.cc',
162 # GN version: //mojo/edk/system:mojo_system_unittests
163 'target_name': 'mojo_system_unittests',
164 'type': 'executable',
166 '../../base/base.gyp:base',
167 '../../testing/gtest.gyp:gtest',
168 'mojo_edk.gyp:mojo_common_test_support',
169 'mojo_edk.gyp:mojo_system_impl',
172 'src/mojo/edk/embedder/embedder_unittest.cc',
173 'src/mojo/edk/embedder/platform_channel_pair_posix_unittest.cc',
174 'src/mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc',
175 'src/mojo/edk/system/awakable_list_unittest.cc',
176 'src/mojo/edk/system/channel_endpoint_id_unittest.cc',
177 'src/mojo/edk/system/channel_endpoint_unittest.cc',
178 'src/mojo/edk/system/channel_manager_unittest.cc',
179 'src/mojo/edk/system/channel_test_base.cc',
180 'src/mojo/edk/system/channel_test_base.h',
181 'src/mojo/edk/system/channel_unittest.cc',
182 'src/mojo/edk/system/core_unittest.cc',
183 'src/mojo/edk/system/core_test_base.cc',
184 'src/mojo/edk/system/core_test_base.h',
185 'src/mojo/edk/system/data_pipe_impl_unittest.cc',
186 'src/mojo/edk/system/data_pipe_unittest.cc',
187 'src/mojo/edk/system/dispatcher_unittest.cc',
188 'src/mojo/edk/system/endpoint_relayer_unittest.cc',
189 'src/mojo/edk/system/ipc_support_unittest.cc',
190 'src/mojo/edk/system/memory_unittest.cc',
191 'src/mojo/edk/system/message_in_transit_queue_unittest.cc',
192 'src/mojo/edk/system/message_in_transit_test_utils.cc',
193 'src/mojo/edk/system/message_in_transit_test_utils.h',
194 'src/mojo/edk/system/message_pipe_dispatcher_unittest.cc',
195 'src/mojo/edk/system/message_pipe_test_utils.cc',
196 'src/mojo/edk/system/message_pipe_test_utils.h',
197 'src/mojo/edk/system/message_pipe_unittest.cc',
198 'src/mojo/edk/system/multiprocess_message_pipe_unittest.cc',
199 'src/mojo/edk/system/mutex_unittest.cc',
200 'src/mojo/edk/system/options_validation_unittest.cc',
201 'src/mojo/edk/system/platform_handle_dispatcher_unittest.cc',
202 'src/mojo/edk/system/raw_channel_unittest.cc',
203 'src/mojo/edk/system/remote_data_pipe_impl_unittest.cc',
204 'src/mojo/edk/system/remote_message_pipe_unittest.cc',
205 'src/mojo/edk/system/run_all_unittests.cc',
206 'src/mojo/edk/system/shared_buffer_dispatcher_unittest.cc',
207 'src/mojo/edk/system/simple_dispatcher_unittest.cc',
208 'src/mojo/edk/system/test_channel_endpoint_client.cc',
209 'src/mojo/edk/system/test_channel_endpoint_client.h',
210 'src/mojo/edk/system/test_utils.cc',
211 'src/mojo/edk/system/test_utils.h',
212 'src/mojo/edk/system/thread_annotations_unittest.cc',
213 'src/mojo/edk/system/unique_identifier_unittest.cc',
214 'src/mojo/edk/system/waiter_test_utils.cc',
215 'src/mojo/edk/system/waiter_test_utils.h',
216 'src/mojo/edk/system/waiter_unittest.cc',
217 'src/mojo/edk/test/multiprocess_test_helper_unittest.cc',
222 'src/mojo/edk/embedder/embedder_unittest.cc',
223 'src/mojo/edk/system/ipc_support_unittest.cc',
224 'src/mojo/edk/system/multiprocess_message_pipe_unittest.cc',
225 'src/mojo/edk/test/multiprocess_test_helper_unittest.cc',
231 # GN version: //mojo/edk/system:mojo_message_pipe_perftests
232 'target_name': 'mojo_message_pipe_perftests',
233 'type': 'executable',
235 '../../base/base.gyp:base',
236 '../../base/base.gyp:test_support_base',
237 '../../base/base.gyp:test_support_perf',
238 '../../testing/gtest.gyp:gtest',
239 'mojo_edk.gyp:mojo_common_test_support',
240 'mojo_edk.gyp:mojo_system_impl',
243 'src/mojo/edk/system/message_pipe_perftest.cc',
244 'src/mojo/edk/system/message_pipe_test_utils.cc',
245 'src/mojo/edk/system/message_pipe_test_utils.h',
246 'src/mojo/edk/system/test_utils.cc',
247 'src/mojo/edk/system/test_utils.h',
251 # GN version: //mojo/edk/js/test:js_unittests
252 'target_name': 'mojo_js_unittests',
253 'type': 'executable',
255 '../../gin/gin.gyp:gin_test',
256 'mojo_edk.gyp:mojo_common_test_support',
257 'mojo_edk.gyp:mojo_run_all_unittests',
258 'mojo_edk.gyp:mojo_js_lib',
259 'mojo_public.gyp:mojo_environment_standalone',
260 'mojo_public.gyp:mojo_public_test_interfaces',
261 'mojo_public.gyp:mojo_utility',
264 'src/mojo/edk/js/handle_unittest.cc',
265 'src/mojo/edk/js/test/run_js_tests.cc',
269 # GN version: //mojo/edk/js/test:js_integration_tests
270 'target_name': 'mojo_js_integration_tests',
271 'type': 'executable',
273 '../../base/base.gyp:base',
274 '../../gin/gin.gyp:gin_test',
275 'mojo_public.gyp:mojo_environment_standalone',
276 'mojo_public.gyp:mojo_public_test_interfaces',
277 'mojo_public.gyp:mojo_utility',
278 'mojo_edk.gyp:mojo_js_lib',
279 'mojo_edk.gyp:mojo_run_all_unittests',
280 'mojo_js_to_cpp_bindings',
283 'src/mojo/edk/js/test/run_js_integration_tests.cc',
284 'src/mojo/edk/js/tests/js_to_cpp_tests.cc',
288 'target_name': 'mojo_js_to_cpp_bindings',
292 'src/mojo/edk/js/tests/js_to_cpp.mojom',
295 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
299 ['test_isolation_mode != "noop"', {
302 'target_name': 'mojo_public_bindings_unittests_run',
305 'mojo_public_bindings_unittests',
308 '../../build/isolate.gypi',
311 'mojo_public_bindings_unittests.isolate',
315 'target_name': 'mojo_public_environment_unittests_run',
318 'mojo_public_environment_unittests',
321 '../../build/isolate.gypi',
324 'mojo_public_environment_unittests.isolate',
328 'target_name': 'mojo_public_system_unittests_run',
331 'mojo_public_system_unittests',
334 '../../build/isolate.gypi',
337 'mojo_public_system_unittests.isolate',
341 'target_name': 'mojo_public_utility_unittests_run',
344 'mojo_public_utility_unittests',
347 '../../build/isolate.gypi',
350 'mojo_public_utility_unittests.isolate',