| 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 source_set("tests") { | 5 import("../../../mojo_sdk.gni") |
| 6 |
| 7 mojo_sdk_source_set("tests") { |
| 6 testonly = true | 8 testonly = true |
| 7 visibility = [ "//mojo/public/cpp/system/tests:mojo_public_system_unittests" ] | |
| 8 | 9 |
| 9 deps = [ | 10 mojo_sdk_visibility = |
| 10 "//mojo/public/c/environment", | 11 [ "mojo/public/cpp/system/tests:mojo_public_system_unittests" ] |
| 11 "//mojo/public/c/system", | |
| 12 "//testing/gtest", | |
| 13 ] | |
| 14 | 12 |
| 15 sources = [ | 13 sources = [ |
| 16 "core_unittest.cc", | 14 "core_unittest.cc", |
| 17 "core_unittest_pure_c.c", | 15 "core_unittest_pure_c.c", |
| 18 "macros_unittest.cc", | 16 "macros_unittest.cc", |
| 19 ] | 17 ] |
| 18 |
| 19 deps = [ |
| 20 "//testing/gtest", |
| 21 ] |
| 22 |
| 23 mojo_sdk_deps = [ |
| 24 "mojo/public/c/environment", |
| 25 "mojo/public/c/system", |
| 26 ] |
| 20 } | 27 } |
| 21 | 28 |
| 22 # GYP version: mojo/mojo_base.gyp:mojo_public_system_perftests | 29 mojo_sdk_source_set("perftests") { |
| 23 test("perftests") { | 30 testonly = true |
| 24 output_name = "mojo_public_system_perftests" | |
| 25 | 31 |
| 26 sources = [ | 32 sources = [ |
| 27 "core_perftest.cc", | 33 "core_perftest.cc", |
| 28 ] | 34 ] |
| 29 | 35 |
| 30 deps = [ | 36 deps = [ |
| 31 "//mojo/edk/test:run_all_perftests", | |
| 32 "//mojo/public/c/environment", | |
| 33 "//mojo/public/cpp/system", | |
| 34 "//mojo/public/cpp/test_support:test_utils", | |
| 35 "//mojo/public/cpp/utility", | |
| 36 "//testing/gtest", | 37 "//testing/gtest", |
| 37 ] | 38 ] |
| 39 |
| 40 mojo_sdk_deps = [ |
| 41 "mojo/public/c/environment", |
| 42 "mojo/public/cpp/system", |
| 43 "mojo/public/cpp/test_support:test_utils", |
| 44 "mojo/public/cpp/utility", |
| 45 ] |
| 38 } | 46 } |
| OLD | NEW |