| 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 import("../mojo_edk.gni") | 5 import("../mojo_edk.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
| 10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 } | 128 } |
| 129 | 129 |
| 130 group("tests") { | 130 group("tests") { |
| 131 testonly = true | 131 testonly = true |
| 132 deps = [ | 132 deps = [ |
| 133 ":mojo_system_perftests", | 133 ":mojo_system_perftests", |
| 134 ":mojo_system_unittests", | 134 ":mojo_system_unittests", |
| 135 ] | 135 ] |
| 136 } | 136 } |
| 137 | 137 |
| 138 test("mojo_system_unittests") { | 138 mojo_edk_unittests("mojo_system_unittests") { |
| 139 sources = [ | 139 sources = [ |
| 140 # TODO(vtl): This should be in its own mojo_edk_unittests target. |
| 140 "../test/multiprocess_test_helper_unittest.cc", | 141 "../test/multiprocess_test_helper_unittest.cc", |
| 141 "awakable_list_unittest.cc", | 142 "awakable_list_unittest.cc", |
| 142 "channel_endpoint_id_unittest.cc", | 143 "channel_endpoint_id_unittest.cc", |
| 143 "channel_endpoint_unittest.cc", | 144 "channel_endpoint_unittest.cc", |
| 144 "channel_manager_unittest.cc", | 145 "channel_manager_unittest.cc", |
| 145 "channel_test_base.cc", | 146 "channel_test_base.cc", |
| 146 "channel_test_base.h", | 147 "channel_test_base.h", |
| 147 "channel_unittest.cc", | 148 "channel_unittest.cc", |
| 148 "connection_manager_unittest.cc", | 149 "connection_manager_unittest.cc", |
| 149 "core_test_base.cc", | 150 "core_test_base.cc", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 173 "test_channel_endpoint_client.cc", | 174 "test_channel_endpoint_client.cc", |
| 174 "test_channel_endpoint_client.h", | 175 "test_channel_endpoint_client.h", |
| 175 "unique_identifier_unittest.cc", | 176 "unique_identifier_unittest.cc", |
| 176 "waiter_test_utils.cc", | 177 "waiter_test_utils.cc", |
| 177 "waiter_test_utils.h", | 178 "waiter_test_utils.h", |
| 178 "waiter_unittest.cc", | 179 "waiter_unittest.cc", |
| 179 ] | 180 ] |
| 180 | 181 |
| 181 deps = [ | 182 deps = [ |
| 182 ":system", | 183 ":system", |
| 183 "../embedder:unittests", | |
| 184 "../test:test_support", | |
| 185 "../util", | |
| 186 "../util:unittests", | |
| 187 "test", | |
| 188 "test:run_all_unittests", | |
| 189 "test:unittests", | |
| 190 "//base", | 184 "//base", |
| 191 "//testing/gtest", | 185 "//testing/gtest", |
| 192 ] | 186 ] |
| 187 |
| 188 mojo_edk_deps = [ |
| 189 # TODO(vtl): Add separate mojo_edk_unittests targets for these. |
| 190 "mojo/edk/embedder:unittests", |
| 191 "mojo/edk/system/test:unittests", |
| 192 "mojo/edk/util:unittests", |
| 193 |
| 194 "mojo/edk/system/test", |
| 195 "mojo/edk/test:test_support", |
| 196 "mojo/edk/util", |
| 197 ] |
| 193 } | 198 } |
| 194 | 199 |
| 195 test("mojo_system_perftests") { | 200 mojo_edk_perftests("mojo_system_perftests") { |
| 196 sources = [ | 201 sources = [ |
| 197 "message_pipe_perftest.cc", | 202 "message_pipe_perftest.cc", |
| 198 "message_pipe_test_utils.cc", | 203 "message_pipe_test_utils.cc", |
| 199 "message_pipe_test_utils.h", | 204 "message_pipe_test_utils.h", |
| 200 ] | 205 ] |
| 201 | 206 |
| 202 deps = [ | 207 deps = [ |
| 203 ":system", | 208 ":system", |
| 204 "../test:test_support", | |
| 205 "../util:perftests", | |
| 206 "test", | |
| 207 "test:perf", | |
| 208 "test:run_all_perftests", | |
| 209 "//base", | 209 "//base", |
| 210 "//testing/gtest", | 210 "//testing/gtest", |
| 211 ] | 211 ] |
| 212 |
| 213 mojo_edk_deps = [ |
| 214 # TODO(vtl): Add separate test targets for this. |
| 215 "mojo/edk/util:perftests", |
| 216 |
| 217 "mojo/edk/system/test", |
| 218 "mojo/edk/system/test:perf", |
| 219 "mojo/edk/test:test_support", |
| 220 ] |
| 212 } | 221 } |
| OLD | NEW |