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.
8 'target_name': 'mojo_test_support',
9 'type': 'shared_library',
11 'MOJO_TEST_SUPPORT_IMPLEMENTATION',
16 'direct_dependent_settings': {
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',
30 # Make it a run-path dependent library.
31 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
37 'target_name': 'mojo_public_test_utils',
38 'type': 'static_library',
40 '../base/base.gyp:base',
41 '../testing/gtest.gyp:gtest',
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',
50 # TODO(vtl): Reorganize the mojo_public_*_unittests.
52 'target_name': 'mojo_public_bindings_unittests',
55 '../testing/gtest.gyp:gtest',
57 'mojo_environment_standalone',
58 'mojo_public_test_utils',
59 'mojo_run_all_unittests',
60 'mojo_public_test_interfaces',
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',
83 'target_name': 'mojo_public_environment_unittests',
86 '../base/base.gyp:base',
87 '../testing/gtest.gyp:gtest',
88 'mojo_environment_standalone',
89 'mojo_public_test_utils',
90 'mojo_run_all_unittests',
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',
100 'target_name': 'mojo_public_application_unittests',
101 'type': 'executable',
103 '../base/base.gyp:base',
104 '../testing/gtest.gyp:gtest',
105 'mojo_application_standalone',
107 'mojo_environment_standalone',
108 'mojo_run_all_unittests',
111 'public/cpp/application/tests/service_registry_unittest.cc',
115 'target_name': 'mojo_public_system_unittests',
116 'type': 'executable',
118 '../base/base.gyp:base',
119 '../testing/gtest.gyp:gtest',
121 'mojo_public_test_utils',
122 'mojo_run_all_unittests',
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',
133 'target_name': 'mojo_public_utility_unittests',
134 'type': 'executable',
136 '../base/base.gyp:base',
137 '../testing/gtest.gyp:gtest',
139 'mojo_public_test_utils',
140 'mojo_run_all_unittests',
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',
149 # See crbug.com/342893:
152 'public/cpp/utility/tests/mutex_unittest.cc',
153 'public/cpp/utility/tests/thread_unittest.cc',
159 'target_name': 'mojo_public_system_perftests',
160 'type': 'executable',
162 '../base/base.gyp:base',
163 '../testing/gtest.gyp:gtest',
164 'mojo_public_test_utils',
165 'mojo_run_all_perftests',
169 'public/c/system/tests/core_perftest.cc',
173 'target_name': 'mojo_public_test_interfaces',
174 'type': 'static_library',
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',
187 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
188 'export_dependent_settings': [
196 'target_name': 'mojo_js_unittests',
197 'type': 'executable',
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',
206 'public/js/bindings/tests/run_js_tests.cc',