| 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("../../public/mojo.gni") | 6 import("../../public/mojo.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 mojo_edk_source_set("test_support") { | 9 mojo_edk_source_set("test_support") { |
| 10 testonly = true | 10 testonly = true |
| 11 sources = [ | 11 sources = [ |
| 12 "multiprocess_test_helper.cc", | 12 "multiprocess_test_helper.cc", |
| 13 "multiprocess_test_helper.h", | 13 "multiprocess_test_helper.h", |
| 14 "scoped_ipc_support.cc", | 14 "scoped_ipc_support.cc", |
| 15 "scoped_ipc_support.h", | 15 "scoped_ipc_support.h", |
| 16 "test_utils.h", | 16 "test_utils.h", |
| 17 "test_utils_posix.cc", | 17 "test_utils_posix.cc", |
| 18 "test_utils_win.cc", | 18 "test_utils_win.cc", |
| 19 ] | 19 ] |
| 20 | 20 |
| 21 deps = [ | 21 deps = [ |
| 22 "//base", | 22 "//base", |
| 23 "//base/test:test_support", | 23 "//base/test:test_support", |
| 24 "//mojo/edk/system", |
| 24 "//testing/gtest", | 25 "//testing/gtest", |
| 26 "//third_party/mojo/src/mojo/public/cpp/system", |
| 25 ] | 27 ] |
| 26 | |
| 27 mojo_edk_deps = [ "mojo/edk/system" ] | |
| 28 | |
| 29 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] | |
| 30 } | 28 } |
| 31 | 29 |
| 32 mojo_edk_source_set("run_all_unittests") { | 30 mojo_edk_source_set("run_all_unittests") { |
| 33 testonly = true | 31 testonly = true |
| 34 sources = [ | 32 sources = [ |
| 35 "run_all_unittests.cc", | 33 "run_all_unittests.cc", |
| 36 ] | 34 ] |
| 37 | 35 |
| 38 deps = [ | 36 deps = [ |
| 39 ":test_support_impl", | 37 ":test_support_impl", |
| 40 "//base", | 38 "//base", |
| 41 "//base/test:test_support", | 39 "//base/test:test_support", |
| 40 "//mojo/edk/system", |
| 42 "//testing/gtest", | 41 "//testing/gtest", |
| 42 "//third_party/mojo/src/mojo/public/c/test_support", |
| 43 ] | 43 ] |
| 44 | |
| 45 mojo_edk_deps = [ "mojo/edk/system" ] | |
| 46 | |
| 47 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | |
| 48 } | 44 } |
| 49 | 45 |
| 50 mojo_edk_source_set("run_all_perftests") { | 46 mojo_edk_source_set("run_all_perftests") { |
| 51 testonly = true | 47 testonly = true |
| 52 deps = [ | 48 deps = [ |
| 53 ":test_support_impl", | 49 ":test_support_impl", |
| 54 "//base", | 50 "//base", |
| 55 "//base/test:test_support", | 51 "//base/test:test_support", |
| 52 "//mojo/edk/system", |
| 53 "//third_party/mojo/src/mojo/public/c/test_support", |
| 56 ] | 54 ] |
| 57 | 55 |
| 58 mojo_edk_deps = [ "mojo/edk/system" ] | |
| 59 | |
| 60 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | |
| 61 | |
| 62 sources = [ | 56 sources = [ |
| 63 "run_all_perftests.cc", | 57 "run_all_perftests.cc", |
| 64 ] | 58 ] |
| 65 } | 59 } |
| 66 | 60 |
| 67 mojo_edk_source_set("test_support_impl") { | 61 mojo_edk_source_set("test_support_impl") { |
| 68 testonly = true | 62 testonly = true |
| 69 deps = [ | 63 deps = [ |
| 70 "//base", | 64 "//base", |
| 71 "//base/test:test_support", | 65 "//base/test:test_support", |
| 66 "//third_party/mojo/src/mojo/public/c/test_support", |
| 67 "//third_party/mojo/src/mojo/public/cpp/system", |
| 72 ] | 68 ] |
| 73 | 69 |
| 74 mojo_sdk_deps = [ "mojo/public/c/test_support" ] | |
| 75 | |
| 76 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] | |
| 77 | |
| 78 sources = [ | 70 sources = [ |
| 79 "test_support_impl.cc", | 71 "test_support_impl.cc", |
| 80 "test_support_impl.h", | 72 "test_support_impl.h", |
| 81 ] | 73 ] |
| 82 } | 74 } |
| 83 | 75 |
| 84 # 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 |
| 85 # public SDK itself as running the unittests requires the EDK. | 77 # public SDK itself as running the unittests requires the EDK. |
| 86 # TODO(vtl): These don't really belong here. (They should be converted to | 78 # TODO(vtl): These don't really belong here. (They should be converted to |
| 87 # apptests, but even apart from that these targets belong somewhere else.) | 79 # apptests, but even apart from that these targets belong somewhere else.) |
| 88 | 80 |
| 89 group("public_tests") { | 81 group("public_tests") { |
| 90 testonly = true | 82 testonly = true |
| 91 deps = [ | 83 deps = [ |
| 92 ":mojo_public_bindings_perftests", | |
| 93 ":mojo_public_bindings_unittests", | 84 ":mojo_public_bindings_unittests", |
| 94 ":mojo_public_environment_unittests", | 85 ":mojo_public_environment_unittests", |
| 95 ":mojo_public_system_perftests", | 86 ":mojo_public_system_perftests", |
| 96 ":mojo_public_system_unittests", | 87 ":mojo_public_system_unittests", |
| 97 ":mojo_public_utility_unittests", | 88 ":mojo_public_utility_unittests", |
| 98 ":mojo_system_impl_private_unittests", | 89 ":mojo_system_impl_private_unittests", |
| 99 ] | 90 ] |
| 100 | 91 |
| 101 if (mojo_use_application_in_sdk) { | 92 if (mojo_use_application_in_sdk) { |
| 102 deps += [ ":mojo_public_application_unittests" ] | 93 deps += [ ":mojo_public_application_unittests" ] |
| 103 } | 94 } |
| 104 } | 95 } |
| 105 | 96 |
| 106 if (mojo_use_application_in_sdk) { | 97 if (mojo_use_application_in_sdk) { |
| 107 test("mojo_public_application_unittests") { | 98 test("mojo_public_application_unittests") { |
| 108 deps = [ | 99 deps = [ |
| 109 ":run_all_unittests", | 100 ":run_all_unittests", |
| 110 "../../public/cpp/application/tests", | 101 "../../../third_party/mojo/src/mojo/public/cpp/application/tests", |
| 111 ] | 102 ] |
| 112 } | 103 } |
| 113 } | 104 } |
| 114 | 105 |
| 115 test("mojo_public_bindings_unittests") { | 106 test("mojo_public_bindings_unittests") { |
| 116 deps = [ | 107 deps = [ |
| 117 ":run_all_unittests", | 108 ":run_all_unittests", |
| 118 "../../public/cpp/bindings/tests", | 109 "../../../third_party/mojo/src/mojo/public/cpp/bindings/tests", |
| 119 ] | |
| 120 } | |
| 121 | |
| 122 test("mojo_public_bindings_perftests") { | |
| 123 deps = [ | |
| 124 ":run_all_perftests", | |
| 125 "../../public/cpp/bindings/tests:perftests", | |
| 126 ] | 110 ] |
| 127 } | 111 } |
| 128 | 112 |
| 129 test("mojo_public_environment_unittests") { | 113 test("mojo_public_environment_unittests") { |
| 130 deps = [ | 114 deps = [ |
| 131 ":run_all_unittests", | 115 ":run_all_unittests", |
| 132 "../../public/cpp/environment/tests", | 116 "../../../third_party/mojo/src/mojo/public/cpp/environment/tests", |
| 133 ] | 117 ] |
| 134 } | 118 } |
| 135 | 119 |
| 136 test("mojo_public_system_perftests") { | 120 test("mojo_public_system_perftests") { |
| 137 deps = [ | 121 deps = [ |
| 138 ":run_all_perftests", | 122 ":run_all_perftests", |
| 139 "../../public/c/system/tests:perftests", | 123 "../../../third_party/mojo/src/mojo/public/c/system/tests:perftests", |
| 140 ] | 124 ] |
| 141 } | 125 } |
| 142 | 126 |
| 143 test("mojo_public_system_unittests") { | 127 test("mojo_public_system_unittests") { |
| 144 deps = [ | 128 deps = [ |
| 145 ":run_all_unittests", | 129 ":run_all_unittests", |
| 146 "../../public/cpp/system/tests", | 130 "../../../third_party/mojo/src/mojo/public/cpp/system/tests", |
| 147 ] | 131 ] |
| 148 } | 132 } |
| 149 | 133 |
| 150 test("mojo_public_utility_unittests") { | 134 test("mojo_public_utility_unittests") { |
| 151 deps = [ | 135 deps = [ |
| 152 ":run_all_unittests", | 136 ":run_all_unittests", |
| 153 "../../public/cpp/utility/tests", | 137 "../../../third_party/mojo/src/mojo/public/cpp/utility/tests", |
| 154 ] | 138 ] |
| 155 } | 139 } |
| 156 | 140 |
| 157 test("mojo_system_impl_private_unittests") { | 141 test("mojo_system_impl_private_unittests") { |
| 158 deps = [ | 142 deps = [ |
| 159 ":run_all_unittests", | 143 ":run_all_unittests", |
| 160 "../../public/platform/native:system_impl_private_tests", | 144 "../../../third_party/mojo/src/mojo/public/platform/native:system_impl_priva
te_tests", |
| 161 ] | 145 ] |
| 162 } | 146 } |
| OLD | NEW |