blob: e18d87478d39ac084d00ffbf72edc37ca16c31f0 [file] [log] [blame]
jam76bcf0c2015-10-02 21:01:281# Copyright 2015 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.
4
5{
rockotb04b89b52016-06-09 03:58:566 'variables': {
7 'chromium_code': 1,
8 },
jam76bcf0c2015-10-02 21:01:289 'targets': [
10 {
11 'target_name': 'mojo_edk_tests',
12 'type': 'none',
13 'dependencies': [
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
18 # to be built.
rockotc637caf9b2016-02-10 09:57:0819 'mojo_message_pipe_perftests',
20 'mojo_public_bindings_perftests',
21 'mojo_public_bindings_unittests',
rockotc637caf9b2016-02-10 09:57:0822 'mojo_public_system_perftests',
23 'mojo_public_system_unittests',
rockotc637caf9b2016-02-10 09:57:0824 'mojo_system_unittests',
yzshenba7c43f2015-12-09 17:36:3725 'mojo_js_unittests',
yzshenf09848782016-01-12 00:12:0826 'mojo_js_integration_tests',
jam76bcf0c2015-10-02 21:01:2827 ],
28 },
29 {
rockotc637caf9b2016-02-10 09:57:0830 # GN version: //mojo/edk/test:mojo_public_bindings_unittests
31 'target_name': 'mojo_public_bindings_unittests',
32 'type': 'executable',
33 'dependencies': [
34 '../testing/gtest.gyp:gtest',
rockotc637caf9b2016-02-10 09:57:0835 'mojo_edk.gyp:mojo_run_all_unittests',
36 'mojo_public.gyp:mojo_cpp_bindings',
37 'mojo_public.gyp:mojo_public_bindings_test_utils',
rockotc637caf9b2016-02-10 09:57:0838 'mojo_public.gyp:mojo_public_test_utils',
rockot6d7be622016-06-15 18:25:1939 'mojo_public_tests.gyp:mojo_public_test_associated_interfaces',
40 'mojo_public_tests.gyp:mojo_public_test_interfaces',
41 'mojo_public_tests.gyp:mojo_public_test_interfaces_blink',
42 'mojo_public_tests.gyp:mojo_public_test_interfaces_struct_traits',
rockotc637caf9b2016-02-10 09:57:0843 ],
yzshen8576d4c2016-06-07 00:11:1844 'variables': {
45 'clang_warning_flags_unset': [ '-Wglobal-constructors' ],
46 },
rockotc637caf9b2016-02-10 09:57:0847 'sources': [
yzshen583ed942016-03-15 18:43:5348 'public/cpp/bindings/tests/array_common_test.h',
rockotc637caf9b2016-02-10 09:57:0849 'public/cpp/bindings/tests/array_unittest.cc',
50 'public/cpp/bindings/tests/associated_interface_unittest.cc',
yzshenf5d48932016-04-22 23:18:3351 'public/cpp/bindings/tests/bind_task_runner_unittest.cc',
rockotc637caf9b2016-02-10 09:57:0852 'public/cpp/bindings/tests/binding_callback_unittest.cc',
53 'public/cpp/bindings/tests/binding_unittest.cc',
rockotc637caf9b2016-02-10 09:57:0854 'public/cpp/bindings/tests/buffer_unittest.cc',
rockotc637caf9b2016-02-10 09:57:0855 'public/cpp/bindings/tests/connector_unittest.cc',
56 'public/cpp/bindings/tests/constant_unittest.cc',
57 'public/cpp/bindings/tests/container_test_util.cc',
yzshen583ed942016-03-15 18:43:5358 'public/cpp/bindings/tests/container_test_util.h',
yzshen38548982016-07-23 03:38:5359 'public/cpp/bindings/tests/data_view_unittest.cc',
rockotc637caf9b2016-02-10 09:57:0860 'public/cpp/bindings/tests/equals_unittest.cc',
61 'public/cpp/bindings/tests/handle_passing_unittest.cc',
62 'public/cpp/bindings/tests/interface_ptr_unittest.cc',
yzshen54300842016-06-16 19:08:5663 'public/cpp/bindings/tests/map_common_test.h',
rockotc637caf9b2016-02-10 09:57:0864 'public/cpp/bindings/tests/map_unittest.cc',
65 'public/cpp/bindings/tests/message_queue.cc',
66 'public/cpp/bindings/tests/message_queue.h',
67 'public/cpp/bindings/tests/multiplex_router_unittest.cc',
68 'public/cpp/bindings/tests/pickle_unittest.cc',
yzshene180c182016-06-14 00:37:0169 'public/cpp/bindings/tests/pickled_types_blink.cc',
70 'public/cpp/bindings/tests/pickled_types_blink.h',
71 'public/cpp/bindings/tests/pickled_types_chromium.cc',
72 'public/cpp/bindings/tests/pickled_types_chromium.h',
sammca1107b72016-03-23 18:51:5873 'public/cpp/bindings/tests/rect_blink.h',
74 'public/cpp/bindings/tests/rect_blink_traits.h',
75 'public/cpp/bindings/tests/rect_chromium.h',
76 'public/cpp/bindings/tests/rect_chromium_traits.h',
rockotc637caf9b2016-02-10 09:57:0877 'public/cpp/bindings/tests/request_response_unittest.cc',
78 'public/cpp/bindings/tests/router_test_util.cc',
79 'public/cpp/bindings/tests/router_test_util.h',
80 'public/cpp/bindings/tests/router_unittest.cc',
81 'public/cpp/bindings/tests/sample_service_unittest.cc',
82 'public/cpp/bindings/tests/serialization_warning_unittest.cc',
yzshenf3af0de2016-02-15 17:46:3883 'public/cpp/bindings/tests/stl_converters_unittest.cc',
rockotc637caf9b2016-02-10 09:57:0884 'public/cpp/bindings/tests/string_unittest.cc',
sammca1107b72016-03-23 18:51:5885 'public/cpp/bindings/tests/struct_traits_unittest.cc',
rockotc637caf9b2016-02-10 09:57:0886 'public/cpp/bindings/tests/struct_unittest.cc',
rockot05b616c2016-02-23 09:20:0387 'public/cpp/bindings/tests/struct_with_traits_impl.cc',
88 'public/cpp/bindings/tests/struct_with_traits_impl.h',
sammca1107b72016-03-23 18:51:5889 'public/cpp/bindings/tests/struct_with_traits_impl_traits.cc',
90 'public/cpp/bindings/tests/struct_with_traits_impl_traits.h',
yzshen904b45f2016-02-17 23:16:0191 'public/cpp/bindings/tests/sync_method_unittest.cc',
rockotc637caf9b2016-02-10 09:57:0892 'public/cpp/bindings/tests/type_conversion_unittest.cc',
93 'public/cpp/bindings/tests/union_unittest.cc',
rockot8a88e80c2016-06-16 02:30:3094 'public/cpp/bindings/tests/validation_context_unittest.cc',
rockotc637caf9b2016-02-10 09:57:0895 'public/cpp/bindings/tests/validation_unittest.cc',
yzshen583ed942016-03-15 18:43:5396 'public/cpp/bindings/tests/variant_test_util.h',
rockotc637caf9b2016-02-10 09:57:0897 ],
sammc68192052016-04-24 03:07:3998 'conditions': [
yzshen8576d4c2016-06-07 00:11:1899 # TODO(yzshen): Blink-flavor bindings tests should be moved into
100 # mojo_public_bindings_for_blink_tests (which should eventually be moved
101 # into blink).
sammc68192052016-04-24 03:07:39102 ['OS=="ios"', {
103 'dependencies!': [
104 'mojo_public.gyp:mojo_public_test_interfaces_blink',
105 ],
106 'sources!': [
107 'public/cpp/bindings/tests/pickle_unittest.cc',
yzshene180c182016-06-14 00:37:01108 'public/cpp/bindings/tests/pickled_types_blink.cc',
109 'public/cpp/bindings/tests/pickled_types_blink.h',
110 'public/cpp/bindings/tests/pickled_types_chromium.cc',
111 'public/cpp/bindings/tests/pickled_types_chromium.h',
sammc68192052016-04-24 03:07:39112 'public/cpp/bindings/tests/rect_blink.h',
113 'public/cpp/bindings/tests/rect_blink_traits.h',
114 'public/cpp/bindings/tests/struct_traits_unittest.cc',
115 ],
116 }],
117 ],
rockotc637caf9b2016-02-10 09:57:08118 },
119 {
yzshen791f9b22016-03-14 22:26:22120 # GN version: //mojo/public/cpp/bindings/tests:for_blink_tests
121 'target_name': 'mojo_public_bindings_for_blink_tests',
122 'type': 'static_library',
123 'dependencies': [
124 '../testing/gtest.gyp:gtest',
125 'mojo_public.gyp:mojo_cpp_bindings',
rockot6d7be622016-06-15 18:25:19126 'mojo_public_tests.gyp:mojo_public_test_interfaces',
127 'mojo_public_tests.gyp:mojo_public_test_wtf_types',
128 'mojo_public_tests.gyp:mojo_public_test_wtf_types_blink',
yzshen791f9b22016-03-14 22:26:22129 ],
yzshen8576d4c2016-06-07 00:11:18130 'variables': {
131 'clang_warning_flags_unset': [ '-Wglobal-constructors' ],
132 },
yzshen791f9b22016-03-14 22:26:22133 'sources': [
yzshen583ed942016-03-15 18:43:53134 'public/cpp/bindings/tests/array_common_test.h',
135 'public/cpp/bindings/tests/container_test_util.cc',
136 'public/cpp/bindings/tests/container_test_util.h',
yzshen54300842016-06-16 19:08:56137 'public/cpp/bindings/tests/map_common_test.h',
yzshen583ed942016-03-15 18:43:53138 'public/cpp/bindings/tests/variant_test_util.h',
139 'public/cpp/bindings/tests/wtf_array_unittest.cc',
yzshen54300842016-06-16 19:08:56140 'public/cpp/bindings/tests/wtf_map_unittest.cc',
yzshen791f9b22016-03-14 22:26:22141 'public/cpp/bindings/tests/wtf_types_unittest.cc',
142 ],
143 },
144 {
rockotc637caf9b2016-02-10 09:57:08145 # GN version: //mojo/edk/test:mojo_public_bindings_perftests
146 'target_name': 'mojo_public_bindings_perftests',
147 'type': 'executable',
148 'dependencies': [
amistry379dad62016-03-08 03:36:08149 '../base/base.gyp:test_support_base',
rockotc637caf9b2016-02-10 09:57:08150 '../testing/gtest.gyp:gtest',
151 'mojo_base.gyp:mojo_common_lib',
amistryff495092016-03-07 20:51:15152 'mojo_edk.gyp:mojo_run_all_perftests',
rockotc637caf9b2016-02-10 09:57:08153 'mojo_public.gyp:mojo_cpp_bindings',
rockotc637caf9b2016-02-10 09:57:08154 'mojo_public.gyp:mojo_public_bindings_test_utils',
rockotc637caf9b2016-02-10 09:57:08155 'mojo_public.gyp:mojo_public_test_utils',
rockot6d7be622016-06-15 18:25:19156 'mojo_public_tests.gyp:mojo_public_test_interfaces',
rockotc637caf9b2016-02-10 09:57:08157 ],
158 'sources': [
159 'public/cpp/bindings/tests/bindings_perftest.cc',
amistry379dad62016-03-08 03:36:08160 'public/cpp/bindings/tests/e2e_perftest.cc',
rockotc637caf9b2016-02-10 09:57:08161 ],
162 },
163 {
rockotc637caf9b2016-02-10 09:57:08164 # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests
165 # and //mojo/public/c/system/tests
166 'target_name': 'mojo_public_system_unittests',
167 'type': 'executable',
168 'dependencies': [
169 '../testing/gtest.gyp:gtest',
170 'mojo_edk.gyp:mojo_run_all_unittests',
rockote5d711e2016-03-07 02:36:52171 'mojo_public.gyp:mojo_cpp_system',
rockotc637caf9b2016-02-10 09:57:08172 'mojo_public.gyp:mojo_public_test_utils',
173 ],
174 'sources': [
rockotb04b89b52016-06-09 03:58:56175 '<(DEPTH)/mojo/public/c/system/tests/core_unittest.cc',
176 '<(DEPTH)/mojo/public/c/system/tests/core_unittest_pure_c.c',
177 '<(DEPTH)/mojo/public/c/system/tests/macros_unittest.cc',
178 '<(DEPTH)/mojo/public/cpp/system/tests/core_unittest.cc',
179 '<(DEPTH)/mojo/public/cpp/system/tests/watcher_unittest.cc',
rockotc637caf9b2016-02-10 09:57:08180 ],
181 },
182 {
rockotc637caf9b2016-02-10 09:57:08183 # GN version: //mojo/edk/test:mojo_public_system_perftests
184 'target_name': 'mojo_public_system_perftests',
jam76bcf0c2015-10-02 21:01:28185 'type': 'executable',
186 'dependencies': [
187 '../base/base.gyp:base',
188 '../testing/gtest.gyp:gtest',
rockotc637caf9b2016-02-10 09:57:08189 'mojo_edk.gyp:mojo_run_all_perftests',
rockotb04b89b52016-06-09 03:58:56190 'mojo_public.gyp:mojo_public_system',
rockotc637caf9b2016-02-10 09:57:08191 'mojo_public.gyp:mojo_public_test_utils',
rockotc637caf9b2016-02-10 09:57:08192 ],
193 'sources': [
194 'public/c/system/tests/core_perftest.cc',
195 ],
196 },
197 {
198 # GN version: //mojo/edk/system:mojo_system_unittests
199 'target_name': 'mojo_system_unittests',
amistry06815992016-05-05 08:24:56200 'type': '<(gtest_target_type)',
rockotc637caf9b2016-02-10 09:57:08201 'dependencies': [
202 '../base/base.gyp:base',
203 '../testing/gtest.gyp:gtest',
204 'mojo_edk.gyp:mojo_common_test_support',
205 'mojo_edk.gyp:mojo_run_all_unittests',
206 'mojo_edk.gyp:mojo_system_impl',
rockot6c72bfdb2016-05-13 06:28:37207 'mojo_edk.gyp:mojo_system_ports',
rockotb04b89b52016-06-09 03:58:56208 'mojo_public.gyp:mojo_public_system',
jam76bcf0c2015-10-02 21:01:28209 ],
210 'sources': [
211 'edk/embedder/embedder_unittest.cc',
212 'edk/embedder/platform_channel_pair_posix_unittest.cc',
amistryf8948442016-02-12 06:09:39213 'edk/embedder/platform_shared_buffer_unittest.cc',
jam76bcf0c2015-10-02 21:01:28214 'edk/system/awakable_list_unittest.cc',
215 'edk/system/core_test_base.cc',
216 'edk/system/core_test_base.h',
217 'edk/system/core_unittest.cc',
jam76bcf0c2015-10-02 21:01:28218 'edk/system/message_pipe_unittest.cc',
219 'edk/system/multiprocess_message_pipe_unittest.cc',
220 'edk/system/options_validation_unittest.cc',
221 'edk/system/platform_handle_dispatcher_unittest.cc',
rockot28a287e2016-05-24 02:51:37222 'edk/system/platform_wrapper_unittest.cc',
rockot6c72bfdb2016-05-13 06:28:37223 'edk/system/ports/ports_unittest.cc',
jam76bcf0c2015-10-02 21:01:28224 'edk/system/shared_buffer_dispatcher_unittest.cc',
rockotce69a042016-01-26 19:23:21225 'edk/system/shared_buffer_unittest.cc',
jam76bcf0c2015-10-02 21:01:28226 'edk/system/test_utils.cc',
227 'edk/system/test_utils.h',
amistry3975d222015-12-11 03:45:17228 'edk/system/wait_set_dispatcher_unittest.cc',
jam76bcf0c2015-10-02 21:01:28229 'edk/system/waiter_test_utils.cc',
230 'edk/system/waiter_test_utils.h',
231 'edk/system/waiter_unittest.cc',
rockot49b69e6b272016-03-02 03:46:37232 'edk/system/watch_unittest.cc',
jam76bcf0c2015-10-02 21:01:28233 ],
234 'conditions': [
235 ['OS=="ios"', {
236 'sources!': [
jam76bcf0c2015-10-02 21:01:28237 'edk/system/multiprocess_message_pipe_unittest.cc',
jam76bcf0c2015-10-02 21:01:28238 ],
239 }],
amistry06815992016-05-05 08:24:56240 ['OS == "android"', {
241 'dependencies': [
242 '../testing/android/native_test.gyp:native_test_native_code',
243 ],
244 }],
jam76bcf0c2015-10-02 21:01:28245 ],
246 },
247 {
248 # GN version: //mojo/edk/system:mojo_message_pipe_perftests
rockotc637caf9b2016-02-10 09:57:08249 'target_name': 'mojo_message_pipe_perftests',
jam76bcf0c2015-10-02 21:01:28250 'type': 'executable',
251 'dependencies': [
252 '../base/base.gyp:base',
253 '../base/base.gyp:test_support_base',
jam76bcf0c2015-10-02 21:01:28254 '../testing/gtest.gyp:gtest',
rockotc637caf9b2016-02-10 09:57:08255 'mojo_edk.gyp:mojo_common_test_support',
256 'mojo_edk.gyp:mojo_run_all_perftests',
257 'mojo_edk.gyp:mojo_system_impl',
rockotb04b89b52016-06-09 03:58:56258 'mojo_public.gyp:mojo_public_system',
jam76bcf0c2015-10-02 21:01:28259 ],
260 'sources': [
261 'edk/system/message_pipe_perftest.cc',
jam76bcf0c2015-10-02 21:01:28262 'edk/system/test_utils.cc',
263 'edk/system/test_utils.h',
264 ],
265 },
yzshenf09848782016-01-12 00:12:08266 # TODO(yzshen): fix the following two targets.
jam76bcf0c2015-10-02 21:01:28267 {
268 # GN version: //mojo/edk/js/test:js_unittests
yzshenba7c43f2015-12-09 17:36:37269 'target_name': 'mojo_js_unittests',
jam76bcf0c2015-10-02 21:01:28270 'type': 'executable',
271 'dependencies': [
272 '../gin/gin.gyp:gin_test',
rockotc637caf9b2016-02-10 09:57:08273 'mojo_edk.gyp:mojo_common_test_support',
274 'mojo_edk.gyp:mojo_run_all_unittests',
275 'mojo_edk.gyp:mojo_js_lib',
rockot6d7be622016-06-15 18:25:19276 'mojo_public_tests.gyp:mojo_public_test_interfaces',
jam76bcf0c2015-10-02 21:01:28277 ],
278 'sources': [
279 'edk/js/handle_unittest.cc',
280 'edk/js/test/run_js_tests.cc',
281 ],
282 },
283 {
284 # GN version: //mojo/edk/js/test:js_integration_tests
yzshenf09848782016-01-12 00:12:08285 'target_name': 'mojo_js_integration_tests',
jam76bcf0c2015-10-02 21:01:28286 'type': 'executable',
287 'dependencies': [
288 '../base/base.gyp:base',
289 '../gin/gin.gyp:gin_test',
rockotc637caf9b2016-02-10 09:57:08290 'mojo_base.gyp:mojo_common_lib',
291 'mojo_edk.gyp:mojo_js_lib',
292 'mojo_edk.gyp:mojo_run_all_unittests',
jam76bcf0c2015-10-02 21:01:28293 'mojo_js_to_cpp_bindings',
rockot6d7be622016-06-15 18:25:19294 'mojo_public_tests.gyp:mojo_public_test_interfaces',
jam76bcf0c2015-10-02 21:01:28295 ],
296 'sources': [
297 'edk/js/test/run_js_integration_tests.cc',
298 'edk/js/tests/js_to_cpp_tests.cc',
299 ],
300 },
rockotc637caf9b2016-02-10 09:57:08301 {
302 'target_name': 'mojo_js_to_cpp_bindings',
303 'type': 'none',
304 'variables': {
305 'mojom_files': [
306 'edk/js/tests/js_to_cpp.mojom',
307 ],
308 },
309 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
310 },
311 ],
312 'conditions': [
313 ['test_isolation_mode != "noop"', {
314 'targets': [
315 {
316 'target_name': 'mojo_public_bindings_unittests_run',
317 'type': 'none',
318 'dependencies': [
319 'mojo_public_bindings_unittests',
320 ],
321 'includes': [
322 '../build/isolate.gypi',
323 ],
324 'sources': [
325 'mojo_public_bindings_unittests.isolate',
326 ],
327 },
328 {
rockotc637caf9b2016-02-10 09:57:08329 'target_name': 'mojo_public_system_unittests_run',
330 'type': 'none',
331 'dependencies': [
332 'mojo_public_system_unittests',
333 ],
334 'includes': [
335 '../build/isolate.gypi',
336 ],
337 'sources': [
338 'mojo_public_system_unittests.isolate',
339 ],
340 },
sammc98ecd4a2016-04-29 01:59:21341 {
342 'target_name': 'mojo_js_unittests_run',
343 'type': 'none',
344 'dependencies': [
345 'mojo_js_unittests',
346 ],
347 'includes': [
348 '../build/isolate.gypi',
349 ],
350 'sources': [
351 'mojo_js_unittests.isolate',
352 ],
353 },
354 {
355 'target_name': 'mojo_js_integration_tests_run',
356 'type': 'none',
357 'dependencies': [
358 'mojo_js_integration_tests',
359 ],
360 'includes': [
361 '../build/isolate.gypi',
362 ],
363 'sources': [
364 'mojo_js_integration_tests.isolate',
365 ],
366 },
367 {
368 'target_name': 'mojo_system_unittests_run',
369 'type': 'none',
370 'dependencies': [
371 'mojo_system_unittests',
372 ],
373 'includes': [
374 '../build/isolate.gypi',
375 ],
376 'sources': [
377 'mojo_system_unittests.isolate',
378 ],
379 },
rockotc637caf9b2016-02-10 09:57:08380 ],
381 }],
amistry06815992016-05-05 08:24:56382 ['OS == "android"', {
383 'targets': [
384 {
385 'target_name': 'mojo_system_unittests_apk',
386 'type': 'none',
387 'dependencies': [
388 'mojo_system_unittests',
389 ],
390 'variables': {
391 'test_suite_name': 'mojo_system_unittests',
392 },
393 'includes': [ '../build/apk_test.gypi' ],
394 },
395 ],
396 }],
jam76bcf0c2015-10-02 21:01:28397 ],
398}