Fork the mojo shell interfaces used by Mandoline.
[chromium-blink-merge.git] / third_party / mojo / mojo_edk_tests.gyp
blobdc552e23f2dd9431cb077d148cc51e1583041f36
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
3 # found in the LICENSE file.
6   'includes': [
7     'mojo_variables.gypi',
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_unittests',
21         'mojo_public_environment_unittests',
22         'mojo_public_system_perftests',
23         'mojo_public_system_unittests',
24         'mojo_public_utility_unittests',
25         'mojo_system_unittests',
26         'mojo_js_unittests',
27         'mojo_js_integration_tests',
28       ],
29     },
30     # TODO(vtl): Reorganize the mojo_public_*_unittests.
31     {
32       # GN version: //mojo/edk/test:mojo_public_bindings_unittests
33       'target_name': 'mojo_public_bindings_unittests',
34       'type': 'executable',
35       'dependencies': [
36         '../../testing/gtest.gyp:gtest',
37         'mojo_edk.gyp:mojo_run_all_unittests',
38         'mojo_public.gyp:mojo_cpp_bindings',
39         'mojo_public.gyp:mojo_environment_standalone',
40         'mojo_public.gyp:mojo_public_bindings_test_utils',
41         'mojo_public.gyp:mojo_public_test_interfaces',
42         'mojo_public.gyp:mojo_public_test_utils',
43         'mojo_public.gyp:mojo_utility',
44       ],
45       'sources': [
46         'src/mojo/public/cpp/bindings/tests/array_unittest.cc',
47         'src/mojo/public/cpp/bindings/tests/bounds_checker_unittest.cc',
48         'src/mojo/public/cpp/bindings/tests/buffer_unittest.cc',
49         'src/mojo/public/cpp/bindings/tests/connector_unittest.cc',
50         'src/mojo/public/cpp/bindings/tests/container_test_util.cc',
51         'src/mojo/public/cpp/bindings/tests/equals_unittest.cc',
52         'src/mojo/public/cpp/bindings/tests/handle_passing_unittest.cc',
53         'src/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc',
54         'src/mojo/public/cpp/bindings/tests/map_unittest.cc',
55         'src/mojo/public/cpp/bindings/tests/request_response_unittest.cc',
56         'src/mojo/public/cpp/bindings/tests/router_unittest.cc',
57         'src/mojo/public/cpp/bindings/tests/sample_service_unittest.cc',
58         'src/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc',
59         'src/mojo/public/cpp/bindings/tests/string_unittest.cc',
60         'src/mojo/public/cpp/bindings/tests/struct_unittest.cc',
61         'src/mojo/public/cpp/bindings/tests/type_conversion_unittest.cc',
62         'src/mojo/public/cpp/bindings/tests/validation_unittest.cc',
63       ],
64     },
65     {
66       # GN version: //mojo/edk/test:mojo_public_environment_unittests
67       'target_name': 'mojo_public_environment_unittests',
68       'type': 'executable',
69       'dependencies': [
70         '../../testing/gtest.gyp:gtest',
71         'mojo_edk.gyp:mojo_run_all_unittests',
72         'mojo_public.gyp:mojo_environment_standalone',
73         'mojo_public.gyp:mojo_public_test_utils',
74         'mojo_public.gyp:mojo_utility',
75       ],
76       'include_dirs': [ '../..' ],
77       'sources': [
78         'src/mojo/public/cpp/environment/tests/async_wait_unittest.cc',
79         'src/mojo/public/cpp/environment/tests/async_waiter_unittest.cc',
80         'src/mojo/public/cpp/environment/tests/logger_unittest.cc',
81         'src/mojo/public/cpp/environment/tests/logging_unittest.cc',
82       ],
83     },
84     {
85       # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests
86       # and         //mojo/public/c/system/tests
87       'target_name': 'mojo_public_system_unittests',
88       'type': 'executable',
89       'dependencies': [
90         '../../testing/gtest.gyp:gtest',
91         'mojo_edk.gyp:mojo_run_all_unittests',
92         'mojo_public.gyp:mojo_public_test_utils',
93       ],
94       'include_dirs': [ '../..' ],
95       'sources': [
96         '<@(mojo_public_system_unittest_sources)',
97       ],
98     },
99     {
100       # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unittests
101       'target_name': 'mojo_public_utility_unittests',
102       'type': 'executable',
103       'dependencies': [
104         '../../testing/gtest.gyp:gtest',
105         'mojo_edk.gyp:mojo_run_all_unittests',
106         'mojo_public.gyp:mojo_public_test_utils',
107         'mojo_public.gyp:mojo_utility',
108       ],
109       'include_dirs': [ '../..' ],
110       'sources': [
111         'src/mojo/public/cpp/utility/tests/mutex_unittest.cc',
112         'src/mojo/public/cpp/utility/tests/run_loop_unittest.cc',
113         'src/mojo/public/cpp/utility/tests/thread_unittest.cc',
114       ],
115       'conditions': [
116         # See crbug.com/342893:
117         ['OS=="win"', {
118           'sources!': [
119             'src/mojo/public/cpp/utility/tests/mutex_unittest.cc',
120             'src/mojo/public/cpp/utility/tests/thread_unittest.cc',
121           ],
122         }],
123       ],
124     },
125     {
126       # GN version: //mojo/edk/test:mojo_public_system_perftests
127       'target_name': 'mojo_public_system_perftests',
128       'type': 'executable',
129       'dependencies': [
130         '../../base/base.gyp:base',
131         '../../testing/gtest.gyp:gtest',
132         'mojo_edk.gyp:mojo_run_all_perftests',
133         'mojo_public.gyp:mojo_public_test_utils',
134         'mojo_public.gyp:mojo_utility',
135       ],
136       'sources': [
137         'src/mojo/public/c/system/tests/core_perftest.cc',
138       ],
139     },
140     {
141       # GN version: //mojo/edk/system:mojo_system_unittests
142       'target_name': 'mojo_system_unittests',
143       'type': 'executable',
144       'dependencies': [
145         '../../base/base.gyp:base',
146         '../../testing/gtest.gyp:gtest',
147         'mojo_edk.gyp:mojo_common_test_support',
148         'mojo_edk.gyp:mojo_system_impl',
149       ],
150       'sources': [
151         'src/mojo/edk/embedder/embedder_unittest.cc',
152         'src/mojo/edk/embedder/platform_channel_pair_posix_unittest.cc',
153         'src/mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc',
154         'src/mojo/edk/system/awakable_list_unittest.cc',
155         'src/mojo/edk/system/channel_endpoint_id_unittest.cc',
156         'src/mojo/edk/system/channel_manager_unittest.cc',
157         'src/mojo/edk/system/channel_unittest.cc',
158         'src/mojo/edk/system/core_unittest.cc',
159         'src/mojo/edk/system/core_test_base.cc',
160         'src/mojo/edk/system/core_test_base.h',
161         'src/mojo/edk/system/data_pipe_impl_unittest.cc',
162         'src/mojo/edk/system/data_pipe_unittest.cc',
163         'src/mojo/edk/system/dispatcher_unittest.cc',
164         'src/mojo/edk/system/memory_unittest.cc',
165         'src/mojo/edk/system/message_pipe_dispatcher_unittest.cc',
166         'src/mojo/edk/system/message_pipe_test_utils.cc',
167         'src/mojo/edk/system/message_pipe_test_utils.h',
168         'src/mojo/edk/system/message_pipe_unittest.cc',
169         'src/mojo/edk/system/multiprocess_message_pipe_unittest.cc',
170         'src/mojo/edk/system/options_validation_unittest.cc',
171         'src/mojo/edk/system/platform_handle_dispatcher_unittest.cc',
172         'src/mojo/edk/system/raw_channel_unittest.cc',
173         'src/mojo/edk/system/remote_data_pipe_impl_unittest.cc',
174         'src/mojo/edk/system/remote_message_pipe_unittest.cc',
175         'src/mojo/edk/system/run_all_unittests.cc',
176         'src/mojo/edk/system/shared_buffer_dispatcher_unittest.cc',
177         'src/mojo/edk/system/simple_dispatcher_unittest.cc',
178         'src/mojo/edk/system/test_utils.cc',
179         'src/mojo/edk/system/test_utils.h',
180         'src/mojo/edk/system/unique_identifier_unittest.cc',
181         'src/mojo/edk/system/waiter_test_utils.cc',
182         'src/mojo/edk/system/waiter_test_utils.h',
183         'src/mojo/edk/system/waiter_unittest.cc',
184         'src/mojo/edk/test/multiprocess_test_helper_unittest.cc',
185       ],
186       'conditions': [
187         ['OS=="ios"', {
188           'sources!': [
189             'src/mojo/edk/embedder/embedder_unittest.cc',
190             'src/mojo/edk/system/multiprocess_message_pipe_unittest.cc',
191             'src/mojo/edk/test/multiprocess_test_helper_unittest.cc',
192           ],
193         }],
194       ],
195     },
196     {
197       # GN version: //mojo/edk/system:mojo_message_pipe_perftests
198       'target_name': 'mojo_message_pipe_perftests',
199       'type': 'executable',
200       'dependencies': [
201         '../../base/base.gyp:base',
202         '../../base/base.gyp:test_support_base',
203         '../../base/base.gyp:test_support_perf',
204         '../../testing/gtest.gyp:gtest',
205         'mojo_edk.gyp:mojo_common_test_support',
206         'mojo_edk.gyp:mojo_system_impl',
207       ],
208       'sources': [
209         'src/mojo/edk/system/message_pipe_perftest.cc',
210         'src/mojo/edk/system/message_pipe_test_utils.cc',
211         'src/mojo/edk/system/message_pipe_test_utils.h',
212         'src/mojo/edk/system/test_utils.cc',
213         'src/mojo/edk/system/test_utils.h',
214       ],
215     },
216     {
217       # GN version: //mojo/edk/js/test:js_unittests
218       'target_name': 'mojo_js_unittests',
219       'type': 'executable',
220       'dependencies': [
221         '../../gin/gin.gyp:gin_test',
222         'mojo_edk.gyp:mojo_common_test_support',
223         'mojo_edk.gyp:mojo_run_all_unittests',
224         'mojo_edk.gyp:mojo_js_lib',
225         'mojo_public.gyp:mojo_environment_standalone',
226         'mojo_public.gyp:mojo_public_test_interfaces',
227         'mojo_public.gyp:mojo_utility',
228       ],
229       'sources': [
230         'src/mojo/edk/js/handle_unittest.cc',
231         'src/mojo/edk/js/test/run_js_tests.cc',
232       ],
233     },
234     {
235       # GN version: //mojo/edk/js/test:js_integration_tests
236       'target_name': 'mojo_js_integration_tests',
237       'type': 'executable',
238       'dependencies': [
239         '../../base/base.gyp:base',
240         '../../gin/gin.gyp:gin_test',
241         'mojo_public.gyp:mojo_environment_standalone',
242         'mojo_public.gyp:mojo_public_test_interfaces',
243         'mojo_public.gyp:mojo_utility',
244         'mojo_edk.gyp:mojo_js_lib',
245         'mojo_edk.gyp:mojo_run_all_unittests',
246         'mojo_js_to_cpp_bindings',
247       ],
248       'sources': [
249         'src/mojo/edk/js/test/run_js_integration_tests.cc',
250         'src/mojo/edk/js/tests/js_to_cpp_tests',
251       ],
252     },
253     {
254       'target_name': 'mojo_js_to_cpp_bindings',
255       'type': 'none',
256       'variables': {
257         'mojom_files': [
258           'src/mojo/edk/js/tests/js_to_cpp.mojom',
259         ],
260       },
261       'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
262     },
263   ],