| 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/mojo_edk.gni") | 5 import("//mojo/edk/mojo_edk.gni") |
| 6 import("//mojo/public/mojo.gni") | 6 import("//mojo/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 "//testing/gtest", | 24 "//testing/gtest", |
| 25 "//third_party/mojo/src/mojo/public/cpp/system", | 25 "//mojo/public/cpp/system", |
| 26 | 26 |
| 27 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | 27 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
| 28 # declared in third party only for now. | 28 # declared in third party only for now. |
| 29 "//third_party/mojo/src/mojo/edk/system", | 29 "//third_party/mojo/src/mojo/edk/system", |
| 30 ] | 30 ] |
| 31 } | 31 } |
| 32 | 32 |
| 33 mojo_edk_source_set("run_all_unittests") { | 33 mojo_edk_source_set("run_all_unittests") { |
| 34 testonly = true | 34 testonly = true |
| 35 sources = [ | 35 sources = [ |
| 36 "run_all_unittests.cc", | 36 "run_all_unittests.cc", |
| 37 ] | 37 ] |
| 38 | 38 |
| 39 deps = [ | 39 deps = [ |
| 40 ":test_support", | 40 ":test_support", |
| 41 ":test_support_impl", | 41 ":test_support_impl", |
| 42 "//base", | 42 "//base", |
| 43 "//base/test:test_support", | 43 "//base/test:test_support", |
| 44 "//testing/gtest", | 44 "//testing/gtest", |
| 45 "//third_party/mojo/src/mojo/public/c/test_support", | 45 "//mojo/public/c/test_support", |
| 46 | 46 |
| 47 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | 47 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
| 48 # declared in third party only for now. | 48 # declared in third party only for now. |
| 49 "//third_party/mojo/src/mojo/edk/system", | 49 "//third_party/mojo/src/mojo/edk/system", |
| 50 ] | 50 ] |
| 51 } | 51 } |
| 52 | 52 |
| 53 mojo_edk_source_set("run_all_perftests") { | 53 mojo_edk_source_set("run_all_perftests") { |
| 54 testonly = true | 54 testonly = true |
| 55 deps = [ | 55 deps = [ |
| 56 ":test_support_impl", | 56 ":test_support_impl", |
| 57 "//base", | 57 "//base", |
| 58 "//base/test:test_support", | 58 "//base/test:test_support", |
| 59 | 59 |
| 60 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | 60 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are |
| 61 # declared in third party only for now. | 61 # declared in third party only for now. |
| 62 "//third_party/mojo/src/mojo/edk/system", | 62 "//third_party/mojo/src/mojo/edk/system", |
| 63 "//third_party/mojo/src/mojo/public/c/test_support", | 63 "//mojo/public/c/test_support", |
| 64 ] | 64 ] |
| 65 | 65 |
| 66 sources = [ | 66 sources = [ |
| 67 "run_all_perftests.cc", | 67 "run_all_perftests.cc", |
| 68 ] | 68 ] |
| 69 } | 69 } |
| 70 | 70 |
| 71 mojo_edk_source_set("test_support_impl") { | 71 mojo_edk_source_set("test_support_impl") { |
| 72 testonly = true | 72 testonly = true |
| 73 deps = [ | 73 deps = [ |
| 74 "//base", | 74 "//base", |
| 75 "//base/test:test_support", | 75 "//base/test:test_support", |
| 76 "//third_party/mojo/src/mojo/public/c/test_support", | 76 "//mojo/public/c/test_support", |
| 77 "//third_party/mojo/src/mojo/public/cpp/system", | 77 "//mojo/public/cpp/system", |
| 78 ] | 78 ] |
| 79 | 79 |
| 80 sources = [ | 80 sources = [ |
| 81 "test_support_impl.cc", | 81 "test_support_impl.cc", |
| 82 "test_support_impl.h", | 82 "test_support_impl.h", |
| 83 ] | 83 ] |
| 84 } | 84 } |
| 85 | 85 |
| 86 # Public SDK test targets follow. These targets are not defined within the | 86 # Public SDK test targets follow. These targets are not defined within the |
| 87 # public SDK itself as running the unittests requires the EDK. | 87 # public SDK itself as running the unittests requires the EDK. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 102 if (mojo_use_application_in_sdk) { | 102 if (mojo_use_application_in_sdk) { |
| 103 deps += [ ":mojo_public_application_unittests" ] | 103 deps += [ ":mojo_public_application_unittests" ] |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 | 106 |
| 107 if (mojo_use_application_in_sdk) { | 107 if (mojo_use_application_in_sdk) { |
| 108 # TODO(use_chrome_edk): remove "2" | 108 # TODO(use_chrome_edk): remove "2" |
| 109 test("mojo_public_application_unittests2") { | 109 test("mojo_public_application_unittests2") { |
| 110 deps = [ | 110 deps = [ |
| 111 ":run_all_unittests", | 111 ":run_all_unittests", |
| 112 "../../../third_party/mojo/src/mojo/public/cpp/application/tests", | 112 "../../../mojo/public/cpp/application/tests", |
| 113 ] | 113 ] |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 | 116 |
| 117 # TODO(use_chrome_edk): remove "2" | 117 # TODO(use_chrome_edk): remove "2" |
| 118 test("mojo_public_bindings_unittests2") { | 118 test("mojo_public_bindings_unittests2") { |
| 119 deps = [ | 119 deps = [ |
| 120 ":run_all_unittests", | 120 ":run_all_unittests", |
| 121 "../../../third_party/mojo/src/mojo/public/cpp/bindings/tests", | 121 "../../../mojo/public/cpp/bindings/tests", |
| 122 ] | 122 ] |
| 123 } | 123 } |
| 124 | 124 |
| 125 # TODO(use_chrome_edk): remove "2" | 125 # TODO(use_chrome_edk): remove "2" |
| 126 test("mojo_public_environment_unittests2") { | 126 test("mojo_public_environment_unittests2") { |
| 127 deps = [ | 127 deps = [ |
| 128 ":run_all_unittests", | 128 ":run_all_unittests", |
| 129 "../../../third_party/mojo/src/mojo/public/cpp/environment/tests", | 129 "../../../mojo/public/cpp/environment/tests", |
| 130 ] | 130 ] |
| 131 } | 131 } |
| 132 | 132 |
| 133 # TODO(use_chrome_edk): remove "2" | 133 # TODO(use_chrome_edk): remove "2" |
| 134 test("mojo_public_system_perftests2") { | 134 test("mojo_public_system_perftests2") { |
| 135 deps = [ | 135 deps = [ |
| 136 ":run_all_perftests", | 136 ":run_all_perftests", |
| 137 "../../../third_party/mojo/src/mojo/public/c/system/tests:perftests", | 137 "../../../mojo/public/c/system/tests:perftests", |
| 138 ] | 138 ] |
| 139 } | 139 } |
| 140 | 140 |
| 141 # TODO(use_chrome_edk): remove "2" | 141 # TODO(use_chrome_edk): remove "2" |
| 142 test("mojo_public_system_unittests2") { | 142 test("mojo_public_system_unittests2") { |
| 143 deps = [ | 143 deps = [ |
| 144 ":run_all_unittests", | 144 ":run_all_unittests", |
| 145 "../../../third_party/mojo/src/mojo/public/cpp/system/tests", | 145 "../../../mojo/public/cpp/system/tests", |
| 146 ] | 146 ] |
| 147 } | 147 } |
| 148 | 148 |
| 149 # TODO(use_chrome_edk): remove "2" | 149 # TODO(use_chrome_edk): remove "2" |
| 150 test("mojo_public_utility_unittests2") { | 150 test("mojo_public_utility_unittests2") { |
| 151 deps = [ | 151 deps = [ |
| 152 ":run_all_unittests", | 152 ":run_all_unittests", |
| 153 "../../../third_party/mojo/src/mojo/public/cpp/utility/tests", | 153 "../../../mojo/public/cpp/utility/tests", |
| 154 ] | 154 ] |
| 155 } | 155 } |
| OLD | NEW |