| 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 | 6 |
| 7 # GYP version: mojo/edk/mojo_edk.gyp:mojo_common_test_support | |
| 8 mojo_edk_source_set("test_support") { | 7 mojo_edk_source_set("test_support") { |
| 9 testonly = true | 8 testonly = true |
| 10 sources = [ | 9 sources = [ |
| 11 "multiprocess_test_helper.cc", | 10 "multiprocess_test_helper.cc", |
| 12 "multiprocess_test_helper.h", | 11 "multiprocess_test_helper.h", |
| 13 "test_utils.h", | 12 "test_utils.h", |
| 14 "test_utils_posix.cc", | 13 "test_utils_posix.cc", |
| 15 "test_utils_win.cc", | 14 "test_utils_win.cc", |
| 16 ] | 15 ] |
| 17 | 16 |
| 18 deps = [ | 17 deps = [ |
| 19 "//base", | 18 "//base", |
| 20 "//base/test:test_support", | 19 "//base/test:test_support", |
| 21 "//testing/gtest", | 20 "//testing/gtest", |
| 22 ] | 21 ] |
| 23 | 22 |
| 24 mojo_edk_deps = [ "mojo/edk/system" ] | 23 mojo_edk_deps = [ "mojo/edk/system" ] |
| 25 } | 24 } |
| 26 | 25 |
| 27 # GYP version: mojo/edk/mojo_edk.gyp:mojo_run_all_unittests | |
| 28 mojo_edk_source_set("run_all_unittests") { | 26 mojo_edk_source_set("run_all_unittests") { |
| 29 testonly = true | 27 testonly = true |
| 30 sources = [ | 28 sources = [ |
| 31 "run_all_unittests.cc", | 29 "run_all_unittests.cc", |
| 32 ] | 30 ] |
| 33 | 31 |
| 34 deps = [ | 32 deps = [ |
| 35 ":test_support_impl", | 33 ":test_support_impl", |
| 36 "//base", | 34 "//base", |
| 37 "//base/test:test_support", | 35 "//base/test:test_support", |
| 38 "//testing/gtest", | 36 "//testing/gtest", |
| 39 ] | 37 ] |
| 40 | 38 |
| 41 mojo_edk_deps = [ "mojo/edk/system" ] | 39 mojo_edk_deps = [ "mojo/edk/system" ] |
| 42 | 40 |
| 43 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | 41 mojo_sdk_deps = [ "mojo/public/c/test_support" ] |
| 44 } | 42 } |
| 45 | 43 |
| 46 # GYP version: mojo/edk/mojo_edk.gyp:mojo_run_all_perftests | |
| 47 mojo_edk_source_set("run_all_perftests") { | 44 mojo_edk_source_set("run_all_perftests") { |
| 48 testonly = true | 45 testonly = true |
| 49 deps = [ | 46 deps = [ |
| 50 ":test_support_impl", | 47 ":test_support_impl", |
| 51 "//base", | 48 "//base", |
| 52 "//base/test:test_support", | 49 "//base/test:test_support", |
| 53 ] | 50 ] |
| 54 | 51 |
| 55 mojo_edk_deps = [ "mojo/edk/system" ] | 52 mojo_edk_deps = [ "mojo/edk/system" ] |
| 56 | 53 |
| 57 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | 54 mojo_sdk_deps = [ "mojo/public/c/test_support" ] |
| 58 | 55 |
| 59 sources = [ | 56 sources = [ |
| 60 "run_all_perftests.cc", | 57 "run_all_perftests.cc", |
| 61 ] | 58 ] |
| 62 } | 59 } |
| 63 | 60 |
| 64 # GYP version: mojo/edk/mojo_edk.gyp:mojo_test_support_impl | |
| 65 mojo_edk_source_set("test_support_impl") { | 61 mojo_edk_source_set("test_support_impl") { |
| 66 testonly = true | 62 testonly = true |
| 67 deps = [ | 63 deps = [ |
| 68 "//base", | 64 "//base", |
| 69 "//base/test:test_support", | 65 "//base/test:test_support", |
| 70 ] | 66 ] |
| 71 | 67 |
| 72 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | 68 mojo_sdk_deps = [ "mojo/public/c/test_support" ] |
| 73 | 69 |
| 74 sources = [ | 70 sources = [ |
| 75 "test_support_impl.cc", | 71 "test_support_impl.cc", |
| 76 "test_support_impl.h", | 72 "test_support_impl.h", |
| 77 ] | 73 ] |
| 78 } | 74 } |
| 79 | 75 |
| 80 # Public SDK test targets follow. These targets are not defined within the | 76 # Public SDK test targets follow. These targets are not defined within the |
| 81 # public SDK itself as running the unittests requires the EDK. | 77 # public SDK itself as running the unittests requires the EDK. |
| 82 | 78 |
| 83 # GYP version: mojo/mojo_base.gyp:mojo_public_application_unittests | |
| 84 test("mojo_public_application_unittests") { | 79 test("mojo_public_application_unittests") { |
| 85 deps = [ | 80 deps = [ |
| 86 ":run_all_unittests", | 81 ":run_all_unittests", |
| 87 "../../public/cpp/application/tests", | 82 "../../public/cpp/application/tests", |
| 88 ] | 83 ] |
| 89 } | 84 } |
| 90 | 85 |
| 91 # GYP version: mojo/mojo_base.gyp:mojo_public_bindings_unittests | |
| 92 test("mojo_public_bindings_unittests") { | 86 test("mojo_public_bindings_unittests") { |
| 93 deps = [ | 87 deps = [ |
| 94 ":run_all_unittests", | 88 ":run_all_unittests", |
| 95 "../../public/cpp/bindings/tests", | 89 "../../public/cpp/bindings/tests", |
| 96 ] | 90 ] |
| 97 } | 91 } |
| 98 | 92 |
| 99 # GYP version: mojo/mojo_base.gyp:mojo_public_environment_unittests | |
| 100 test("mojo_public_environment_unittests") { | 93 test("mojo_public_environment_unittests") { |
| 101 deps = [ | 94 deps = [ |
| 102 ":run_all_unittests", | 95 ":run_all_unittests", |
| 103 "../../public/cpp/environment/tests", | 96 "../../public/cpp/environment/tests", |
| 104 ] | 97 ] |
| 105 } | 98 } |
| 106 | 99 |
| 107 # GYP version: mojo/mojo_base.gyp:mojo_public_system_perftests | |
| 108 test("mojo_public_system_perftests") { | 100 test("mojo_public_system_perftests") { |
| 109 deps = [ | 101 deps = [ |
| 110 ":run_all_perftests", | 102 ":run_all_perftests", |
| 111 "../../public/c/system/tests:perftests", | 103 "../../public/c/system/tests:perftests", |
| 112 ] | 104 ] |
| 113 } | 105 } |
| 106 |
| 107 test("mojo_public_system_unittests") { |
| 108 deps = [ |
| 109 ":run_all_unittests", |
| 110 "../../public/cpp/system/tests", |
| 111 ] |
| 112 } |
| 113 |
| 114 test("mojo_public_utility_unittests") { |
| 115 deps = [ |
| 116 ":run_all_unittests", |
| 117 "../../public/cpp/utility/tests", |
| 118 ] |
| 119 } |
| OLD | NEW |