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_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_perftests', | 19 'mojo_message_pipe_perftests_old', |
20 'mojo_public_bindings_perftests', | 20 'mojo_public_bindings_perftests', |
21 'mojo_public_bindings_unittests', | 21 'mojo_public_bindings_unittests', |
22 'mojo_public_environment_unittests', | 22 'mojo_public_environment_unittests', |
23 'mojo_public_system_perftests', | 23 'mojo_public_system_perftests', |
24 'mojo_public_system_unittests', | 24 'mojo_public_system_unittests', |
25 'mojo_public_utility_unittests', | 25 'mojo_public_utility_unittests', |
26 'mojo_system_unittests', | 26 'mojo_system_unittests_old', |
27 ], | 27 ], |
28 }, | 28 }, |
29 # TODO(vtl): Reorganize the mojo_public_*_unittests. | 29 # TODO(vtl): Reorganize the mojo_public_*_unittests. |
30 { | 30 { |
31 # GN version: //mojo/edk/test:mojo_public_bindings_unittests | 31 # GN version: //mojo/edk/test:mojo_public_bindings_unittests |
32 'target_name': 'mojo_public_bindings_unittests', | 32 'target_name': 'mojo_public_bindings_unittests', |
33 'type': 'executable', | 33 'type': 'executable', |
34 'dependencies': [ | 34 'dependencies': [ |
35 '../../mojo/mojo_base.gyp:mojo_environment_chromium', | 35 '../../mojo/mojo_base.gyp:mojo_environment_chromium', |
36 '../../mojo/mojo_base.gyp:mojo_message_pump_lib', | 36 '../../mojo/mojo_base.gyp:mojo_message_pump_lib', |
| 37 '../../mojo/mojo_edk.gyp:mojo_run_all_unittests', |
37 '../../testing/gtest.gyp:gtest', | 38 '../../testing/gtest.gyp:gtest', |
38 'mojo_edk.gyp:mojo_run_all_unittests', | |
39 'mojo_public.gyp:mojo_cpp_bindings', | 39 'mojo_public.gyp:mojo_cpp_bindings', |
40 'mojo_public.gyp:mojo_public_bindings_test_utils', | 40 'mojo_public.gyp:mojo_public_bindings_test_utils', |
41 'mojo_public.gyp:mojo_public_test_associated_interfaces', | 41 'mojo_public.gyp:mojo_public_test_associated_interfaces', |
42 'mojo_public.gyp:mojo_public_test_interfaces', | 42 'mojo_public.gyp:mojo_public_test_interfaces', |
43 'mojo_public.gyp:mojo_public_test_interfaces_blink', | 43 'mojo_public.gyp:mojo_public_test_interfaces_blink', |
44 'mojo_public.gyp:mojo_public_test_interfaces_chromium', | 44 'mojo_public.gyp:mojo_public_test_interfaces_chromium', |
45 'mojo_public.gyp:mojo_public_test_utils', | 45 'mojo_public.gyp:mojo_public_test_utils', |
46 'mojo_public.gyp:mojo_utility', | 46 'mojo_public.gyp:mojo_utility', |
47 ], | 47 ], |
48 'sources': [ | 48 'sources': [ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 '../../mojo/public/cpp/bindings/tests/union_unittest.cc', | 83 '../../mojo/public/cpp/bindings/tests/union_unittest.cc', |
84 '../../mojo/public/cpp/bindings/tests/validation_unittest.cc', | 84 '../../mojo/public/cpp/bindings/tests/validation_unittest.cc', |
85 ], | 85 ], |
86 }, | 86 }, |
87 { | 87 { |
88 # GN version: //mojo/edk/test:mojo_public_bindings_perftests | 88 # GN version: //mojo/edk/test:mojo_public_bindings_perftests |
89 'target_name': 'mojo_public_bindings_perftests', | 89 'target_name': 'mojo_public_bindings_perftests', |
90 'type': 'executable', | 90 'type': 'executable', |
91 'dependencies': [ | 91 'dependencies': [ |
92 '../../mojo/mojo_base.gyp:mojo_common_lib', | 92 '../../mojo/mojo_base.gyp:mojo_common_lib', |
| 93 '../../mojo/mojo_edk.gyp:mojo_run_all_unittests', |
93 '../../testing/gtest.gyp:gtest', | 94 '../../testing/gtest.gyp:gtest', |
94 'mojo_edk.gyp:mojo_run_all_unittests', | |
95 'mojo_public.gyp:mojo_cpp_bindings', | 95 'mojo_public.gyp:mojo_cpp_bindings', |
96 'mojo_public.gyp:mojo_environment_standalone', | 96 'mojo_public.gyp:mojo_environment_standalone', |
97 'mojo_public.gyp:mojo_public_bindings_test_utils', | 97 'mojo_public.gyp:mojo_public_bindings_test_utils', |
98 'mojo_public.gyp:mojo_public_test_interfaces', | 98 'mojo_public.gyp:mojo_public_test_interfaces', |
99 'mojo_public.gyp:mojo_public_test_utils', | 99 'mojo_public.gyp:mojo_public_test_utils', |
100 'mojo_public.gyp:mojo_utility', | 100 'mojo_public.gyp:mojo_utility', |
101 ], | 101 ], |
102 'sources': [ | 102 'sources': [ |
103 '../../mojo/public/cpp/bindings/tests/bindings_perftest.cc', | 103 '../../mojo/public/cpp/bindings/tests/bindings_perftest.cc', |
104 ], | 104 ], |
105 }, | 105 }, |
106 { | 106 { |
107 # GN version: //mojo/edk/test:mojo_public_environment_unittests | 107 # GN version: //mojo/edk/test:mojo_public_environment_unittests |
108 'target_name': 'mojo_public_environment_unittests', | 108 'target_name': 'mojo_public_environment_unittests', |
109 'type': 'executable', | 109 'type': 'executable', |
110 'dependencies': [ | 110 'dependencies': [ |
| 111 '../../mojo/mojo_edk.gyp:mojo_run_all_unittests', |
111 '../../testing/gtest.gyp:gtest', | 112 '../../testing/gtest.gyp:gtest', |
112 'mojo_edk.gyp:mojo_run_all_unittests', | |
113 'mojo_public.gyp:mojo_cpp_bindings', | 113 'mojo_public.gyp:mojo_cpp_bindings', |
114 'mojo_public.gyp:mojo_environment_standalone', | 114 'mojo_public.gyp:mojo_environment_standalone', |
115 'mojo_public.gyp:mojo_public_test_utils', | 115 'mojo_public.gyp:mojo_public_test_utils', |
116 'mojo_public.gyp:mojo_utility', | 116 'mojo_public.gyp:mojo_utility', |
117 ], | 117 ], |
118 'include_dirs': [ '../..' ], | 118 'include_dirs': [ '../..' ], |
119 'sources': [ | 119 'sources': [ |
120 '../../mojo/public/cpp/environment/tests/async_wait_unittest.cc', | 120 '../../mojo/public/cpp/environment/tests/async_wait_unittest.cc', |
121 '../../mojo/public/cpp/environment/tests/async_waiter_unittest.cc', | 121 '../../mojo/public/cpp/environment/tests/async_waiter_unittest.cc', |
122 '../../mojo/public/cpp/environment/tests/logger_unittest.cc', | 122 '../../mojo/public/cpp/environment/tests/logger_unittest.cc', |
123 '../../mojo/public/cpp/environment/tests/logging_unittest.cc', | 123 '../../mojo/public/cpp/environment/tests/logging_unittest.cc', |
124 ], | 124 ], |
125 }, | 125 }, |
126 { | 126 { |
127 # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests | 127 # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests |
128 # and //mojo/public/c/system/tests | 128 # and //mojo/public/c/system/tests |
129 'target_name': 'mojo_public_system_unittests', | 129 'target_name': 'mojo_public_system_unittests', |
130 'type': 'executable', | 130 'type': 'executable', |
131 'dependencies': [ | 131 'dependencies': [ |
| 132 '../../mojo/mojo_edk.gyp:mojo_run_all_unittests', |
132 '../../testing/gtest.gyp:gtest', | 133 '../../testing/gtest.gyp:gtest', |
133 'mojo_edk.gyp:mojo_run_all_unittests', | |
134 'mojo_public.gyp:mojo_public_test_utils', | 134 'mojo_public.gyp:mojo_public_test_utils', |
135 ], | 135 ], |
136 'include_dirs': [ '../..' ], | 136 'include_dirs': [ '../..' ], |
137 'sources': [ | 137 'sources': [ |
138 '<@(mojo_public_system_unittest_sources)', | 138 '<@(mojo_public_system_unittest_sources)', |
139 ], | 139 ], |
140 }, | 140 }, |
141 { | 141 { |
142 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unit
tests | 142 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unit
tests |
143 'target_name': 'mojo_public_utility_unittests', | 143 'target_name': 'mojo_public_utility_unittests', |
144 'type': 'executable', | 144 'type': 'executable', |
145 'dependencies': [ | 145 'dependencies': [ |
| 146 '../../mojo/mojo_edk.gyp:mojo_run_all_unittests', |
146 '../../testing/gtest.gyp:gtest', | 147 '../../testing/gtest.gyp:gtest', |
147 'mojo_edk.gyp:mojo_run_all_unittests', | |
148 'mojo_public.gyp:mojo_cpp_bindings', | 148 'mojo_public.gyp:mojo_cpp_bindings', |
149 'mojo_public.gyp:mojo_public_test_utils', | 149 'mojo_public.gyp:mojo_public_test_utils', |
150 'mojo_public.gyp:mojo_utility', | 150 'mojo_public.gyp:mojo_utility', |
151 ], | 151 ], |
152 'include_dirs': [ '../..' ], | 152 'include_dirs': [ '../..' ], |
153 'sources': [ | 153 'sources': [ |
154 '../../mojo/public/cpp/utility/tests/mutex_unittest.cc', | 154 '../../mojo/public/cpp/utility/tests/mutex_unittest.cc', |
155 '../../mojo/public/cpp/utility/tests/run_loop_unittest.cc', | 155 '../../mojo/public/cpp/utility/tests/run_loop_unittest.cc', |
156 '../../mojo/public/cpp/utility/tests/thread_unittest.cc', | 156 '../../mojo/public/cpp/utility/tests/thread_unittest.cc', |
157 ], | 157 ], |
158 'conditions': [ | 158 'conditions': [ |
159 # See crbug.com/342893: | 159 # See crbug.com/342893: |
160 ['OS=="win"', { | 160 ['OS=="win"', { |
161 'sources!': [ | 161 'sources!': [ |
162 '../../mojo/public/cpp/utility/tests/mutex_unittest.cc', | 162 '../../mojo/public/cpp/utility/tests/mutex_unittest.cc', |
163 '../../mojo/public/cpp/utility/tests/thread_unittest.cc', | 163 '../../mojo/public/cpp/utility/tests/thread_unittest.cc', |
164 ], | 164 ], |
165 }], | 165 }], |
166 ], | 166 ], |
167 }, | 167 }, |
168 { | 168 { |
169 # GN version: //mojo/edk/test:mojo_public_system_perftests | 169 # GN version: //mojo/edk/test:mojo_public_system_perftests |
170 'target_name': 'mojo_public_system_perftests', | 170 'target_name': 'mojo_public_system_perftests', |
171 'type': 'executable', | 171 'type': 'executable', |
172 'dependencies': [ | 172 'dependencies': [ |
173 '../../base/base.gyp:base', | 173 '../../base/base.gyp:base', |
| 174 '../../mojo/mojo_edk.gyp:mojo_run_all_perftests', |
174 '../../testing/gtest.gyp:gtest', | 175 '../../testing/gtest.gyp:gtest', |
175 'mojo_edk.gyp:mojo_run_all_perftests', | |
176 'mojo_public.gyp:mojo_public_test_utils', | 176 'mojo_public.gyp:mojo_public_test_utils', |
177 'mojo_public.gyp:mojo_utility', | 177 'mojo_public.gyp:mojo_utility', |
178 ], | 178 ], |
179 'sources': [ | 179 'sources': [ |
180 '../../mojo/public/c/system/tests/core_perftest.cc', | 180 '../../mojo/public/c/system/tests/core_perftest.cc', |
181 ], | 181 ], |
182 }, | 182 }, |
183 { | 183 { |
184 # GN version: //mojo/edk/system:mojo_system_unittests | 184 # GN version: //mojo/edk/system:mojo_system_unittests |
185 'target_name': 'mojo_system_unittests', | 185 'target_name': 'mojo_system_unittests_old', |
186 'type': 'executable', | 186 'type': 'executable', |
187 'dependencies': [ | 187 'dependencies': [ |
| 188 '../../mojo/mojo_edk.gyp:mojo_common_test_support', |
| 189 '../../mojo/mojo_edk.gyp:mojo_system_impl', |
188 '../../base/base.gyp:base', | 190 '../../base/base.gyp:base', |
189 '../../testing/gtest.gyp:gtest', | 191 '../../testing/gtest.gyp:gtest', |
190 'mojo_edk.gyp:mojo_common_test_support', | |
191 'mojo_edk.gyp:mojo_system_impl', | |
192 ], | 192 ], |
193 'sources': [ | 193 'sources': [ |
194 'src/mojo/edk/embedder/embedder_unittest.cc', | 194 'src/mojo/edk/embedder/embedder_unittest.cc', |
195 'src/mojo/edk/embedder/platform_channel_pair_posix_unittest.cc', | 195 'src/mojo/edk/embedder/platform_channel_pair_posix_unittest.cc', |
196 'src/mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc', | 196 'src/mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc', |
197 'src/mojo/edk/system/awakable_list_unittest.cc', | 197 'src/mojo/edk/system/awakable_list_unittest.cc', |
198 'src/mojo/edk/system/channel_endpoint_id_unittest.cc', | 198 'src/mojo/edk/system/channel_endpoint_id_unittest.cc', |
199 'src/mojo/edk/system/channel_endpoint_unittest.cc', | 199 'src/mojo/edk/system/channel_endpoint_unittest.cc', |
200 'src/mojo/edk/system/channel_manager_unittest.cc', | 200 'src/mojo/edk/system/channel_manager_unittest.cc', |
201 'src/mojo/edk/system/channel_test_base.cc', | 201 'src/mojo/edk/system/channel_test_base.cc', |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 'src/mojo/edk/embedder/embedder_unittest.cc', | 245 'src/mojo/edk/embedder/embedder_unittest.cc', |
246 'src/mojo/edk/system/ipc_support_unittest.cc', | 246 'src/mojo/edk/system/ipc_support_unittest.cc', |
247 'src/mojo/edk/system/multiprocess_message_pipe_unittest.cc', | 247 'src/mojo/edk/system/multiprocess_message_pipe_unittest.cc', |
248 'src/mojo/edk/test/multiprocess_test_helper_unittest.cc', | 248 'src/mojo/edk/test/multiprocess_test_helper_unittest.cc', |
249 ], | 249 ], |
250 }], | 250 }], |
251 ], | 251 ], |
252 }, | 252 }, |
253 { | 253 { |
254 # GN version: //mojo/edk/system:mojo_message_pipe_perftests | 254 # GN version: //mojo/edk/system:mojo_message_pipe_perftests |
255 'target_name': 'mojo_message_pipe_perftests', | 255 'target_name': 'mojo_message_pipe_perftests_old', |
256 'type': 'executable', | 256 'type': 'executable', |
257 'dependencies': [ | 257 'dependencies': [ |
258 '../../base/base.gyp:base', | 258 '../../base/base.gyp:base', |
259 '../../base/base.gyp:test_support_base', | 259 '../../base/base.gyp:test_support_base', |
260 '../../base/base.gyp:test_support_perf', | 260 '../../base/base.gyp:test_support_perf', |
| 261 '../../mojo/mojo_edk.gyp:mojo_common_test_support', |
| 262 '../../mojo/mojo_edk.gyp:mojo_system_impl', |
261 '../../testing/gtest.gyp:gtest', | 263 '../../testing/gtest.gyp:gtest', |
262 'mojo_edk.gyp:mojo_common_test_support', | |
263 'mojo_edk.gyp:mojo_system_impl', | |
264 ], | 264 ], |
265 'sources': [ | 265 'sources': [ |
266 'src/mojo/edk/system/message_pipe_perftest.cc', | 266 'src/mojo/edk/system/message_pipe_perftest.cc', |
267 'src/mojo/edk/system/message_pipe_test_utils.cc', | 267 'src/mojo/edk/system/message_pipe_test_utils.cc', |
268 'src/mojo/edk/system/message_pipe_test_utils.h', | 268 'src/mojo/edk/system/message_pipe_test_utils.h', |
269 'src/mojo/edk/system/test_utils.cc', | 269 'src/mojo/edk/system/test_utils.cc', |
270 'src/mojo/edk/system/test_utils.h', | 270 'src/mojo/edk/system/test_utils.h', |
271 ], | 271 ], |
272 }, | 272 }, |
273 { | |
274 'target_name': 'mojo_js_to_cpp_bindings', | |
275 'type': 'none', | |
276 'variables': { | |
277 'mojom_files': [ | |
278 'src/mojo/edk/js/tests/js_to_cpp.mojom', | |
279 ], | |
280 }, | |
281 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], | |
282 }, | |
283 ], | 273 ], |
284 'conditions': [ | 274 'conditions': [ |
285 ['test_isolation_mode != "noop"', { | 275 ['test_isolation_mode != "noop"', { |
286 'targets': [ | 276 'targets': [ |
287 { | 277 { |
288 'target_name': 'mojo_public_bindings_unittests_run', | 278 'target_name': 'mojo_public_bindings_unittests_run', |
289 'type': 'none', | 279 'type': 'none', |
290 'dependencies': [ | 280 'dependencies': [ |
291 'mojo_public_bindings_unittests', | 281 'mojo_public_bindings_unittests', |
292 ], | 282 ], |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 '../../build/isolate.gypi', | 323 '../../build/isolate.gypi', |
334 ], | 324 ], |
335 'sources': [ | 325 'sources': [ |
336 'mojo_public_utility_unittests.isolate', | 326 'mojo_public_utility_unittests.isolate', |
337 ], | 327 ], |
338 }, | 328 }, |
339 ], | 329 ], |
340 }], | 330 }], |
341 ], | 331 ], |
342 } | 332 } |
OLD | NEW |