| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 'includes': [ |
| 7 'mojo_variables.gypi', | 7 '../../mojo/mojo_variables.gypi', |
| 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 29 ], | 29 ], |
| 30 }, | 30 }, |
| 31 # TODO(vtl): Reorganize the mojo_public_*_unittests. | 31 # TODO(vtl): Reorganize the mojo_public_*_unittests. |
| 32 { | 32 { |
| 33 # GN version: //mojo/edk/test:mojo_public_bindings_unittests | 33 # GN version: //mojo/edk/test:mojo_public_bindings_unittests |
| 34 'target_name': 'mojo_public_bindings_unittests', | 34 'target_name': 'mojo_public_bindings_unittests', |
| 35 'type': 'executable', | 35 'type': 'executable', |
| 36 'dependencies': [ | 36 'dependencies': [ |
| 37 '../../mojo/mojo_base.gyp:mojo_environment_chromium', | 37 '../../mojo/mojo_base.gyp:mojo_environment_chromium', |
| 38 '../../mojo/mojo_base.gyp:mojo_message_pump_lib', | 38 '../../mojo/mojo_base.gyp:mojo_message_pump_lib', |
| 39 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 40 '../../mojo/mojo_public.gyp:mojo_public_bindings_test_utils', |
| 41 '../../mojo/mojo_public.gyp:mojo_public_test_interfaces', |
| 42 '../../mojo/mojo_public.gyp:mojo_public_test_utils', |
| 43 '../../mojo/mojo_public.gyp:mojo_utility', |
| 39 '../../testing/gtest.gyp:gtest', | 44 '../../testing/gtest.gyp:gtest', |
| 40 'mojo_edk.gyp:mojo_run_all_unittests', | 45 'mojo_edk.gyp:mojo_run_all_unittests', |
| 41 'mojo_public.gyp:mojo_cpp_bindings', | |
| 42 'mojo_public.gyp:mojo_public_bindings_test_utils', | |
| 43 'mojo_public.gyp:mojo_public_test_interfaces', | |
| 44 'mojo_public.gyp:mojo_public_test_utils', | |
| 45 'mojo_public.gyp:mojo_utility', | |
| 46 ], | 46 ], |
| 47 'sources': [ | 47 'sources': [ |
| 48 'src/mojo/public/cpp/bindings/tests/array_unittest.cc', | 48 '../../mojo/public/cpp/bindings/tests/array_unittest.cc', |
| 49 'src/mojo/public/cpp/bindings/tests/bounds_checker_unittest.cc', | 49 '../../mojo/public/cpp/bindings/tests/bounds_checker_unittest.cc', |
| 50 'src/mojo/public/cpp/bindings/tests/buffer_unittest.cc', | 50 '../../mojo/public/cpp/bindings/tests/buffer_unittest.cc', |
| 51 'src/mojo/public/cpp/bindings/tests/connector_unittest.cc', | 51 '../../mojo/public/cpp/bindings/tests/connector_unittest.cc', |
| 52 'src/mojo/public/cpp/bindings/tests/container_test_util.cc', | 52 '../../mojo/public/cpp/bindings/tests/container_test_util.cc', |
| 53 'src/mojo/public/cpp/bindings/tests/equals_unittest.cc', | 53 '../../mojo/public/cpp/bindings/tests/equals_unittest.cc', |
| 54 'src/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc', | 54 '../../mojo/public/cpp/bindings/tests/handle_passing_unittest.cc', |
| 55 'src/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc', | 55 '../../mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc', |
| 56 'src/mojo/public/cpp/bindings/tests/map_unittest.cc', | 56 '../../mojo/public/cpp/bindings/tests/map_unittest.cc', |
| 57 'src/mojo/public/cpp/bindings/tests/message_queue.cc', | 57 '../../mojo/public/cpp/bindings/tests/message_queue.cc', |
| 58 'src/mojo/public/cpp/bindings/tests/message_queue.h', | 58 '../../mojo/public/cpp/bindings/tests/message_queue.h', |
| 59 'src/mojo/public/cpp/bindings/tests/request_response_unittest.cc', | 59 '../../mojo/public/cpp/bindings/tests/request_response_unittest.cc', |
| 60 'src/mojo/public/cpp/bindings/tests/router_unittest.cc', | 60 '../../mojo/public/cpp/bindings/tests/router_unittest.cc', |
| 61 'src/mojo/public/cpp/bindings/tests/sample_service_unittest.cc', | 61 '../../mojo/public/cpp/bindings/tests/sample_service_unittest.cc', |
| 62 'src/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc', | 62 '../../mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc'
, |
| 63 'src/mojo/public/cpp/bindings/tests/string_unittest.cc', | 63 '../../mojo/public/cpp/bindings/tests/string_unittest.cc', |
| 64 'src/mojo/public/cpp/bindings/tests/struct_unittest.cc', | 64 '../../mojo/public/cpp/bindings/tests/struct_unittest.cc', |
| 65 'src/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc', | 65 '../../mojo/public/cpp/bindings/tests/type_conversion_unittest.cc', |
| 66 'src/mojo/public/cpp/bindings/tests/validation_unittest.cc', | 66 '../../mojo/public/cpp/bindings/tests/validation_unittest.cc', |
| 67 ], | 67 ], |
| 68 }, | 68 }, |
| 69 { | 69 { |
| 70 # GN version: //mojo/edk/test:mojo_public_bindings_perftests | 70 # GN version: //mojo/edk/test:mojo_public_bindings_perftests |
| 71 'target_name': 'mojo_public_bindings_perftests', | 71 'target_name': 'mojo_public_bindings_perftests', |
| 72 'type': 'executable', | 72 'type': 'executable', |
| 73 'dependencies': [ | 73 'dependencies': [ |
| 74 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 75 '../../mojo/mojo_public.gyp:mojo_environment_standalone', |
| 76 '../../mojo/mojo_public.gyp:mojo_public_bindings_test_utils', |
| 77 '../../mojo/mojo_public.gyp:mojo_public_test_interfaces', |
| 78 '../../mojo/mojo_public.gyp:mojo_public_test_utils', |
| 79 '../../mojo/mojo_public.gyp:mojo_utility', |
| 74 '../../testing/gtest.gyp:gtest', | 80 '../../testing/gtest.gyp:gtest', |
| 75 'mojo_edk.gyp:mojo_run_all_unittests', | 81 'mojo_edk.gyp:mojo_run_all_unittests', |
| 76 'mojo_public.gyp:mojo_cpp_bindings', | |
| 77 'mojo_public.gyp:mojo_environment_standalone', | |
| 78 'mojo_public.gyp:mojo_public_bindings_test_utils', | |
| 79 'mojo_public.gyp:mojo_public_test_interfaces', | |
| 80 'mojo_public.gyp:mojo_public_test_utils', | |
| 81 'mojo_public.gyp:mojo_utility', | |
| 82 ], | 82 ], |
| 83 'sources': [ | 83 'sources': [ |
| 84 'src/mojo/public/cpp/bindings/tests/bindings_perftest.cc', | 84 '../../mojo/public/cpp/bindings/tests/bindings_perftest.cc', |
| 85 ], | 85 ], |
| 86 }, | 86 }, |
| 87 { | 87 { |
| 88 # GN version: //mojo/edk/test:mojo_public_environment_unittests | 88 # GN version: //mojo/edk/test:mojo_public_environment_unittests |
| 89 'target_name': 'mojo_public_environment_unittests', | 89 'target_name': 'mojo_public_environment_unittests', |
| 90 'type': 'executable', | 90 'type': 'executable', |
| 91 'dependencies': [ | 91 'dependencies': [ |
| 92 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 93 '../../mojo/mojo_public.gyp:mojo_environment_standalone', |
| 94 '../../mojo/mojo_public.gyp:mojo_public_test_utils', |
| 95 '../../mojo/mojo_public.gyp:mojo_utility', |
| 92 '../../testing/gtest.gyp:gtest', | 96 '../../testing/gtest.gyp:gtest', |
| 93 'mojo_edk.gyp:mojo_run_all_unittests', | 97 'mojo_edk.gyp:mojo_run_all_unittests', |
| 94 'mojo_public.gyp:mojo_cpp_bindings', | |
| 95 'mojo_public.gyp:mojo_environment_standalone', | |
| 96 'mojo_public.gyp:mojo_public_test_utils', | |
| 97 'mojo_public.gyp:mojo_utility', | |
| 98 ], | 98 ], |
| 99 'include_dirs': [ '../..' ], | 99 'include_dirs': [ '../..' ], |
| 100 'sources': [ | 100 'sources': [ |
| 101 'src/mojo/public/cpp/environment/tests/async_wait_unittest.cc', | 101 '../../mojo/public/cpp/environment/tests/async_wait_unittest.cc', |
| 102 'src/mojo/public/cpp/environment/tests/async_waiter_unittest.cc', | 102 '../../mojo/public/cpp/environment/tests/async_waiter_unittest.cc', |
| 103 'src/mojo/public/cpp/environment/tests/logger_unittest.cc', | 103 '../../mojo/public/cpp/environment/tests/logger_unittest.cc', |
| 104 'src/mojo/public/cpp/environment/tests/logging_unittest.cc', | 104 '../../mojo/public/cpp/environment/tests/logging_unittest.cc', |
| 105 ], | 105 ], |
| 106 }, | 106 }, |
| 107 { | 107 { |
| 108 # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests | 108 # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests |
| 109 # and //mojo/public/c/system/tests | 109 # and //mojo/public/c/system/tests |
| 110 'target_name': 'mojo_public_system_unittests', | 110 'target_name': 'mojo_public_system_unittests', |
| 111 'type': 'executable', | 111 'type': 'executable', |
| 112 'dependencies': [ | 112 'dependencies': [ |
| 113 '../../mojo/mojo_public.gyp:mojo_public_test_utils', |
| 113 '../../testing/gtest.gyp:gtest', | 114 '../../testing/gtest.gyp:gtest', |
| 114 'mojo_edk.gyp:mojo_run_all_unittests', | 115 'mojo_edk.gyp:mojo_run_all_unittests', |
| 115 'mojo_public.gyp:mojo_public_test_utils', | |
| 116 ], | 116 ], |
| 117 'include_dirs': [ '../..' ], | 117 'include_dirs': [ '../..' ], |
| 118 'sources': [ | 118 'sources': [ |
| 119 '<@(mojo_public_system_unittest_sources)', | 119 '<@(mojo_public_system_unittest_sources)', |
| 120 ], | 120 ], |
| 121 }, | 121 }, |
| 122 { | 122 { |
| 123 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unit
tests | 123 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unit
tests |
| 124 'target_name': 'mojo_public_utility_unittests', | 124 'target_name': 'mojo_public_utility_unittests', |
| 125 'type': 'executable', | 125 'type': 'executable', |
| 126 'dependencies': [ | 126 'dependencies': [ |
| 127 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 128 '../../mojo/mojo_public.gyp:mojo_public_test_utils', |
| 129 '../../mojo/mojo_public.gyp:mojo_utility', |
| 127 '../../testing/gtest.gyp:gtest', | 130 '../../testing/gtest.gyp:gtest', |
| 128 'mojo_edk.gyp:mojo_run_all_unittests', | 131 'mojo_edk.gyp:mojo_run_all_unittests', |
| 129 'mojo_public.gyp:mojo_cpp_bindings', | |
| 130 'mojo_public.gyp:mojo_public_test_utils', | |
| 131 'mojo_public.gyp:mojo_utility', | |
| 132 ], | 132 ], |
| 133 'include_dirs': [ '../..' ], | 133 'include_dirs': [ '../..' ], |
| 134 'sources': [ | 134 'sources': [ |
| 135 'src/mojo/public/cpp/utility/tests/mutex_unittest.cc', | 135 '../../mojo/public/cpp/utility/tests/mutex_unittest.cc', |
| 136 'src/mojo/public/cpp/utility/tests/run_loop_unittest.cc', | 136 '../../mojo/public/cpp/utility/tests/run_loop_unittest.cc', |
| 137 'src/mojo/public/cpp/utility/tests/thread_unittest.cc', | 137 '../../mojo/public/cpp/utility/tests/thread_unittest.cc', |
| 138 ], | 138 ], |
| 139 'conditions': [ | 139 'conditions': [ |
| 140 # See crbug.com/342893: | 140 # See crbug.com/342893: |
| 141 ['OS=="win"', { | 141 ['OS=="win"', { |
| 142 'sources!': [ | 142 'sources!': [ |
| 143 'src/mojo/public/cpp/utility/tests/mutex_unittest.cc', | 143 '../../mojo/public/cpp/utility/tests/mutex_unittest.cc', |
| 144 'src/mojo/public/cpp/utility/tests/thread_unittest.cc', | 144 '../../mojo/public/cpp/utility/tests/thread_unittest.cc', |
| 145 ], | 145 ], |
| 146 }], | 146 }], |
| 147 ], | 147 ], |
| 148 }, | 148 }, |
| 149 { | 149 { |
| 150 # GN version: //mojo/edk/test:mojo_public_system_perftests | 150 # GN version: //mojo/edk/test:mojo_public_system_perftests |
| 151 'target_name': 'mojo_public_system_perftests', | 151 'target_name': 'mojo_public_system_perftests', |
| 152 'type': 'executable', | 152 'type': 'executable', |
| 153 'dependencies': [ | 153 'dependencies': [ |
| 154 '../../base/base.gyp:base', | 154 '../../base/base.gyp:base', |
| 155 '../../mojo/mojo_public.gyp:mojo_public_test_utils', |
| 156 '../../mojo/mojo_public.gyp:mojo_utility', |
| 155 '../../testing/gtest.gyp:gtest', | 157 '../../testing/gtest.gyp:gtest', |
| 156 'mojo_edk.gyp:mojo_run_all_perftests', | 158 'mojo_edk.gyp:mojo_run_all_perftests', |
| 157 'mojo_public.gyp:mojo_public_test_utils', | |
| 158 'mojo_public.gyp:mojo_utility', | |
| 159 ], | 159 ], |
| 160 'sources': [ | 160 'sources': [ |
| 161 'src/mojo/public/c/system/tests/core_perftest.cc', | 161 '../../mojo/public/c/system/tests/core_perftest.cc', |
| 162 ], | 162 ], |
| 163 }, | 163 }, |
| 164 { | 164 { |
| 165 # GN version: //mojo/edk/system:mojo_system_unittests | 165 # GN version: //mojo/edk/system:mojo_system_unittests |
| 166 'target_name': 'mojo_system_unittests', | 166 'target_name': 'mojo_system_unittests', |
| 167 'type': 'executable', | 167 'type': 'executable', |
| 168 'dependencies': [ | 168 'dependencies': [ |
| 169 '../../base/base.gyp:base', | 169 '../../base/base.gyp:base', |
| 170 '../../testing/gtest.gyp:gtest', | 170 '../../testing/gtest.gyp:gtest', |
| 171 'mojo_edk.gyp:mojo_common_test_support', | 171 'mojo_edk.gyp:mojo_common_test_support', |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 'src/mojo/edk/system/test_utils.cc', | 249 'src/mojo/edk/system/test_utils.cc', |
| 250 'src/mojo/edk/system/test_utils.h', | 250 'src/mojo/edk/system/test_utils.h', |
| 251 ], | 251 ], |
| 252 }, | 252 }, |
| 253 { | 253 { |
| 254 # GN version: //mojo/edk/js/test:js_unittests | 254 # GN version: //mojo/edk/js/test:js_unittests |
| 255 'target_name': 'mojo_js_unittests', | 255 'target_name': 'mojo_js_unittests', |
| 256 'type': 'executable', | 256 'type': 'executable', |
| 257 'dependencies': [ | 257 'dependencies': [ |
| 258 '../../gin/gin.gyp:gin_test', | 258 '../../gin/gin.gyp:gin_test', |
| 259 '../../mojo/mojo_public.gyp:mojo_environment_standalone', |
| 260 '../../mojo/mojo_public.gyp:mojo_public_test_interfaces', |
| 261 '../../mojo/mojo_public.gyp:mojo_utility', |
| 259 'mojo_edk.gyp:mojo_common_test_support', | 262 'mojo_edk.gyp:mojo_common_test_support', |
| 260 'mojo_edk.gyp:mojo_run_all_unittests', | 263 'mojo_edk.gyp:mojo_run_all_unittests', |
| 261 'mojo_edk.gyp:mojo_js_lib', | 264 'mojo_edk.gyp:mojo_js_lib', |
| 262 'mojo_public.gyp:mojo_environment_standalone', | |
| 263 'mojo_public.gyp:mojo_public_test_interfaces', | |
| 264 'mojo_public.gyp:mojo_utility', | |
| 265 ], | 265 ], |
| 266 'sources': [ | 266 'sources': [ |
| 267 'src/mojo/edk/js/handle_unittest.cc', | 267 'src/mojo/edk/js/handle_unittest.cc', |
| 268 'src/mojo/edk/js/test/run_js_tests.cc', | 268 'src/mojo/edk/js/test/run_js_tests.cc', |
| 269 ], | 269 ], |
| 270 }, | 270 }, |
| 271 { | 271 { |
| 272 # GN version: //mojo/edk/js/test:js_integration_tests | 272 # GN version: //mojo/edk/js/test:js_integration_tests |
| 273 'target_name': 'mojo_js_integration_tests', | 273 'target_name': 'mojo_js_integration_tests', |
| 274 'type': 'executable', | 274 'type': 'executable', |
| 275 'dependencies': [ | 275 'dependencies': [ |
| 276 '../../base/base.gyp:base', | 276 '../../base/base.gyp:base', |
| 277 '../../gin/gin.gyp:gin_test', | 277 '../../gin/gin.gyp:gin_test', |
| 278 'mojo_public.gyp:mojo_environment_standalone', | 278 '../../mojo/mojo_public.gyp:mojo_environment_standalone', |
| 279 'mojo_public.gyp:mojo_public_test_interfaces', | 279 '../../mojo/mojo_public.gyp:mojo_public_test_interfaces', |
| 280 'mojo_public.gyp:mojo_utility', | 280 '../../mojo/mojo_public.gyp:mojo_utility', |
| 281 'mojo_edk.gyp:mojo_js_lib', | 281 'mojo_edk.gyp:mojo_js_lib', |
| 282 'mojo_edk.gyp:mojo_run_all_unittests', | 282 'mojo_edk.gyp:mojo_run_all_unittests', |
| 283 'mojo_js_to_cpp_bindings', | 283 'mojo_js_to_cpp_bindings', |
| 284 ], | 284 ], |
| 285 'sources': [ | 285 'sources': [ |
| 286 'src/mojo/edk/js/test/run_js_integration_tests.cc', | 286 'src/mojo/edk/js/test/run_js_integration_tests.cc', |
| 287 'src/mojo/edk/js/tests/js_to_cpp_tests.cc', | 287 'src/mojo/edk/js/tests/js_to_cpp_tests.cc', |
| 288 ], | 288 ], |
| 289 }, | 289 }, |
| 290 { | 290 { |
| 291 'target_name': 'mojo_js_to_cpp_bindings', | 291 'target_name': 'mojo_js_to_cpp_bindings', |
| 292 'type': 'none', | 292 'type': 'none', |
| 293 'variables': { | 293 'variables': { |
| 294 'mojom_files': [ | 294 'mojom_files': [ |
| 295 'src/mojo/edk/js/tests/js_to_cpp.mojom', | 295 'src/mojo/edk/js/tests/js_to_cpp.mojom', |
| 296 ], | 296 ], |
| 297 }, | 297 }, |
| 298 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], | 298 'includes': [ '../../mojo/mojom_bindings_generator_explicit.gypi' ], |
| 299 }, | 299 }, |
| 300 ], | 300 ], |
| 301 'conditions': [ | 301 'conditions': [ |
| 302 ['test_isolation_mode != "noop"', { | 302 ['test_isolation_mode != "noop"', { |
| 303 'targets': [ | 303 'targets': [ |
| 304 { | 304 { |
| 305 'target_name': 'mojo_public_bindings_unittests_run', | 305 'target_name': 'mojo_public_bindings_unittests_run', |
| 306 'type': 'none', | 306 'type': 'none', |
| 307 'dependencies': [ | 307 'dependencies': [ |
| 308 'mojo_public_bindings_unittests', | 308 'mojo_public_bindings_unittests', |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 '../../build/isolate.gypi', | 350 '../../build/isolate.gypi', |
| 351 ], | 351 ], |
| 352 'sources': [ | 352 'sources': [ |
| 353 'mojo_public_utility_unittests.isolate', | 353 'mojo_public_utility_unittests.isolate', |
| 354 ], | 354 ], |
| 355 }, | 355 }, |
| 356 ], | 356 ], |
| 357 }], | 357 }], |
| 358 ], | 358 ], |
| 359 } | 359 } |
| OLD | NEW |