Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / mojo / mojo_public_tests.gypi
blob97f782108f9f0c4b20addb48dfc7d91dc8ca326a
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   'targets': [
7     {
8       # GN version: //mojo/public/c/test_support
9       'target_name': 'mojo_test_support',
10       'type': 'shared_library',
11       'defines': [
12         'MOJO_TEST_SUPPORT_IMPLEMENTATION',
13       ],
14       'include_dirs': [
15         '..',
16       ],
17       'direct_dependent_settings': {
18         'include_dirs': [
19           '..',
20         ],
21       },
22       'sources': [
23         'public/c/test_support/test_support.h',
24         'public/c/test_support/test_support_export.h',
25         # TODO(vtl): Convert this to thunks http://crbug.com/386799
26         'public/tests/test_support_private.cc',
27         'public/tests/test_support_private.h',
28       ],
29       'conditions': [
30         ['OS=="mac"', {
31           'xcode_settings': {
32             # Make it a run-path dependent library.
33             'DYLIB_INSTALL_NAME_BASE': '@loader_path',
34           },
35         }],
36       ],
37     },
38     {
39       # GN version: //mojo/public/cpp/test_support:test_utils
40       'target_name': 'mojo_public_test_utils',
41       'type': 'static_library',
42       'dependencies': [
43         '../base/base.gyp:base',
44         '../testing/gtest.gyp:gtest',
45         'mojo_test_support',
46       ],
47       'sources': [
48         'public/cpp/test_support/lib/test_support.cc',
49         'public/cpp/test_support/lib/test_utils.cc',
50         'public/cpp/test_support/test_utils.h',
51       ],
52     },
53     # TODO(vtl): Reorganize the mojo_public_*_unittests.
54     {
55       # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests
56       'target_name': 'mojo_public_bindings_unittests',
57       'type': 'executable',
58       'dependencies': [
59         '../testing/gtest.gyp:gtest',
60         'mojo_cpp_bindings',
61         'mojo_environment_standalone',
62         'mojo_public_test_utils',
63         'mojo_run_all_unittests',
64         'mojo_public_test_interfaces',
65         'mojo_utility',
66       ],
67       'sources': [
68         'public/cpp/bindings/tests/array_unittest.cc',
69         'public/cpp/bindings/tests/bounds_checker_unittest.cc',
70         'public/cpp/bindings/tests/buffer_unittest.cc',
71         'public/cpp/bindings/tests/connector_unittest.cc',
72         'public/cpp/bindings/tests/handle_passing_unittest.cc',
73         'public/cpp/bindings/tests/interface_ptr_unittest.cc',
74         'public/cpp/bindings/tests/request_response_unittest.cc',
75         'public/cpp/bindings/tests/router_unittest.cc',
76         'public/cpp/bindings/tests/sample_service_unittest.cc',
77         'public/cpp/bindings/tests/serialization_warning_unittest.cc',
78         'public/cpp/bindings/tests/string_unittest.cc',
79         'public/cpp/bindings/tests/struct_unittest.cc',
80         'public/cpp/bindings/tests/type_conversion_unittest.cc',
81         'public/cpp/bindings/tests/validation_test_input_parser.cc',
82         'public/cpp/bindings/tests/validation_test_input_parser.h',
83         'public/cpp/bindings/tests/validation_unittest.cc',
84       ],
85     },
86     {
87       # GN version: //mojo/public/cpp/environment/tests:mojo_public_environment_unittests
88       'target_name': 'mojo_public_environment_unittests',
89       'type': 'executable',
90       'dependencies': [
91         '../testing/gtest.gyp:gtest',
92         'mojo_environment_standalone',
93         'mojo_public_test_utils',
94         'mojo_run_all_unittests',
95         'mojo_utility',
96       ],
97       'include_dirs': [ '..' ],
98       'sources': [
99         'public/cpp/environment/tests/async_waiter_unittest.cc',
100         'public/cpp/environment/tests/logger_unittest.cc',
101         'public/cpp/environment/tests/logging_unittest.cc',
102       ],
103     },
104     {
105       # GN version: //mojo/public/cpp/application/tests:mojo_public_application_unittests
106       'target_name': 'mojo_public_application_unittests',
107       'type': 'executable',
108       'dependencies': [
109         '../base/base.gyp:base',
110         '../testing/gtest.gyp:gtest',
111         'mojo_application_standalone',
112         'mojo_utility',
113         'mojo_environment_standalone',
114         'mojo_run_all_unittests',
115       ],
116       'sources': [
117         'public/cpp/application/tests/service_registry_unittest.cc',
118       ],
119     },
120     {
121       # GN version: //mojo/public/cpp/application/tests:mojo_public_system_unittests
122       'target_name': 'mojo_public_system_unittests',
123       'type': 'executable',
124       'dependencies': [
125         '../testing/gtest.gyp:gtest',
126         'mojo_public_test_utils',
127         'mojo_run_all_unittests',
128       ],
129       'include_dirs': [ '..' ],
130       'sources': [
131         'public/c/system/tests/core_unittest.cc',
132         'public/c/system/tests/core_unittest_pure_c.c',
133         'public/c/system/tests/macros_unittest.cc',
134         'public/cpp/system/tests/core_unittest.cc',
135         'public/cpp/system/tests/macros_unittest.cc',
136       ],
137     },
138     {
139       # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unittests
140       'target_name': 'mojo_public_utility_unittests',
141       'type': 'executable',
142       'dependencies': [
143         '../testing/gtest.gyp:gtest',
144         'mojo_public_test_utils',
145         'mojo_run_all_unittests',
146         'mojo_utility',
147       ],
148       'include_dirs' : [ '..' ],
149       'sources': [
150         'public/cpp/utility/tests/mutex_unittest.cc',
151         'public/cpp/utility/tests/run_loop_unittest.cc',
152         'public/cpp/utility/tests/thread_unittest.cc',
153       ],
154       'conditions': [
155         # See crbug.com/342893:
156         ['OS=="win"', {
157           'sources!': [
158             'public/cpp/utility/tests/mutex_unittest.cc',
159             'public/cpp/utility/tests/thread_unittest.cc',
160           ],
161         }],
162       ],
163     },
164     {
165       'target_name': 'mojo_public_system_perftests',
166       'type': 'executable',
167       'dependencies': [
168         '../base/base.gyp:base',
169         '../testing/gtest.gyp:gtest',
170         'mojo_public_test_utils',
171         'mojo_run_all_perftests',
172         'mojo_utility',
173       ],
174       'sources': [
175         'public/c/system/tests/core_perftest.cc',
176       ],
177     },
178     {
179       # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
180       'target_name': 'mojo_public_test_interfaces',
181       'type': 'static_library',
182       'sources': [
183         'public/interfaces/bindings/tests/math_calculator.mojom',
184         'public/interfaces/bindings/tests/rect.mojom',
185         'public/interfaces/bindings/tests/sample_factory.mojom',
186         'public/interfaces/bindings/tests/sample_import.mojom',
187         'public/interfaces/bindings/tests/sample_import2.mojom',
188         'public/interfaces/bindings/tests/sample_interfaces.mojom',
189         'public/interfaces/bindings/tests/sample_service.mojom',
190         'public/interfaces/bindings/tests/serialization_test_structs.mojom',
191         'public/interfaces/bindings/tests/test_structs.mojom',
192         'public/interfaces/bindings/tests/validation_test_interfaces.mojom',
193       ],
194       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
195       'export_dependent_settings': [
196         'mojo_cpp_bindings',
197       ],
198       'dependencies': [
199         'mojo_cpp_bindings',
200       ],
201     },
202     {
203       # GN version: //mojo/public/js/bindings/tests:mojo_js_unittests
204       'target_name': 'mojo_js_unittests',
205       'type': 'executable',
206       'dependencies': [
207         '../gin/gin.gyp:gin_test',
208         'mojo_common_test_support',
209         'mojo_js_bindings_lib',
210         'mojo_public_test_interfaces',
211         'mojo_run_all_unittests',
212       ],
213       'sources': [
214         'public/js/bindings/tests/run_js_tests.cc',
215       ],
216     },
217   ],