OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 '../third_party/mojo/mojo_variables.gypi', | 7 '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 |
18 # to be built. | 18 # to be built. |
19 'mojo_message_pipe_perftests2', | 19 'mojo_message_pipe_perftests', |
20 'mojo_system_unittests2', | 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', |
21 'mojo_js_unittests', | 27 'mojo_js_unittests', |
22 'mojo_js_integration_tests', | 28 'mojo_js_integration_tests', |
23 ], | 29 ], |
24 }, | 30 }, |
25 { | 31 { |
26 # GN version: //mojo/edk/system/ports:mojo_system_ports_unittests | 32 # GN version: //mojo/edk/system/ports:mojo_system_ports_unittests |
27 'target_name': 'mojo_system_ports_unittests', | 33 'target_name': 'mojo_system_ports_unittests', |
28 'type': 'executable', | 34 'type': 'executable', |
29 'dependencies': [ | 35 'dependencies': [ |
30 '../testing/gtest.gyp:gtest', | 36 '../testing/gtest.gyp:gtest', |
31 '../testing/gtest.gyp:gtest_main', | 37 '../testing/gtest.gyp:gtest_main', |
32 'mojo_edk.gyp:mojo_system_impl2', | 38 'mojo_edk.gyp:mojo_system_impl', |
33 ], | 39 ], |
34 'sources': [ | 40 'sources': [ |
35 'edk/system/ports/ports_unittest.cc', | 41 'edk/system/ports/ports_unittest.cc', |
36 ], | 42 ], |
37 } | 43 }, |
38 { | 44 { |
39 # GN version: //mojo/edk/system:mojo_system_unittests | 45 # GN version: //mojo/edk/test:mojo_public_bindings_unittests |
40 'target_name': 'mojo_system_unittests2', | 46 'target_name': 'mojo_public_bindings_unittests', |
| 47 'type': 'executable', |
| 48 'dependencies': [ |
| 49 '../testing/gtest.gyp:gtest', |
| 50 'mojo_base.gyp:mojo_environment_chromium', |
| 51 'mojo_base.gyp:mojo_message_pump_lib', |
| 52 'mojo_edk.gyp:mojo_run_all_unittests', |
| 53 'mojo_public.gyp:mojo_cpp_bindings', |
| 54 'mojo_public.gyp:mojo_public_bindings_test_utils', |
| 55 'mojo_public.gyp:mojo_public_test_associated_interfaces', |
| 56 'mojo_public.gyp:mojo_public_test_interfaces', |
| 57 'mojo_public.gyp:mojo_public_test_interfaces_blink', |
| 58 'mojo_public.gyp:mojo_public_test_interfaces_chromium', |
| 59 'mojo_public.gyp:mojo_public_test_utils', |
| 60 'mojo_public.gyp:mojo_utility', |
| 61 ], |
| 62 'sources': [ |
| 63 'public/cpp/bindings/tests/array_unittest.cc', |
| 64 'public/cpp/bindings/tests/associated_interface_unittest.cc', |
| 65 'public/cpp/bindings/tests/binding_callback_unittest.cc', |
| 66 'public/cpp/bindings/tests/binding_unittest.cc', |
| 67 'public/cpp/bindings/tests/bounds_checker_unittest.cc', |
| 68 'public/cpp/bindings/tests/buffer_unittest.cc', |
| 69 'public/cpp/bindings/tests/callback_unittest.cc', |
| 70 'public/cpp/bindings/tests/connector_unittest.cc', |
| 71 'public/cpp/bindings/tests/constant_unittest.cc', |
| 72 'public/cpp/bindings/tests/container_test_util.cc', |
| 73 'public/cpp/bindings/tests/equals_unittest.cc', |
| 74 'public/cpp/bindings/tests/handle_passing_unittest.cc', |
| 75 'public/cpp/bindings/tests/interface_ptr_unittest.cc', |
| 76 'public/cpp/bindings/tests/map_unittest.cc', |
| 77 'public/cpp/bindings/tests/message_queue.cc', |
| 78 'public/cpp/bindings/tests/message_queue.h', |
| 79 'public/cpp/bindings/tests/multiplex_router_unittest.cc', |
| 80 'public/cpp/bindings/tests/pickle_unittest.cc', |
| 81 'public/cpp/bindings/tests/pickled_struct_blink.cc', |
| 82 'public/cpp/bindings/tests/pickled_struct_blink.h', |
| 83 'public/cpp/bindings/tests/pickled_struct_chromium.cc', |
| 84 'public/cpp/bindings/tests/pickled_struct_chromium.h', |
| 85 'public/cpp/bindings/tests/rect_blink.h', |
| 86 'public/cpp/bindings/tests/rect_chromium.h', |
| 87 'public/cpp/bindings/tests/request_response_unittest.cc', |
| 88 'public/cpp/bindings/tests/router_test_util.cc', |
| 89 'public/cpp/bindings/tests/router_test_util.h', |
| 90 'public/cpp/bindings/tests/router_unittest.cc', |
| 91 'public/cpp/bindings/tests/sample_service_unittest.cc', |
| 92 'public/cpp/bindings/tests/serialization_warning_unittest.cc', |
| 93 'public/cpp/bindings/tests/string_unittest.cc', |
| 94 'public/cpp/bindings/tests/struct_traits_unittest.cc', |
| 95 'public/cpp/bindings/tests/struct_unittest.cc', |
| 96 'public/cpp/bindings/tests/type_conversion_unittest.cc', |
| 97 'public/cpp/bindings/tests/union_unittest.cc', |
| 98 'public/cpp/bindings/tests/validation_unittest.cc', |
| 99 ], |
| 100 }, |
| 101 { |
| 102 # GN version: //mojo/edk/test:mojo_public_bindings_perftests |
| 103 'target_name': 'mojo_public_bindings_perftests', |
| 104 'type': 'executable', |
| 105 'dependencies': [ |
| 106 '../testing/gtest.gyp:gtest', |
| 107 'mojo_base.gyp:mojo_common_lib', |
| 108 'mojo_edk.gyp:mojo_run_all_unittests', |
| 109 'mojo_public.gyp:mojo_cpp_bindings', |
| 110 'mojo_public.gyp:mojo_environment_standalone', |
| 111 'mojo_public.gyp:mojo_public_bindings_test_utils', |
| 112 'mojo_public.gyp:mojo_public_test_interfaces', |
| 113 'mojo_public.gyp:mojo_public_test_utils', |
| 114 'mojo_public.gyp:mojo_utility', |
| 115 ], |
| 116 'sources': [ |
| 117 'public/cpp/bindings/tests/bindings_perftest.cc', |
| 118 ], |
| 119 }, |
| 120 { |
| 121 # GN version: //mojo/edk/test:mojo_public_environment_unittests |
| 122 'target_name': 'mojo_public_environment_unittests', |
| 123 'type': 'executable', |
| 124 'dependencies': [ |
| 125 '../testing/gtest.gyp:gtest', |
| 126 'mojo_edk.gyp:mojo_run_all_unittests', |
| 127 'mojo_public.gyp:mojo_cpp_bindings', |
| 128 'mojo_public.gyp:mojo_environment_standalone', |
| 129 'mojo_public.gyp:mojo_public_test_utils', |
| 130 'mojo_public.gyp:mojo_utility', |
| 131 ], |
| 132 'sources': [ |
| 133 'public/cpp/environment/tests/async_wait_unittest.cc', |
| 134 'public/cpp/environment/tests/async_waiter_unittest.cc', |
| 135 'public/cpp/environment/tests/logger_unittest.cc', |
| 136 'public/cpp/environment/tests/logging_unittest.cc', |
| 137 ], |
| 138 }, |
| 139 { |
| 140 # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests |
| 141 # and //mojo/public/c/system/tests |
| 142 'target_name': 'mojo_public_system_unittests', |
| 143 'type': 'executable', |
| 144 'dependencies': [ |
| 145 '../testing/gtest.gyp:gtest', |
| 146 'mojo_edk.gyp:mojo_run_all_unittests', |
| 147 'mojo_public.gyp:mojo_public_test_utils', |
| 148 ], |
| 149 'sources': [ |
| 150 '<@(mojo_public_system_unittest_sources)', |
| 151 ], |
| 152 }, |
| 153 { |
| 154 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unit
tests |
| 155 'target_name': 'mojo_public_utility_unittests', |
| 156 'type': 'executable', |
| 157 'dependencies': [ |
| 158 '../testing/gtest.gyp:gtest', |
| 159 'mojo_edk.gyp:mojo_run_all_unittests', |
| 160 'mojo_public.gyp:mojo_cpp_bindings', |
| 161 'mojo_public.gyp:mojo_public_test_utils', |
| 162 'mojo_public.gyp:mojo_utility', |
| 163 ], |
| 164 'sources': [ |
| 165 'public/cpp/utility/tests/mutex_unittest.cc', |
| 166 'public/cpp/utility/tests/run_loop_unittest.cc', |
| 167 'public/cpp/utility/tests/thread_unittest.cc', |
| 168 ], |
| 169 'conditions': [ |
| 170 # See crbug.com/342893: |
| 171 ['OS=="win"', { |
| 172 'sources!': [ |
| 173 'public/cpp/utility/tests/mutex_unittest.cc', |
| 174 'public/cpp/utility/tests/thread_unittest.cc', |
| 175 ], |
| 176 }], |
| 177 ], |
| 178 }, |
| 179 { |
| 180 # GN version: //mojo/edk/test:mojo_public_system_perftests |
| 181 'target_name': 'mojo_public_system_perftests', |
41 'type': 'executable', | 182 'type': 'executable', |
42 'dependencies': [ | 183 'dependencies': [ |
43 '../base/base.gyp:base', | 184 '../base/base.gyp:base', |
44 '../testing/gtest.gyp:gtest', | 185 '../testing/gtest.gyp:gtest', |
45 'mojo_edk.gyp:mojo_common_test_support2', | 186 'mojo_edk.gyp:mojo_run_all_perftests', |
46 'mojo_edk.gyp:mojo_system_impl2', | 187 'mojo_public.gyp:mojo_public_test_utils', |
| 188 'mojo_public.gyp:mojo_utility', |
| 189 ], |
| 190 'sources': [ |
| 191 'public/c/system/tests/core_perftest.cc', |
| 192 ], |
| 193 }, |
| 194 { |
| 195 # GN version: //mojo/edk/system:mojo_system_unittests |
| 196 'target_name': 'mojo_system_unittests', |
| 197 'type': 'executable', |
| 198 'dependencies': [ |
| 199 '../base/base.gyp:base', |
| 200 '../testing/gtest.gyp:gtest', |
| 201 'mojo_edk.gyp:mojo_common_test_support', |
| 202 'mojo_edk.gyp:mojo_run_all_unittests', |
| 203 'mojo_edk.gyp:mojo_system_impl', |
47 ], | 204 ], |
48 'sources': [ | 205 'sources': [ |
49 'edk/embedder/embedder_unittest.cc', | 206 'edk/embedder/embedder_unittest.cc', |
50 'edk/embedder/platform_channel_pair_posix_unittest.cc', | 207 'edk/embedder/platform_channel_pair_posix_unittest.cc', |
51 'edk/embedder/simple_platform_shared_buffer_unittest.cc', | 208 'edk/embedder/simple_platform_shared_buffer_unittest.cc', |
52 'edk/system/awakable_list_unittest.cc', | 209 'edk/system/awakable_list_unittest.cc', |
53 'edk/system/core_test_base.cc', | 210 'edk/system/core_test_base.cc', |
54 'edk/system/core_test_base.h', | 211 'edk/system/core_test_base.h', |
55 'edk/system/core_unittest.cc', | 212 'edk/system/core_unittest.cc', |
56 'edk/system/data_pipe_unittest.cc', | |
57 'edk/system/message_pipe_test_utils.cc', | |
58 'edk/system/message_pipe_test_utils.h', | |
59 'edk/system/message_pipe_unittest.cc', | 213 'edk/system/message_pipe_unittest.cc', |
60 'edk/system/multiprocess_message_pipe_unittest.cc', | 214 'edk/system/multiprocess_message_pipe_unittest.cc', |
61 'edk/system/options_validation_unittest.cc', | 215 'edk/system/options_validation_unittest.cc', |
62 'edk/system/platform_handle_dispatcher_unittest.cc', | 216 'edk/system/platform_handle_dispatcher_unittest.cc', |
63 'edk/system/run_all_unittests.cc', | |
64 'edk/system/shared_buffer_dispatcher_unittest.cc', | 217 'edk/system/shared_buffer_dispatcher_unittest.cc', |
65 'edk/system/shared_buffer_unittest.cc', | 218 'edk/system/shared_buffer_unittest.cc', |
66 'edk/system/test_utils.cc', | 219 'edk/system/test_utils.cc', |
67 'edk/system/test_utils.h', | 220 'edk/system/test_utils.h', |
68 'edk/system/wait_set_dispatcher_unittest.cc', | 221 'edk/system/wait_set_dispatcher_unittest.cc', |
69 'edk/system/waiter_test_utils.cc', | 222 'edk/system/waiter_test_utils.cc', |
70 'edk/system/waiter_test_utils.h', | 223 'edk/system/waiter_test_utils.h', |
71 'edk/system/waiter_unittest.cc', | 224 'edk/system/waiter_unittest.cc', |
72 'edk/test/multiprocess_test_helper_unittest.cc', | |
73 ], | 225 ], |
74 'conditions': [ | 226 'conditions': [ |
75 ['OS=="ios"', { | 227 ['OS=="ios"', { |
76 'sources!': [ | 228 'sources!': [ |
77 'edk/embedder/embedder_unittest.cc', | |
78 'edk/system/multiprocess_message_pipe_unittest.cc', | 229 'edk/system/multiprocess_message_pipe_unittest.cc', |
79 'edk/system/shared_buffer_unittest.cc', | |
80 ], | 230 ], |
81 }], | 231 }], |
82 ], | 232 ], |
83 }, | 233 }, |
84 { | 234 { |
85 # GN version: //mojo/edk/system:mojo_message_pipe_perftests | 235 # GN version: //mojo/edk/system:mojo_message_pipe_perftests |
86 'target_name': 'mojo_message_pipe_perftests2', | 236 'target_name': 'mojo_message_pipe_perftests', |
87 'type': 'executable', | 237 'type': 'executable', |
88 'dependencies': [ | 238 'dependencies': [ |
89 '../base/base.gyp:base', | 239 '../base/base.gyp:base', |
90 '../base/base.gyp:test_support_base', | 240 '../base/base.gyp:test_support_base', |
91 '../base/base.gyp:test_support_perf', | |
92 '../testing/gtest.gyp:gtest', | 241 '../testing/gtest.gyp:gtest', |
93 'mojo_edk.gyp:mojo_common_test_support2', | 242 'mojo_edk.gyp:mojo_common_test_support', |
94 'mojo_edk.gyp:mojo_system_impl2', | 243 'mojo_edk.gyp:mojo_run_all_perftests', |
| 244 'mojo_edk.gyp:mojo_system_impl', |
95 ], | 245 ], |
96 'sources': [ | 246 'sources': [ |
97 'edk/system/message_pipe_perftest.cc', | 247 'edk/system/message_pipe_perftest.cc', |
98 'edk/system/message_pipe_test_utils.cc', | |
99 'edk/system/message_pipe_test_utils.h', | |
100 'edk/system/test_utils.cc', | 248 'edk/system/test_utils.cc', |
101 'edk/system/test_utils.h', | 249 'edk/system/test_utils.h', |
102 ], | 250 ], |
103 }, | 251 }, |
104 # TODO(yzshen): fix the following two targets. | 252 # TODO(yzshen): fix the following two targets. |
105 { | 253 { |
106 # GN version: //mojo/edk/js/test:js_unittests | 254 # GN version: //mojo/edk/js/test:js_unittests |
107 'target_name': 'mojo_js_unittests', | 255 'target_name': 'mojo_js_unittests', |
108 'type': 'executable', | 256 'type': 'executable', |
109 'dependencies': [ | 257 'dependencies': [ |
110 '../gin/gin.gyp:gin_test', | 258 '../gin/gin.gyp:gin_test', |
111 '../third_party/mojo/mojo_public.gyp:mojo_environment_standalone', | 259 'mojo_edk.gyp:mojo_common_test_support', |
112 '../third_party/mojo/mojo_public.gyp:mojo_public_test_interfaces', | 260 'mojo_edk.gyp:mojo_run_all_unittests', |
113 '../third_party/mojo/mojo_public.gyp:mojo_utility', | 261 'mojo_edk.gyp:mojo_js_lib', |
114 'mojo_edk.gyp:mojo_common_test_support2', | 262 'mojo_public.gyp:mojo_environment_standalone', |
115 'mojo_edk.gyp:mojo_run_all_unittests2', | 263 'mojo_public.gyp:mojo_public_test_interfaces', |
116 'mojo_edk.gyp:mojo_js_lib2', | 264 'mojo_public.gyp:mojo_utility', |
117 ], | 265 ], |
118 'sources': [ | 266 'sources': [ |
119 'edk/js/handle_unittest.cc', | 267 'edk/js/handle_unittest.cc', |
120 'edk/js/test/run_js_tests.cc', | 268 'edk/js/test/run_js_tests.cc', |
121 ], | 269 ], |
122 }, | 270 }, |
123 { | 271 { |
124 # GN version: //mojo/edk/js/test:js_integration_tests | 272 # GN version: //mojo/edk/js/test:js_integration_tests |
125 'target_name': 'mojo_js_integration_tests', | 273 'target_name': 'mojo_js_integration_tests', |
126 'type': 'executable', | 274 'type': 'executable', |
127 'dependencies': [ | 275 'dependencies': [ |
128 '../base/base.gyp:base', | 276 '../base/base.gyp:base', |
129 '../gin/gin.gyp:gin_test', | 277 '../gin/gin.gyp:gin_test', |
130 '../third_party/mojo/mojo_public.gyp:mojo_environment_standalone', | 278 'mojo_base.gyp:mojo_common_lib', |
131 '../third_party/mojo/mojo_public.gyp:mojo_public_test_interfaces', | 279 'mojo_edk.gyp:mojo_js_lib', |
132 '../third_party/mojo/mojo_public.gyp:mojo_utility', | 280 'mojo_edk.gyp:mojo_run_all_unittests', |
133 'mojo_edk.gyp:mojo_js_lib2', | |
134 'mojo_edk.gyp:mojo_run_all_unittests2', | |
135 'mojo_js_to_cpp_bindings', | 281 'mojo_js_to_cpp_bindings', |
| 282 'mojo_public.gyp:mojo_environment_standalone', |
| 283 'mojo_public.gyp:mojo_public_test_interfaces', |
| 284 'mojo_public.gyp:mojo_utility', |
136 ], | 285 ], |
137 'sources': [ | 286 'sources': [ |
138 'edk/js/test/run_js_integration_tests.cc', | 287 'edk/js/test/run_js_integration_tests.cc', |
139 'edk/js/tests/js_to_cpp_tests.cc', | 288 'edk/js/tests/js_to_cpp_tests.cc', |
140 ], | 289 ], |
141 }, | 290 }, |
| 291 { |
| 292 'target_name': 'mojo_js_to_cpp_bindings', |
| 293 'type': 'none', |
| 294 'variables': { |
| 295 'mojom_files': [ |
| 296 'edk/js/tests/js_to_cpp.mojom', |
| 297 ], |
| 298 }, |
| 299 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], |
| 300 }, |
| 301 ], |
| 302 'conditions': [ |
| 303 ['test_isolation_mode != "noop"', { |
| 304 'targets': [ |
| 305 { |
| 306 'target_name': 'mojo_public_bindings_unittests_run', |
| 307 'type': 'none', |
| 308 'dependencies': [ |
| 309 'mojo_public_bindings_unittests', |
| 310 ], |
| 311 'includes': [ |
| 312 '../build/isolate.gypi', |
| 313 ], |
| 314 'sources': [ |
| 315 'mojo_public_bindings_unittests.isolate', |
| 316 ], |
| 317 }, |
| 318 { |
| 319 'target_name': 'mojo_public_environment_unittests_run', |
| 320 'type': 'none', |
| 321 'dependencies': [ |
| 322 'mojo_public_environment_unittests', |
| 323 ], |
| 324 'includes': [ |
| 325 '../build/isolate.gypi', |
| 326 ], |
| 327 'sources': [ |
| 328 'mojo_public_environment_unittests.isolate', |
| 329 ], |
| 330 }, |
| 331 { |
| 332 'target_name': 'mojo_public_system_unittests_run', |
| 333 'type': 'none', |
| 334 'dependencies': [ |
| 335 'mojo_public_system_unittests', |
| 336 ], |
| 337 'includes': [ |
| 338 '../build/isolate.gypi', |
| 339 ], |
| 340 'sources': [ |
| 341 'mojo_public_system_unittests.isolate', |
| 342 ], |
| 343 }, |
| 344 { |
| 345 'target_name': 'mojo_public_utility_unittests_run', |
| 346 'type': 'none', |
| 347 'dependencies': [ |
| 348 'mojo_public_utility_unittests', |
| 349 ], |
| 350 'includes': [ |
| 351 '../build/isolate.gypi', |
| 352 ], |
| 353 'sources': [ |
| 354 'mojo_public_utility_unittests.isolate', |
| 355 ], |
| 356 }, |
| 357 ], |
| 358 }], |
142 ], | 359 ], |
143 } | 360 } |
OLD | NEW |