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/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',
82 'target_name': 'mojo_public_environment_unittests',
85 '../base/base.gyp:base',
86 '../testing/gtest.gyp:gtest',
87 'mojo_environment_standalone',
88 'mojo_public_test_utils',
89 'mojo_run_all_unittests',
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',
99 'target_name': 'mojo_public_application_unittests',
100 'type': 'executable',
102 '../base/base.gyp:base',
103 '../testing/gtest.gyp:gtest',
105 'mojo_run_all_unittests',
106 'mojo_environment_standalone',
110 'public/cpp/application/tests/service_registry_unittest.cc',
114 'target_name': 'mojo_public_system_unittests',
115 'type': 'executable',
117 '../base/base.gyp:base',
118 '../testing/gtest.gyp:gtest',
120 'mojo_public_test_utils',
121 'mojo_run_all_unittests',
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',
132 'target_name': 'mojo_public_utility_unittests',
133 'type': 'executable',
135 '../base/base.gyp:base',
136 '../testing/gtest.gyp:gtest',
138 'mojo_public_test_utils',
139 'mojo_run_all_unittests',
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',
148 # See crbug.com/342893:
151 'public/cpp/utility/tests/mutex_unittest.cc',
152 'public/cpp/utility/tests/thread_unittest.cc',
158 'target_name': 'mojo_public_system_perftests',
159 'type': 'executable',
161 '../base/base.gyp:base',
162 '../testing/gtest.gyp:gtest',
163 'mojo_public_test_utils',
164 'mojo_run_all_perftests',
168 'public/c/system/tests/core_perftest.cc',
172 'target_name': 'mojo_public_test_interfaces',
173 'type': 'static_library',
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',
184 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
185 'export_dependent_settings': [
193 'target_name': 'mojo_js_unittests',
194 'type': 'executable',
196 '../gin/gin.gyp:gin_test',
197 'mojo_common_test_support',
198 'mojo_js_bindings_lib',
199 'mojo_public_test_interfaces',
200 'mojo_run_all_unittests',
203 'public/js/bindings/tests/run_js_tests.cc',