OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
| 8 # GN version: //mojo/public/c/test_support |
8 'target_name': 'mojo_test_support', | 9 'target_name': 'mojo_test_support', |
9 'type': 'shared_library', | 10 'type': 'shared_library', |
10 'defines': [ | 11 'defines': [ |
11 'MOJO_TEST_SUPPORT_IMPLEMENTATION', | 12 'MOJO_TEST_SUPPORT_IMPLEMENTATION', |
12 ], | 13 ], |
13 'include_dirs': [ | 14 'include_dirs': [ |
14 '..', | 15 '..', |
15 ], | 16 ], |
16 'direct_dependent_settings': { | 17 'direct_dependent_settings': { |
17 'include_dirs': [ | 18 'include_dirs': [ |
18 '..', | 19 '..', |
19 ], | 20 ], |
20 }, | 21 }, |
21 'sources': [ | 22 'sources': [ |
22 'public/c/test_support/test_support.h', | 23 'public/c/test_support/test_support.h', |
23 'public/c/test_support/test_support_export.h', | 24 'public/c/test_support/test_support_export.h', |
24 'public/tests/test_support_private.cc', | 25 'public/tests/test_support_private.cc', |
25 'public/tests/test_support_private.h', | 26 'public/tests/test_support_private.h', |
26 ], | 27 ], |
27 'conditions': [ | 28 'conditions': [ |
28 ['OS=="mac"', { | 29 ['OS=="mac"', { |
29 'xcode_settings': { | 30 'xcode_settings': { |
30 # Make it a run-path dependent library. | 31 # Make it a run-path dependent library. |
31 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 32 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
32 }, | 33 }, |
33 }], | 34 }], |
34 ], | 35 ], |
35 }, | 36 }, |
36 { | 37 { |
| 38 # GN version: //mojo/public/cpp/test_support:test_utils |
37 'target_name': 'mojo_public_test_utils', | 39 'target_name': 'mojo_public_test_utils', |
38 'type': 'static_library', | 40 'type': 'static_library', |
39 'dependencies': [ | 41 'dependencies': [ |
40 '../base/base.gyp:base', | 42 '../base/base.gyp:base', |
41 '../testing/gtest.gyp:gtest', | 43 '../testing/gtest.gyp:gtest', |
42 'mojo_test_support', | 44 'mojo_test_support', |
43 ], | 45 ], |
44 'sources': [ | 46 'sources': [ |
45 'public/cpp/test_support/lib/test_support.cc', | 47 'public/cpp/test_support/lib/test_support.cc', |
46 'public/cpp/test_support/lib/test_utils.cc', | 48 'public/cpp/test_support/lib/test_utils.cc', |
47 'public/cpp/test_support/test_utils.h', | 49 'public/cpp/test_support/test_utils.h', |
48 ], | 50 ], |
49 }, | 51 }, |
50 # TODO(vtl): Reorganize the mojo_public_*_unittests. | 52 # TODO(vtl): Reorganize the mojo_public_*_unittests. |
51 { | 53 { |
| 54 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_unitte
sts |
52 'target_name': 'mojo_public_bindings_unittests', | 55 'target_name': 'mojo_public_bindings_unittests', |
53 'type': 'executable', | 56 'type': 'executable', |
54 'dependencies': [ | 57 'dependencies': [ |
55 '../testing/gtest.gyp:gtest', | 58 '../testing/gtest.gyp:gtest', |
56 'mojo_cpp_bindings', | 59 'mojo_cpp_bindings', |
57 'mojo_environment_standalone', | 60 'mojo_environment_standalone', |
58 'mojo_public_test_utils', | 61 'mojo_public_test_utils', |
59 'mojo_run_all_unittests', | 62 'mojo_run_all_unittests', |
60 'mojo_public_test_interfaces', | 63 'mojo_public_test_interfaces', |
61 'mojo_utility', | 64 'mojo_utility', |
(...skipping 11 matching lines...) Expand all Loading... |
73 'public/cpp/bindings/tests/serialization_warning_unittest.cc', | 76 'public/cpp/bindings/tests/serialization_warning_unittest.cc', |
74 'public/cpp/bindings/tests/string_unittest.cc', | 77 'public/cpp/bindings/tests/string_unittest.cc', |
75 'public/cpp/bindings/tests/struct_unittest.cc', | 78 'public/cpp/bindings/tests/struct_unittest.cc', |
76 'public/cpp/bindings/tests/type_conversion_unittest.cc', | 79 'public/cpp/bindings/tests/type_conversion_unittest.cc', |
77 'public/cpp/bindings/tests/validation_test_input_parser.cc', | 80 'public/cpp/bindings/tests/validation_test_input_parser.cc', |
78 'public/cpp/bindings/tests/validation_test_input_parser.h', | 81 'public/cpp/bindings/tests/validation_test_input_parser.h', |
79 'public/cpp/bindings/tests/validation_unittest.cc', | 82 'public/cpp/bindings/tests/validation_unittest.cc', |
80 ], | 83 ], |
81 }, | 84 }, |
82 { | 85 { |
| 86 # GN version: //mojo/public/cpp/environment/tests:mojo_public_environment_
unittests |
83 'target_name': 'mojo_public_environment_unittests', | 87 'target_name': 'mojo_public_environment_unittests', |
84 'type': 'executable', | 88 'type': 'executable', |
85 'dependencies': [ | 89 'dependencies': [ |
86 '../base/base.gyp:base', | |
87 '../testing/gtest.gyp:gtest', | 90 '../testing/gtest.gyp:gtest', |
88 'mojo_environment_standalone', | 91 'mojo_environment_standalone', |
89 'mojo_public_test_utils', | 92 'mojo_public_test_utils', |
90 'mojo_run_all_unittests', | 93 'mojo_run_all_unittests', |
91 'mojo_utility', | 94 'mojo_utility', |
92 ], | 95 ], |
| 96 'include_dirs': [ '..' ], |
93 'sources': [ | 97 'sources': [ |
94 'public/cpp/environment/tests/async_waiter_unittest.cc', | 98 'public/cpp/environment/tests/async_waiter_unittest.cc', |
95 'public/cpp/environment/tests/logger_unittest.cc', | 99 'public/cpp/environment/tests/logger_unittest.cc', |
96 'public/cpp/environment/tests/logging_unittest.cc', | 100 'public/cpp/environment/tests/logging_unittest.cc', |
97 ], | 101 ], |
98 }, | 102 }, |
99 { | 103 { |
| 104 # GN version: //mojo/public/cpp/application/tests:mojo_public_application_
unittests |
100 'target_name': 'mojo_public_application_unittests', | 105 'target_name': 'mojo_public_application_unittests', |
101 'type': 'executable', | 106 'type': 'executable', |
102 'dependencies': [ | 107 'dependencies': [ |
103 '../base/base.gyp:base', | 108 '../base/base.gyp:base', |
104 '../testing/gtest.gyp:gtest', | 109 '../testing/gtest.gyp:gtest', |
105 'mojo_application_standalone', | 110 'mojo_application_standalone', |
106 'mojo_utility', | 111 'mojo_utility', |
107 'mojo_environment_standalone', | 112 'mojo_environment_standalone', |
108 'mojo_run_all_unittests', | 113 'mojo_run_all_unittests', |
109 ], | 114 ], |
110 'sources': [ | 115 'sources': [ |
111 'public/cpp/application/tests/service_registry_unittest.cc', | 116 'public/cpp/application/tests/service_registry_unittest.cc', |
112 ], | 117 ], |
113 }, | 118 }, |
114 { | 119 { |
| 120 # GN version: //mojo/public/cpp/application/tests:mojo_public_system_unitt
ests |
115 'target_name': 'mojo_public_system_unittests', | 121 'target_name': 'mojo_public_system_unittests', |
116 'type': 'executable', | 122 'type': 'executable', |
117 'dependencies': [ | 123 'dependencies': [ |
118 '../base/base.gyp:base', | |
119 '../testing/gtest.gyp:gtest', | 124 '../testing/gtest.gyp:gtest', |
120 'mojo_cpp_bindings', | |
121 'mojo_public_test_utils', | 125 'mojo_public_test_utils', |
122 'mojo_run_all_unittests', | 126 'mojo_run_all_unittests', |
123 ], | 127 ], |
| 128 'include_dirs': [ '..' ], |
124 'sources': [ | 129 'sources': [ |
125 'public/c/system/tests/core_unittest.cc', | 130 'public/c/system/tests/core_unittest.cc', |
126 'public/c/system/tests/core_unittest_pure_c.c', | 131 'public/c/system/tests/core_unittest_pure_c.c', |
127 'public/c/system/tests/macros_unittest.cc', | 132 'public/c/system/tests/macros_unittest.cc', |
128 'public/cpp/system/tests/core_unittest.cc', | 133 'public/cpp/system/tests/core_unittest.cc', |
129 'public/cpp/system/tests/macros_unittest.cc', | 134 'public/cpp/system/tests/macros_unittest.cc', |
130 ], | 135 ], |
131 }, | 136 }, |
132 { | 137 { |
| 138 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unit
tests |
133 'target_name': 'mojo_public_utility_unittests', | 139 'target_name': 'mojo_public_utility_unittests', |
134 'type': 'executable', | 140 'type': 'executable', |
135 'dependencies': [ | 141 'dependencies': [ |
136 '../base/base.gyp:base', | |
137 '../testing/gtest.gyp:gtest', | 142 '../testing/gtest.gyp:gtest', |
138 'mojo_cpp_bindings', | |
139 'mojo_public_test_utils', | 143 'mojo_public_test_utils', |
140 'mojo_run_all_unittests', | 144 'mojo_run_all_unittests', |
141 'mojo_utility', | 145 'mojo_utility', |
142 ], | 146 ], |
| 147 'include_dirs' : [ '..' ], |
143 'sources': [ | 148 'sources': [ |
144 'public/cpp/utility/tests/mutex_unittest.cc', | 149 'public/cpp/utility/tests/mutex_unittest.cc', |
145 'public/cpp/utility/tests/run_loop_unittest.cc', | 150 'public/cpp/utility/tests/run_loop_unittest.cc', |
146 'public/cpp/utility/tests/thread_unittest.cc', | 151 'public/cpp/utility/tests/thread_unittest.cc', |
147 ], | 152 ], |
148 'conditions': [ | 153 'conditions': [ |
149 # See crbug.com/342893: | 154 # See crbug.com/342893: |
150 ['OS=="win"', { | 155 ['OS=="win"', { |
151 'sources!': [ | 156 'sources!': [ |
152 'public/cpp/utility/tests/mutex_unittest.cc', | 157 'public/cpp/utility/tests/mutex_unittest.cc', |
(...skipping 10 matching lines...) Expand all Loading... |
163 '../testing/gtest.gyp:gtest', | 168 '../testing/gtest.gyp:gtest', |
164 'mojo_public_test_utils', | 169 'mojo_public_test_utils', |
165 'mojo_run_all_perftests', | 170 'mojo_run_all_perftests', |
166 'mojo_utility', | 171 'mojo_utility', |
167 ], | 172 ], |
168 'sources': [ | 173 'sources': [ |
169 'public/c/system/tests/core_perftest.cc', | 174 'public/c/system/tests/core_perftest.cc', |
170 ], | 175 ], |
171 }, | 176 }, |
172 { | 177 { |
| 178 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces |
173 'target_name': 'mojo_public_test_interfaces', | 179 'target_name': 'mojo_public_test_interfaces', |
174 'type': 'static_library', | 180 'type': 'static_library', |
175 'sources': [ | 181 'sources': [ |
176 'public/interfaces/bindings/tests/math_calculator.mojom', | 182 'public/interfaces/bindings/tests/math_calculator.mojom', |
177 'public/interfaces/bindings/tests/sample_factory.mojom', | 183 'public/interfaces/bindings/tests/sample_factory.mojom', |
178 'public/interfaces/bindings/tests/sample_import.mojom', | 184 'public/interfaces/bindings/tests/sample_import.mojom', |
179 'public/interfaces/bindings/tests/sample_import2.mojom', | 185 'public/interfaces/bindings/tests/sample_import2.mojom', |
180 'public/interfaces/bindings/tests/sample_interfaces.mojom', | 186 'public/interfaces/bindings/tests/sample_interfaces.mojom', |
181 'public/interfaces/bindings/tests/sample_service.mojom', | 187 'public/interfaces/bindings/tests/sample_service.mojom', |
182 'public/interfaces/bindings/tests/serialization_test_structs.mojom', | 188 'public/interfaces/bindings/tests/serialization_test_structs.mojom', |
183 'public/interfaces/bindings/tests/test_structs.mojom', | 189 'public/interfaces/bindings/tests/test_structs.mojom', |
184 'public/interfaces/bindings/tests/validation_test_interfaces.mojom', | 190 'public/interfaces/bindings/tests/validation_test_interfaces.mojom', |
185 ], | 191 ], |
186 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], | 192 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], |
187 'export_dependent_settings': [ | 193 'export_dependent_settings': [ |
188 'mojo_cpp_bindings', | 194 'mojo_cpp_bindings', |
189 ], | 195 ], |
190 'dependencies': [ | 196 'dependencies': [ |
191 'mojo_cpp_bindings', | 197 'mojo_cpp_bindings', |
192 ], | 198 ], |
193 }, | 199 }, |
194 { | 200 { |
| 201 # GN version: //mojo/public/js/bindings/tests:mojo_js_unittests |
195 'target_name': 'mojo_js_unittests', | 202 'target_name': 'mojo_js_unittests', |
196 'type': 'executable', | 203 'type': 'executable', |
197 'dependencies': [ | 204 'dependencies': [ |
198 '../gin/gin.gyp:gin_test', | 205 '../gin/gin.gyp:gin_test', |
199 'mojo_common_test_support', | 206 'mojo_common_test_support', |
200 'mojo_js_bindings_lib', | 207 'mojo_js_bindings_lib', |
201 'mojo_public_test_interfaces', | 208 'mojo_public_test_interfaces', |
202 'mojo_run_all_unittests', | 209 'mojo_run_all_unittests', |
203 ], | 210 ], |
204 'sources': [ | 211 'sources': [ |
205 'public/js/bindings/tests/run_js_tests.cc', | 212 'public/js/bindings/tests/run_js_tests.cc', |
206 ], | 213 ], |
207 }, | 214 }, |
208 ], | 215 ], |
209 } | 216 } |
OLD | NEW |