Don't allow the empty new password to overwrite the existing one.
[chromium-blink-merge.git] / mojo / mojo_public_tests.gypi
blob8106e8d420ef6c23ceed5daac426108989721570
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     {
54       # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils
55       'target_name': 'mojo_public_bindings_test_utils',
56       'type': 'static_library',
57       'dependencies': [
58         '../base/base.gyp:base',
59       ],
60       'sources': [
61         'public/cpp/bindings/tests/validation_test_input_parser.cc',
62         'public/cpp/bindings/tests/validation_test_input_parser.h',
63       ],
64     },
65     # TODO(vtl): Reorganize the mojo_public_*_unittests.
66     {
67       # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_unittests
68       'target_name': 'mojo_public_bindings_unittests',
69       'type': 'executable',
70       'dependencies': [
71         '../testing/gtest.gyp:gtest',
72         'mojo_cpp_bindings',
73         'mojo_environment_standalone',
74         'mojo_public_test_utils',
75         'mojo_run_all_unittests',
76         'mojo_public_bindings_test_utils',
77         'mojo_public_test_interfaces',
78         'mojo_utility',
79       ],
80       'sources': [
81         'public/cpp/bindings/tests/array_unittest.cc',
82         'public/cpp/bindings/tests/bounds_checker_unittest.cc',
83         'public/cpp/bindings/tests/buffer_unittest.cc',
84         'public/cpp/bindings/tests/connector_unittest.cc',
85         'public/cpp/bindings/tests/handle_passing_unittest.cc',
86         'public/cpp/bindings/tests/interface_ptr_unittest.cc',
87         'public/cpp/bindings/tests/request_response_unittest.cc',
88         'public/cpp/bindings/tests/router_unittest.cc',
89         'public/cpp/bindings/tests/sample_service_unittest.cc',
90         'public/cpp/bindings/tests/serialization_warning_unittest.cc',
91         'public/cpp/bindings/tests/string_unittest.cc',
92         'public/cpp/bindings/tests/struct_unittest.cc',
93         'public/cpp/bindings/tests/type_conversion_unittest.cc',
94         'public/cpp/bindings/tests/validation_unittest.cc',
95       ],
96     },
97     {
98       # GN version: //mojo/public/cpp/environment/tests:mojo_public_environment_unittests
99       'target_name': 'mojo_public_environment_unittests',
100       'type': 'executable',
101       'dependencies': [
102         '../testing/gtest.gyp:gtest',
103         'mojo_environment_standalone',
104         'mojo_public_test_utils',
105         'mojo_run_all_unittests',
106         'mojo_utility',
107       ],
108       'include_dirs': [ '..' ],
109       'sources': [
110         'public/cpp/environment/tests/async_waiter_unittest.cc',
111         'public/cpp/environment/tests/logger_unittest.cc',
112         'public/cpp/environment/tests/logging_unittest.cc',
113       ],
114     },
115     {
116       # GN version: //mojo/public/cpp/application/tests:mojo_public_application_unittests
117       'target_name': 'mojo_public_application_unittests',
118       'type': 'executable',
119       'dependencies': [
120         '../base/base.gyp:base',
121         '../testing/gtest.gyp:gtest',
122         'mojo_application_standalone',
123         'mojo_utility',
124         'mojo_environment_standalone',
125         'mojo_run_all_unittests',
126       ],
127       'sources': [
128         'public/cpp/application/tests/service_registry_unittest.cc',
129       ],
130     },
131     {
132       # GN version: //mojo/public/cpp/application/tests:mojo_public_system_unittests
133       'target_name': 'mojo_public_system_unittests',
134       'type': 'executable',
135       'dependencies': [
136         '../testing/gtest.gyp:gtest',
137         'mojo_public_test_utils',
138         'mojo_run_all_unittests',
139       ],
140       'include_dirs': [ '..' ],
141       'sources': [
142         'public/c/system/tests/core_unittest.cc',
143         'public/c/system/tests/core_unittest_pure_c.c',
144         'public/c/system/tests/macros_unittest.cc',
145         'public/cpp/system/tests/core_unittest.cc',
146         'public/cpp/system/tests/macros_unittest.cc',
147       ],
148     },
149     {
150       # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unittests
151       'target_name': 'mojo_public_utility_unittests',
152       'type': 'executable',
153       'dependencies': [
154         '../testing/gtest.gyp:gtest',
155         'mojo_public_test_utils',
156         'mojo_run_all_unittests',
157         'mojo_utility',
158       ],
159       'include_dirs' : [ '..' ],
160       'sources': [
161         'public/cpp/utility/tests/mutex_unittest.cc',
162         'public/cpp/utility/tests/run_loop_unittest.cc',
163         'public/cpp/utility/tests/thread_unittest.cc',
164       ],
165       'conditions': [
166         # See crbug.com/342893:
167         ['OS=="win"', {
168           'sources!': [
169             'public/cpp/utility/tests/mutex_unittest.cc',
170             'public/cpp/utility/tests/thread_unittest.cc',
171           ],
172         }],
173       ],
174     },
175     {
176       'target_name': 'mojo_public_system_perftests',
177       'type': 'executable',
178       'dependencies': [
179         '../base/base.gyp:base',
180         '../testing/gtest.gyp:gtest',
181         'mojo_public_test_utils',
182         'mojo_run_all_perftests',
183         'mojo_utility',
184       ],
185       'sources': [
186         'public/c/system/tests/core_perftest.cc',
187       ],
188     },
189     {
190       # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
191       'target_name': 'mojo_public_test_interfaces',
192       'type': 'static_library',
193       'sources': [
194         'public/interfaces/bindings/tests/math_calculator.mojom',
195         'public/interfaces/bindings/tests/rect.mojom',
196         'public/interfaces/bindings/tests/sample_factory.mojom',
197         'public/interfaces/bindings/tests/sample_import.mojom',
198         'public/interfaces/bindings/tests/sample_import2.mojom',
199         'public/interfaces/bindings/tests/sample_interfaces.mojom',
200         'public/interfaces/bindings/tests/sample_service.mojom',
201         'public/interfaces/bindings/tests/serialization_test_structs.mojom',
202         'public/interfaces/bindings/tests/test_structs.mojom',
203         'public/interfaces/bindings/tests/validation_test_interfaces.mojom',
204       ],
205       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
206       'export_dependent_settings': [
207         'mojo_cpp_bindings',
208       ],
209       'dependencies': [
210         'mojo_cpp_bindings',
211       ],
212     },
213     {
214       # GN version: //mojo/public/js/bindings/tests:mojo_js_unittests
215       'target_name': 'mojo_js_unittests',
216       'type': 'executable',
217       'dependencies': [
218         '../gin/gin.gyp:gin_test',
219         'mojo_common_test_support',
220         'mojo_js_bindings_lib',
221         'mojo_public_test_interfaces',
222         'mojo_run_all_unittests',
223       ],
224       'sources': [
225         'public/js/bindings/tests/run_js_tests.cc',
226       ],
227     },
228   ],