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