jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 1 | # Copyright 2015 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. |
| 4 | |
| 5 | { |
rockot | b04b89b5 | 2016-06-09 03:58:56 | [diff] [blame] | 6 | 'variables': { |
| 7 | 'chromium_code': 1, |
| 8 | }, |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 9 | 'targets': [ |
| 10 | { |
| 11 | 'target_name': 'mojo_edk_tests', |
| 12 | 'type': 'none', |
| 13 | 'dependencies': [ |
| 14 | # NOTE: If adding a new dependency here, please consider whether it |
| 15 | # should also be added to the list of Mojo-related dependencies of |
| 16 | # build/all.gyp:All on iOS, as All cannot depend on the mojo_base |
| 17 | # target on iOS due to the presence of the js targets, which cause v8 |
| 18 | # to be built. |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 19 | 'mojo_message_pipe_perftests', |
| 20 | 'mojo_public_bindings_perftests', |
| 21 | 'mojo_public_bindings_unittests', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 22 | 'mojo_public_system_perftests', |
| 23 | 'mojo_public_system_unittests', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 24 | 'mojo_system_unittests', |
yzshen | ba7c43f | 2015-12-09 17:36:37 | [diff] [blame] | 25 | 'mojo_js_unittests', |
yzshen | f0984878 | 2016-01-12 00:12:08 | [diff] [blame] | 26 | 'mojo_js_integration_tests', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 27 | ], |
| 28 | }, |
| 29 | { |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 30 | # GN version: //mojo/edk/test:mojo_public_bindings_unittests |
| 31 | 'target_name': 'mojo_public_bindings_unittests', |
| 32 | 'type': 'executable', |
| 33 | 'dependencies': [ |
| 34 | '../testing/gtest.gyp:gtest', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 35 | 'mojo_edk.gyp:mojo_run_all_unittests', |
| 36 | 'mojo_public.gyp:mojo_cpp_bindings', |
| 37 | 'mojo_public.gyp:mojo_public_bindings_test_utils', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 38 | 'mojo_public.gyp:mojo_public_test_utils', |
rockot | 6d7be62 | 2016-06-15 18:25:19 | [diff] [blame] | 39 | 'mojo_public_tests.gyp:mojo_public_test_associated_interfaces', |
| 40 | 'mojo_public_tests.gyp:mojo_public_test_interfaces', |
| 41 | 'mojo_public_tests.gyp:mojo_public_test_interfaces_blink', |
| 42 | 'mojo_public_tests.gyp:mojo_public_test_interfaces_struct_traits', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 43 | ], |
yzshen | 8576d4c | 2016-06-07 00:11:18 | [diff] [blame] | 44 | 'variables': { |
| 45 | 'clang_warning_flags_unset': [ '-Wglobal-constructors' ], |
| 46 | }, |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 47 | 'sources': [ |
yzshen | 583ed94 | 2016-03-15 18:43:53 | [diff] [blame] | 48 | 'public/cpp/bindings/tests/array_common_test.h', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 49 | 'public/cpp/bindings/tests/array_unittest.cc', |
| 50 | 'public/cpp/bindings/tests/associated_interface_unittest.cc', |
yzshen | f5d4893 | 2016-04-22 23:18:33 | [diff] [blame] | 51 | 'public/cpp/bindings/tests/bind_task_runner_unittest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 52 | 'public/cpp/bindings/tests/binding_callback_unittest.cc', |
| 53 | 'public/cpp/bindings/tests/binding_unittest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 54 | 'public/cpp/bindings/tests/buffer_unittest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 55 | 'public/cpp/bindings/tests/connector_unittest.cc', |
| 56 | 'public/cpp/bindings/tests/constant_unittest.cc', |
| 57 | 'public/cpp/bindings/tests/container_test_util.cc', |
yzshen | 583ed94 | 2016-03-15 18:43:53 | [diff] [blame] | 58 | 'public/cpp/bindings/tests/container_test_util.h', |
yzshen | 3854898 | 2016-07-23 03:38:53 | [diff] [blame] | 59 | 'public/cpp/bindings/tests/data_view_unittest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 60 | 'public/cpp/bindings/tests/equals_unittest.cc', |
| 61 | 'public/cpp/bindings/tests/handle_passing_unittest.cc', |
| 62 | 'public/cpp/bindings/tests/interface_ptr_unittest.cc', |
yzshen | 5430084 | 2016-06-16 19:08:56 | [diff] [blame] | 63 | 'public/cpp/bindings/tests/map_common_test.h', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 64 | 'public/cpp/bindings/tests/map_unittest.cc', |
| 65 | 'public/cpp/bindings/tests/message_queue.cc', |
| 66 | 'public/cpp/bindings/tests/message_queue.h', |
| 67 | 'public/cpp/bindings/tests/multiplex_router_unittest.cc', |
| 68 | 'public/cpp/bindings/tests/pickle_unittest.cc', |
yzshen | e180c18 | 2016-06-14 00:37:01 | [diff] [blame] | 69 | 'public/cpp/bindings/tests/pickled_types_blink.cc', |
| 70 | 'public/cpp/bindings/tests/pickled_types_blink.h', |
| 71 | 'public/cpp/bindings/tests/pickled_types_chromium.cc', |
| 72 | 'public/cpp/bindings/tests/pickled_types_chromium.h', |
sammc | a1107b7 | 2016-03-23 18:51:58 | [diff] [blame] | 73 | 'public/cpp/bindings/tests/rect_blink.h', |
| 74 | 'public/cpp/bindings/tests/rect_blink_traits.h', |
| 75 | 'public/cpp/bindings/tests/rect_chromium.h', |
| 76 | 'public/cpp/bindings/tests/rect_chromium_traits.h', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 77 | 'public/cpp/bindings/tests/request_response_unittest.cc', |
| 78 | 'public/cpp/bindings/tests/router_test_util.cc', |
| 79 | 'public/cpp/bindings/tests/router_test_util.h', |
| 80 | 'public/cpp/bindings/tests/router_unittest.cc', |
| 81 | 'public/cpp/bindings/tests/sample_service_unittest.cc', |
| 82 | 'public/cpp/bindings/tests/serialization_warning_unittest.cc', |
yzshen | f3af0de | 2016-02-15 17:46:38 | [diff] [blame] | 83 | 'public/cpp/bindings/tests/stl_converters_unittest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 84 | 'public/cpp/bindings/tests/string_unittest.cc', |
sammc | a1107b7 | 2016-03-23 18:51:58 | [diff] [blame] | 85 | 'public/cpp/bindings/tests/struct_traits_unittest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 86 | 'public/cpp/bindings/tests/struct_unittest.cc', |
rockot | 05b616c | 2016-02-23 09:20:03 | [diff] [blame] | 87 | 'public/cpp/bindings/tests/struct_with_traits_impl.cc', |
| 88 | 'public/cpp/bindings/tests/struct_with_traits_impl.h', |
sammc | a1107b7 | 2016-03-23 18:51:58 | [diff] [blame] | 89 | 'public/cpp/bindings/tests/struct_with_traits_impl_traits.cc', |
| 90 | 'public/cpp/bindings/tests/struct_with_traits_impl_traits.h', |
yzshen | 904b45f | 2016-02-17 23:16:01 | [diff] [blame] | 91 | 'public/cpp/bindings/tests/sync_method_unittest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 92 | 'public/cpp/bindings/tests/type_conversion_unittest.cc', |
| 93 | 'public/cpp/bindings/tests/union_unittest.cc', |
rockot | 8a88e80c | 2016-06-16 02:30:30 | [diff] [blame] | 94 | 'public/cpp/bindings/tests/validation_context_unittest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 95 | 'public/cpp/bindings/tests/validation_unittest.cc', |
yzshen | 583ed94 | 2016-03-15 18:43:53 | [diff] [blame] | 96 | 'public/cpp/bindings/tests/variant_test_util.h', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 97 | ], |
sammc | 6819205 | 2016-04-24 03:07:39 | [diff] [blame] | 98 | 'conditions': [ |
yzshen | 8576d4c | 2016-06-07 00:11:18 | [diff] [blame] | 99 | # TODO(yzshen): Blink-flavor bindings tests should be moved into |
| 100 | # mojo_public_bindings_for_blink_tests (which should eventually be moved |
| 101 | # into blink). |
sammc | 6819205 | 2016-04-24 03:07:39 | [diff] [blame] | 102 | ['OS=="ios"', { |
| 103 | 'dependencies!': [ |
| 104 | 'mojo_public.gyp:mojo_public_test_interfaces_blink', |
| 105 | ], |
| 106 | 'sources!': [ |
| 107 | 'public/cpp/bindings/tests/pickle_unittest.cc', |
yzshen | e180c18 | 2016-06-14 00:37:01 | [diff] [blame] | 108 | 'public/cpp/bindings/tests/pickled_types_blink.cc', |
| 109 | 'public/cpp/bindings/tests/pickled_types_blink.h', |
| 110 | 'public/cpp/bindings/tests/pickled_types_chromium.cc', |
| 111 | 'public/cpp/bindings/tests/pickled_types_chromium.h', |
sammc | 6819205 | 2016-04-24 03:07:39 | [diff] [blame] | 112 | 'public/cpp/bindings/tests/rect_blink.h', |
| 113 | 'public/cpp/bindings/tests/rect_blink_traits.h', |
| 114 | 'public/cpp/bindings/tests/struct_traits_unittest.cc', |
| 115 | ], |
| 116 | }], |
| 117 | ], |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 118 | }, |
| 119 | { |
yzshen | 791f9b2 | 2016-03-14 22:26:22 | [diff] [blame] | 120 | # GN version: //mojo/public/cpp/bindings/tests:for_blink_tests |
| 121 | 'target_name': 'mojo_public_bindings_for_blink_tests', |
| 122 | 'type': 'static_library', |
| 123 | 'dependencies': [ |
| 124 | '../testing/gtest.gyp:gtest', |
| 125 | 'mojo_public.gyp:mojo_cpp_bindings', |
rockot | 6d7be62 | 2016-06-15 18:25:19 | [diff] [blame] | 126 | 'mojo_public_tests.gyp:mojo_public_test_interfaces', |
| 127 | 'mojo_public_tests.gyp:mojo_public_test_wtf_types', |
| 128 | 'mojo_public_tests.gyp:mojo_public_test_wtf_types_blink', |
yzshen | 791f9b2 | 2016-03-14 22:26:22 | [diff] [blame] | 129 | ], |
yzshen | 8576d4c | 2016-06-07 00:11:18 | [diff] [blame] | 130 | 'variables': { |
| 131 | 'clang_warning_flags_unset': [ '-Wglobal-constructors' ], |
| 132 | }, |
yzshen | 791f9b2 | 2016-03-14 22:26:22 | [diff] [blame] | 133 | 'sources': [ |
yzshen | 583ed94 | 2016-03-15 18:43:53 | [diff] [blame] | 134 | 'public/cpp/bindings/tests/array_common_test.h', |
| 135 | 'public/cpp/bindings/tests/container_test_util.cc', |
| 136 | 'public/cpp/bindings/tests/container_test_util.h', |
yzshen | 5430084 | 2016-06-16 19:08:56 | [diff] [blame] | 137 | 'public/cpp/bindings/tests/map_common_test.h', |
yzshen | 583ed94 | 2016-03-15 18:43:53 | [diff] [blame] | 138 | 'public/cpp/bindings/tests/variant_test_util.h', |
| 139 | 'public/cpp/bindings/tests/wtf_array_unittest.cc', |
yzshen | 5430084 | 2016-06-16 19:08:56 | [diff] [blame] | 140 | 'public/cpp/bindings/tests/wtf_map_unittest.cc', |
yzshen | 791f9b2 | 2016-03-14 22:26:22 | [diff] [blame] | 141 | 'public/cpp/bindings/tests/wtf_types_unittest.cc', |
| 142 | ], |
| 143 | }, |
| 144 | { |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 145 | # GN version: //mojo/edk/test:mojo_public_bindings_perftests |
| 146 | 'target_name': 'mojo_public_bindings_perftests', |
| 147 | 'type': 'executable', |
| 148 | 'dependencies': [ |
amistry | 379dad6 | 2016-03-08 03:36:08 | [diff] [blame] | 149 | '../base/base.gyp:test_support_base', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 150 | '../testing/gtest.gyp:gtest', |
| 151 | 'mojo_base.gyp:mojo_common_lib', |
amistry | ff49509 | 2016-03-07 20:51:15 | [diff] [blame] | 152 | 'mojo_edk.gyp:mojo_run_all_perftests', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 153 | 'mojo_public.gyp:mojo_cpp_bindings', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 154 | 'mojo_public.gyp:mojo_public_bindings_test_utils', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 155 | 'mojo_public.gyp:mojo_public_test_utils', |
rockot | 6d7be62 | 2016-06-15 18:25:19 | [diff] [blame] | 156 | 'mojo_public_tests.gyp:mojo_public_test_interfaces', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 157 | ], |
| 158 | 'sources': [ |
| 159 | 'public/cpp/bindings/tests/bindings_perftest.cc', |
amistry | 379dad6 | 2016-03-08 03:36:08 | [diff] [blame] | 160 | 'public/cpp/bindings/tests/e2e_perftest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 161 | ], |
| 162 | }, |
| 163 | { |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 164 | # GN version: //mojo/public/cpp/system/tests:mojo_public_system_unittests |
| 165 | # and //mojo/public/c/system/tests |
| 166 | 'target_name': 'mojo_public_system_unittests', |
| 167 | 'type': 'executable', |
| 168 | 'dependencies': [ |
| 169 | '../testing/gtest.gyp:gtest', |
| 170 | 'mojo_edk.gyp:mojo_run_all_unittests', |
rockot | e5d711e | 2016-03-07 02:36:52 | [diff] [blame] | 171 | 'mojo_public.gyp:mojo_cpp_system', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 172 | 'mojo_public.gyp:mojo_public_test_utils', |
| 173 | ], |
| 174 | 'sources': [ |
rockot | b04b89b5 | 2016-06-09 03:58:56 | [diff] [blame] | 175 | '<(DEPTH)/mojo/public/c/system/tests/core_unittest.cc', |
| 176 | '<(DEPTH)/mojo/public/c/system/tests/core_unittest_pure_c.c', |
| 177 | '<(DEPTH)/mojo/public/c/system/tests/macros_unittest.cc', |
| 178 | '<(DEPTH)/mojo/public/cpp/system/tests/core_unittest.cc', |
| 179 | '<(DEPTH)/mojo/public/cpp/system/tests/watcher_unittest.cc', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 180 | ], |
| 181 | }, |
| 182 | { |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 183 | # GN version: //mojo/edk/test:mojo_public_system_perftests |
| 184 | 'target_name': 'mojo_public_system_perftests', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 185 | 'type': 'executable', |
| 186 | 'dependencies': [ |
| 187 | '../base/base.gyp:base', |
| 188 | '../testing/gtest.gyp:gtest', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 189 | 'mojo_edk.gyp:mojo_run_all_perftests', |
rockot | b04b89b5 | 2016-06-09 03:58:56 | [diff] [blame] | 190 | 'mojo_public.gyp:mojo_public_system', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 191 | 'mojo_public.gyp:mojo_public_test_utils', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 192 | ], |
| 193 | 'sources': [ |
| 194 | 'public/c/system/tests/core_perftest.cc', |
| 195 | ], |
| 196 | }, |
| 197 | { |
| 198 | # GN version: //mojo/edk/system:mojo_system_unittests |
| 199 | 'target_name': 'mojo_system_unittests', |
amistry | 0681599 | 2016-05-05 08:24:56 | [diff] [blame] | 200 | 'type': '<(gtest_target_type)', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 201 | 'dependencies': [ |
| 202 | '../base/base.gyp:base', |
| 203 | '../testing/gtest.gyp:gtest', |
| 204 | 'mojo_edk.gyp:mojo_common_test_support', |
| 205 | 'mojo_edk.gyp:mojo_run_all_unittests', |
| 206 | 'mojo_edk.gyp:mojo_system_impl', |
rockot | 6c72bfdb | 2016-05-13 06:28:37 | [diff] [blame] | 207 | 'mojo_edk.gyp:mojo_system_ports', |
rockot | b04b89b5 | 2016-06-09 03:58:56 | [diff] [blame] | 208 | 'mojo_public.gyp:mojo_public_system', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 209 | ], |
| 210 | 'sources': [ |
| 211 | 'edk/embedder/embedder_unittest.cc', |
| 212 | 'edk/embedder/platform_channel_pair_posix_unittest.cc', |
amistry | f894844 | 2016-02-12 06:09:39 | [diff] [blame] | 213 | 'edk/embedder/platform_shared_buffer_unittest.cc', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 214 | 'edk/system/awakable_list_unittest.cc', |
| 215 | 'edk/system/core_test_base.cc', |
| 216 | 'edk/system/core_test_base.h', |
| 217 | 'edk/system/core_unittest.cc', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 218 | 'edk/system/message_pipe_unittest.cc', |
| 219 | 'edk/system/multiprocess_message_pipe_unittest.cc', |
| 220 | 'edk/system/options_validation_unittest.cc', |
| 221 | 'edk/system/platform_handle_dispatcher_unittest.cc', |
rockot | 28a287e | 2016-05-24 02:51:37 | [diff] [blame] | 222 | 'edk/system/platform_wrapper_unittest.cc', |
rockot | 6c72bfdb | 2016-05-13 06:28:37 | [diff] [blame] | 223 | 'edk/system/ports/ports_unittest.cc', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 224 | 'edk/system/shared_buffer_dispatcher_unittest.cc', |
rockot | ce69a04 | 2016-01-26 19:23:21 | [diff] [blame] | 225 | 'edk/system/shared_buffer_unittest.cc', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 226 | 'edk/system/test_utils.cc', |
| 227 | 'edk/system/test_utils.h', |
amistry | 3975d22 | 2015-12-11 03:45:17 | [diff] [blame] | 228 | 'edk/system/wait_set_dispatcher_unittest.cc', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 229 | 'edk/system/waiter_test_utils.cc', |
| 230 | 'edk/system/waiter_test_utils.h', |
| 231 | 'edk/system/waiter_unittest.cc', |
rockot | 49b69e6b27 | 2016-03-02 03:46:37 | [diff] [blame] | 232 | 'edk/system/watch_unittest.cc', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 233 | ], |
| 234 | 'conditions': [ |
| 235 | ['OS=="ios"', { |
| 236 | 'sources!': [ |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 237 | 'edk/system/multiprocess_message_pipe_unittest.cc', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 238 | ], |
| 239 | }], |
amistry | 0681599 | 2016-05-05 08:24:56 | [diff] [blame] | 240 | ['OS == "android"', { |
| 241 | 'dependencies': [ |
| 242 | '../testing/android/native_test.gyp:native_test_native_code', |
| 243 | ], |
| 244 | }], |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 245 | ], |
| 246 | }, |
| 247 | { |
| 248 | # GN version: //mojo/edk/system:mojo_message_pipe_perftests |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 249 | 'target_name': 'mojo_message_pipe_perftests', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 250 | 'type': 'executable', |
| 251 | 'dependencies': [ |
| 252 | '../base/base.gyp:base', |
| 253 | '../base/base.gyp:test_support_base', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 254 | '../testing/gtest.gyp:gtest', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 255 | 'mojo_edk.gyp:mojo_common_test_support', |
| 256 | 'mojo_edk.gyp:mojo_run_all_perftests', |
| 257 | 'mojo_edk.gyp:mojo_system_impl', |
rockot | b04b89b5 | 2016-06-09 03:58:56 | [diff] [blame] | 258 | 'mojo_public.gyp:mojo_public_system', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 259 | ], |
| 260 | 'sources': [ |
| 261 | 'edk/system/message_pipe_perftest.cc', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 262 | 'edk/system/test_utils.cc', |
| 263 | 'edk/system/test_utils.h', |
| 264 | ], |
| 265 | }, |
yzshen | f0984878 | 2016-01-12 00:12:08 | [diff] [blame] | 266 | # TODO(yzshen): fix the following two targets. |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 267 | { |
| 268 | # GN version: //mojo/edk/js/test:js_unittests |
yzshen | ba7c43f | 2015-12-09 17:36:37 | [diff] [blame] | 269 | 'target_name': 'mojo_js_unittests', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 270 | 'type': 'executable', |
| 271 | 'dependencies': [ |
| 272 | '../gin/gin.gyp:gin_test', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 273 | 'mojo_edk.gyp:mojo_common_test_support', |
| 274 | 'mojo_edk.gyp:mojo_run_all_unittests', |
| 275 | 'mojo_edk.gyp:mojo_js_lib', |
rockot | 6d7be62 | 2016-06-15 18:25:19 | [diff] [blame] | 276 | 'mojo_public_tests.gyp:mojo_public_test_interfaces', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 277 | ], |
| 278 | 'sources': [ |
| 279 | 'edk/js/handle_unittest.cc', |
| 280 | 'edk/js/test/run_js_tests.cc', |
| 281 | ], |
| 282 | }, |
| 283 | { |
| 284 | # GN version: //mojo/edk/js/test:js_integration_tests |
yzshen | f0984878 | 2016-01-12 00:12:08 | [diff] [blame] | 285 | 'target_name': 'mojo_js_integration_tests', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 286 | 'type': 'executable', |
| 287 | 'dependencies': [ |
| 288 | '../base/base.gyp:base', |
| 289 | '../gin/gin.gyp:gin_test', |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 290 | 'mojo_base.gyp:mojo_common_lib', |
| 291 | 'mojo_edk.gyp:mojo_js_lib', |
| 292 | 'mojo_edk.gyp:mojo_run_all_unittests', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 293 | 'mojo_js_to_cpp_bindings', |
rockot | 6d7be62 | 2016-06-15 18:25:19 | [diff] [blame] | 294 | 'mojo_public_tests.gyp:mojo_public_test_interfaces', |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 295 | ], |
| 296 | 'sources': [ |
| 297 | 'edk/js/test/run_js_integration_tests.cc', |
| 298 | 'edk/js/tests/js_to_cpp_tests.cc', |
| 299 | ], |
| 300 | }, |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 301 | { |
| 302 | 'target_name': 'mojo_js_to_cpp_bindings', |
| 303 | 'type': 'none', |
| 304 | 'variables': { |
| 305 | 'mojom_files': [ |
| 306 | 'edk/js/tests/js_to_cpp.mojom', |
| 307 | ], |
| 308 | }, |
| 309 | 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], |
| 310 | }, |
| 311 | ], |
| 312 | 'conditions': [ |
| 313 | ['test_isolation_mode != "noop"', { |
| 314 | 'targets': [ |
| 315 | { |
| 316 | 'target_name': 'mojo_public_bindings_unittests_run', |
| 317 | 'type': 'none', |
| 318 | 'dependencies': [ |
| 319 | 'mojo_public_bindings_unittests', |
| 320 | ], |
| 321 | 'includes': [ |
| 322 | '../build/isolate.gypi', |
| 323 | ], |
| 324 | 'sources': [ |
| 325 | 'mojo_public_bindings_unittests.isolate', |
| 326 | ], |
| 327 | }, |
| 328 | { |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 329 | 'target_name': 'mojo_public_system_unittests_run', |
| 330 | 'type': 'none', |
| 331 | 'dependencies': [ |
| 332 | 'mojo_public_system_unittests', |
| 333 | ], |
| 334 | 'includes': [ |
| 335 | '../build/isolate.gypi', |
| 336 | ], |
| 337 | 'sources': [ |
| 338 | 'mojo_public_system_unittests.isolate', |
| 339 | ], |
| 340 | }, |
sammc | 98ecd4a | 2016-04-29 01:59:21 | [diff] [blame] | 341 | { |
| 342 | 'target_name': 'mojo_js_unittests_run', |
| 343 | 'type': 'none', |
| 344 | 'dependencies': [ |
| 345 | 'mojo_js_unittests', |
| 346 | ], |
| 347 | 'includes': [ |
| 348 | '../build/isolate.gypi', |
| 349 | ], |
| 350 | 'sources': [ |
| 351 | 'mojo_js_unittests.isolate', |
| 352 | ], |
| 353 | }, |
| 354 | { |
| 355 | 'target_name': 'mojo_js_integration_tests_run', |
| 356 | 'type': 'none', |
| 357 | 'dependencies': [ |
| 358 | 'mojo_js_integration_tests', |
| 359 | ], |
| 360 | 'includes': [ |
| 361 | '../build/isolate.gypi', |
| 362 | ], |
| 363 | 'sources': [ |
| 364 | 'mojo_js_integration_tests.isolate', |
| 365 | ], |
| 366 | }, |
| 367 | { |
| 368 | 'target_name': 'mojo_system_unittests_run', |
| 369 | 'type': 'none', |
| 370 | 'dependencies': [ |
| 371 | 'mojo_system_unittests', |
| 372 | ], |
| 373 | 'includes': [ |
| 374 | '../build/isolate.gypi', |
| 375 | ], |
| 376 | 'sources': [ |
| 377 | 'mojo_system_unittests.isolate', |
| 378 | ], |
| 379 | }, |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 380 | ], |
| 381 | }], |
amistry | 0681599 | 2016-05-05 08:24:56 | [diff] [blame] | 382 | ['OS == "android"', { |
| 383 | 'targets': [ |
| 384 | { |
| 385 | 'target_name': 'mojo_system_unittests_apk', |
| 386 | 'type': 'none', |
| 387 | 'dependencies': [ |
| 388 | 'mojo_system_unittests', |
| 389 | ], |
| 390 | 'variables': { |
| 391 | 'test_suite_name': 'mojo_system_unittests', |
| 392 | }, |
| 393 | 'includes': [ '../build/apk_test.gypi' ], |
| 394 | }, |
| 395 | ], |
| 396 | }], |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 397 | ], |
| 398 | } |