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