| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 }, | |
| 9 '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. | |
| 19 'mojo_message_pipe_perftests', | |
| 20 'mojo_public_bindings_perftests', | |
| 21 'mojo_public_bindings_unittests', | |
| 22 'mojo_public_system_perftests', | |
| 23 'mojo_public_system_unittests', | |
| 24 'mojo_system_unittests', | |
| 25 'mojo_js_unittests', | |
| 26 'mojo_js_integration_tests', | |
| 27 ], | |
| 28 }, | |
| 29 { | |
| 30 # 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', | |
| 35 'mojo_edk.gyp:mojo_run_all_unittests', | |
| 36 'mojo_public.gyp:mojo_cpp_bindings', | |
| 37 'mojo_public.gyp:mojo_public_bindings_test_utils', | |
| 38 'mojo_public.gyp:mojo_public_test_utils', | |
| 39 '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', | |
| 43 ], | |
| 44 'variables': { | |
| 45 'clang_warning_flags_unset': [ '-Wglobal-constructors' ], | |
| 46 }, | |
| 47 'sources': [ | |
| 48 'public/cpp/bindings/tests/array_common_test.h', | |
| 49 'public/cpp/bindings/tests/array_unittest.cc', | |
| 50 'public/cpp/bindings/tests/associated_interface_unittest.cc', | |
| 51 'public/cpp/bindings/tests/bind_task_runner_unittest.cc', | |
| 52 'public/cpp/bindings/tests/binding_callback_unittest.cc', | |
| 53 'public/cpp/bindings/tests/binding_unittest.cc', | |
| 54 'public/cpp/bindings/tests/buffer_unittest.cc', | |
| 55 'public/cpp/bindings/tests/connector_unittest.cc', | |
| 56 'public/cpp/bindings/tests/constant_unittest.cc', | |
| 57 'public/cpp/bindings/tests/container_test_util.cc', | |
| 58 'public/cpp/bindings/tests/container_test_util.h', | |
| 59 'public/cpp/bindings/tests/data_view_unittest.cc', | |
| 60 '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', | |
| 63 'public/cpp/bindings/tests/map_common_test.h', | |
| 64 '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', | |
| 69 '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', | |
| 73 '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', | |
| 77 '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', | |
| 83 'public/cpp/bindings/tests/stl_converters_unittest.cc', | |
| 84 'public/cpp/bindings/tests/string_unittest.cc', | |
| 85 'public/cpp/bindings/tests/struct_traits_unittest.cc', | |
| 86 'public/cpp/bindings/tests/struct_unittest.cc', | |
| 87 'public/cpp/bindings/tests/struct_with_traits_impl.cc', | |
| 88 'public/cpp/bindings/tests/struct_with_traits_impl.h', | |
| 89 'public/cpp/bindings/tests/struct_with_traits_impl_traits.cc', | |
| 90 'public/cpp/bindings/tests/struct_with_traits_impl_traits.h', | |
| 91 'public/cpp/bindings/tests/sync_method_unittest.cc', | |
| 92 'public/cpp/bindings/tests/type_conversion_unittest.cc', | |
| 93 'public/cpp/bindings/tests/union_unittest.cc', | |
| 94 'public/cpp/bindings/tests/validation_context_unittest.cc', | |
| 95 'public/cpp/bindings/tests/validation_unittest.cc', | |
| 96 'public/cpp/bindings/tests/variant_test_util.h', | |
| 97 ], | |
| 98 'conditions': [ | |
| 99 # 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). | |
| 102 ['OS=="ios"', { | |
| 103 'dependencies!': [ | |
| 104 'mojo_public.gyp:mojo_public_test_interfaces_blink', | |
| 105 ], | |
| 106 'sources!': [ | |
| 107 'public/cpp/bindings/tests/pickle_unittest.cc', | |
| 108 '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', | |
| 112 '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 ], | |
| 118 }, | |
| 119 { | |
| 120 # 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', | |
| 126 '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', | |
| 129 ], | |
| 130 'variables': { | |
| 131 'clang_warning_flags_unset': [ '-Wglobal-constructors' ], | |
| 132 }, | |
| 133 'sources': [ | |
| 134 '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', | |
| 137 'public/cpp/bindings/tests/map_common_test.h', | |
| 138 'public/cpp/bindings/tests/variant_test_util.h', | |
| 139 'public/cpp/bindings/tests/wtf_array_unittest.cc', | |
| 140 'public/cpp/bindings/tests/wtf_map_unittest.cc', | |
| 141 'public/cpp/bindings/tests/wtf_types_unittest.cc', | |
| 142 ], | |
| 143 }, | |
| 144 { | |
| 145 # GN version: //mojo/edk/test:mojo_public_bindings_perftests | |
| 146 'target_name': 'mojo_public_bindings_perftests', | |
| 147 'type': 'executable', | |
| 148 'dependencies': [ | |
| 149 '../base/base.gyp:test_support_base', | |
| 150 '../testing/gtest.gyp:gtest', | |
| 151 'mojo_base.gyp:mojo_common_lib', | |
| 152 'mojo_edk.gyp:mojo_run_all_perftests', | |
| 153 'mojo_public.gyp:mojo_cpp_bindings', | |
| 154 'mojo_public.gyp:mojo_public_bindings_test_utils', | |
| 155 'mojo_public.gyp:mojo_public_test_utils', | |
| 156 'mojo_public_tests.gyp:mojo_public_test_interfaces', | |
| 157 ], | |
| 158 'sources': [ | |
| 159 'public/cpp/bindings/tests/bindings_perftest.cc', | |
| 160 'public/cpp/bindings/tests/e2e_perftest.cc', | |
| 161 ], | |
| 162 }, | |
| 163 { | |
| 164 # 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', | |
| 171 'mojo_public.gyp:mojo_cpp_system', | |
| 172 'mojo_public.gyp:mojo_public_test_utils', | |
| 173 ], | |
| 174 'sources': [ | |
| 175 '<(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', | |
| 180 ], | |
| 181 }, | |
| 182 { | |
| 183 # GN version: //mojo/edk/test:mojo_public_system_perftests | |
| 184 'target_name': 'mojo_public_system_perftests', | |
| 185 'type': 'executable', | |
| 186 'dependencies': [ | |
| 187 '../base/base.gyp:base', | |
| 188 '../testing/gtest.gyp:gtest', | |
| 189 'mojo_edk.gyp:mojo_run_all_perftests', | |
| 190 'mojo_public.gyp:mojo_public_system', | |
| 191 'mojo_public.gyp:mojo_public_test_utils', | |
| 192 ], | |
| 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', | |
| 200 'type': '<(gtest_target_type)', | |
| 201 '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', | |
| 207 'mojo_edk.gyp:mojo_system_ports', | |
| 208 'mojo_public.gyp:mojo_public_system', | |
| 209 ], | |
| 210 'sources': [ | |
| 211 'edk/embedder/embedder_unittest.cc', | |
| 212 'edk/embedder/platform_channel_pair_posix_unittest.cc', | |
| 213 'edk/embedder/platform_shared_buffer_unittest.cc', | |
| 214 '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', | |
| 218 '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', | |
| 222 'edk/system/platform_wrapper_unittest.cc', | |
| 223 'edk/system/ports/ports_unittest.cc', | |
| 224 'edk/system/shared_buffer_dispatcher_unittest.cc', | |
| 225 'edk/system/shared_buffer_unittest.cc', | |
| 226 'edk/system/test_utils.cc', | |
| 227 'edk/system/test_utils.h', | |
| 228 'edk/system/wait_set_dispatcher_unittest.cc', | |
| 229 'edk/system/waiter_test_utils.cc', | |
| 230 'edk/system/waiter_test_utils.h', | |
| 231 'edk/system/waiter_unittest.cc', | |
| 232 'edk/system/watch_unittest.cc', | |
| 233 ], | |
| 234 'conditions': [ | |
| 235 ['OS=="ios"', { | |
| 236 'sources!': [ | |
| 237 'edk/system/multiprocess_message_pipe_unittest.cc', | |
| 238 ], | |
| 239 }], | |
| 240 ['OS == "android"', { | |
| 241 'dependencies': [ | |
| 242 '../testing/android/native_test.gyp:native_test_native_code', | |
| 243 ], | |
| 244 }], | |
| 245 ], | |
| 246 }, | |
| 247 { | |
| 248 # GN version: //mojo/edk/system:mojo_message_pipe_perftests | |
| 249 'target_name': 'mojo_message_pipe_perftests', | |
| 250 'type': 'executable', | |
| 251 'dependencies': [ | |
| 252 '../base/base.gyp:base', | |
| 253 '../base/base.gyp:test_support_base', | |
| 254 '../testing/gtest.gyp:gtest', | |
| 255 'mojo_edk.gyp:mojo_common_test_support', | |
| 256 'mojo_edk.gyp:mojo_run_all_perftests', | |
| 257 'mojo_edk.gyp:mojo_system_impl', | |
| 258 'mojo_public.gyp:mojo_public_system', | |
| 259 ], | |
| 260 'sources': [ | |
| 261 'edk/system/message_pipe_perftest.cc', | |
| 262 'edk/system/test_utils.cc', | |
| 263 'edk/system/test_utils.h', | |
| 264 ], | |
| 265 }, | |
| 266 # TODO(yzshen): fix the following two targets. | |
| 267 { | |
| 268 # GN version: //mojo/edk/js/test:js_unittests | |
| 269 'target_name': 'mojo_js_unittests', | |
| 270 'type': 'executable', | |
| 271 'dependencies': [ | |
| 272 '../gin/gin.gyp:gin_test', | |
| 273 'mojo_edk.gyp:mojo_common_test_support', | |
| 274 'mojo_edk.gyp:mojo_run_all_unittests', | |
| 275 'mojo_edk.gyp:mojo_js_lib', | |
| 276 'mojo_public_tests.gyp:mojo_public_test_interfaces', | |
| 277 ], | |
| 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 | |
| 285 'target_name': 'mojo_js_integration_tests', | |
| 286 'type': 'executable', | |
| 287 'dependencies': [ | |
| 288 '../base/base.gyp:base', | |
| 289 '../gin/gin.gyp:gin_test', | |
| 290 'mojo_base.gyp:mojo_common_lib', | |
| 291 'mojo_edk.gyp:mojo_js_lib', | |
| 292 'mojo_edk.gyp:mojo_run_all_unittests', | |
| 293 'mojo_js_to_cpp_bindings', | |
| 294 'mojo_public_tests.gyp:mojo_public_test_interfaces', | |
| 295 ], | |
| 296 'sources': [ | |
| 297 'edk/js/test/run_js_integration_tests.cc', | |
| 298 'edk/js/tests/js_to_cpp_tests.cc', | |
| 299 ], | |
| 300 }, | |
| 301 { | |
| 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 { | |
| 329 '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 }, | |
| 341 { | |
| 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 }, | |
| 380 ], | |
| 381 }], | |
| 382 ['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 }], | |
| 397 ], | |
| 398 } | |
| OLD | NEW |