Fix a use after free crasher in the BrowserAccessibilityManagerWinTest.TestAccessible...
[chromium-blink-merge.git] / mojo / mojo_public_tests.gypi
blob658d59470f1ac1547ae09f60fe760ac61374c630
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/string_unittest.cc',
74         'public/cpp/bindings/tests/struct_unittest.cc',
75         'public/cpp/bindings/tests/type_conversion_unittest.cc',
76         'public/cpp/bindings/tests/validation_test_input_parser.cc',
77         'public/cpp/bindings/tests/validation_test_input_parser.h',
78         'public/cpp/bindings/tests/validation_unittest.cc',
79       ],
80     },
81     {
82       'target_name': 'mojo_public_environment_unittests',
83       'type': 'executable',
84       'dependencies': [
85         '../base/base.gyp:base',
86         '../testing/gtest.gyp:gtest',
87         'mojo_environment_standalone',
88         'mojo_public_test_utils',
89         'mojo_run_all_unittests',
90         'mojo_utility',
91       ],
92       'sources': [
93         'public/cpp/environment/tests/async_waiter_unittest.cc',
94         'public/cpp/environment/tests/logger_unittest.cc',
95         'public/cpp/environment/tests/logging_unittest.cc',
96       ],
97     },
98     {
99       'target_name': 'mojo_public_application_unittests',
100       'type': 'executable',
101       'dependencies': [
102         '../base/base.gyp:base',
103         '../testing/gtest.gyp:gtest',
104         'mojo_application',
105         'mojo_run_all_unittests',
106         'mojo_environment_standalone',
107         'mojo_utility',
108       ],
109       'sources': [
110         'public/cpp/application/tests/service_registry_unittest.cc',
111       ],
112     },
113     {
114       'target_name': 'mojo_public_system_unittests',
115       'type': 'executable',
116       'dependencies': [
117         '../base/base.gyp:base',
118         '../testing/gtest.gyp:gtest',
119         'mojo_cpp_bindings',
120         'mojo_public_test_utils',
121         'mojo_run_all_unittests',
122       ],
123       'sources': [
124         'public/c/system/tests/core_unittest.cc',
125         'public/c/system/tests/core_unittest_pure_c.c',
126         'public/c/system/tests/macros_unittest.cc',
127         'public/cpp/system/tests/core_unittest.cc',
128         'public/cpp/system/tests/macros_unittest.cc',
129       ],
130     },
131     {
132       'target_name': 'mojo_public_utility_unittests',
133       'type': 'executable',
134       'dependencies': [
135         '../base/base.gyp:base',
136         '../testing/gtest.gyp:gtest',
137         'mojo_cpp_bindings',
138         'mojo_public_test_utils',
139         'mojo_run_all_unittests',
140         'mojo_utility',
141       ],
142       'sources': [
143         'public/cpp/utility/tests/mutex_unittest.cc',
144         'public/cpp/utility/tests/run_loop_unittest.cc',
145         'public/cpp/utility/tests/thread_unittest.cc',
146       ],
147       'conditions': [
148         # See crbug.com/342893:
149         ['OS=="win"', {
150           'sources!': [
151             'public/cpp/utility/tests/mutex_unittest.cc',
152             'public/cpp/utility/tests/thread_unittest.cc',
153           ],
154         }],
155       ],
156     },
157     {
158       'target_name': 'mojo_public_system_perftests',
159       'type': 'executable',
160       'dependencies': [
161         '../base/base.gyp:base',
162         '../testing/gtest.gyp:gtest',
163         'mojo_public_test_utils',
164         'mojo_run_all_perftests',
165         'mojo_utility',
166       ],
167       'sources': [
168         'public/c/system/tests/core_perftest.cc',
169       ],
170     },
171     {
172       'target_name': 'mojo_public_test_interfaces',
173       'type': 'static_library',
174       'sources': [
175         'public/interfaces/bindings/tests/math_calculator.mojom',
176         'public/interfaces/bindings/tests/sample_factory.mojom',
177         'public/interfaces/bindings/tests/sample_import.mojom',
178         'public/interfaces/bindings/tests/sample_import2.mojom',
179         'public/interfaces/bindings/tests/sample_interfaces.mojom',
180         'public/interfaces/bindings/tests/sample_service.mojom',
181         'public/interfaces/bindings/tests/test_structs.mojom',
182         'public/interfaces/bindings/tests/validation_test_interfaces.mojom',
183       ],
184       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
185       'export_dependent_settings': [
186         'mojo_cpp_bindings',
187       ],
188       'dependencies': [
189         'mojo_cpp_bindings',
190       ],
191     },
192   ],