| Index: mojo/edk/test/BUILD.gn
|
| diff --git a/mojo/edk/test/BUILD.gn b/mojo/edk/test/BUILD.gn
|
| index a77373bf6569840f47045f4aeeac97ec58ed1e37..baa9c5bd5b8f41dd25750823ef0bdcb603836254 100644
|
| --- a/mojo/edk/test/BUILD.gn
|
| +++ b/mojo/edk/test/BUILD.gn
|
| @@ -19,12 +19,9 @@ source_set("test_support") {
|
| deps = [
|
| "//base",
|
| "//base/test:test_support",
|
| + "//mojo/edk/system",
|
| "//mojo/public/cpp/system",
|
| "//testing/gtest",
|
| -
|
| - # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are
|
| - # declared in third party only for now.
|
| - "//third_party/mojo/src/mojo/edk/system",
|
| ]
|
| }
|
|
|
| @@ -39,13 +36,16 @@ source_set("run_all_unittests") {
|
| ":test_support_impl",
|
| "//base",
|
| "//base/test:test_support",
|
| + "//mojo/edk/system",
|
| "//mojo/public/c/test_support",
|
| "//testing/gtest",
|
| -
|
| - # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are
|
| - # declared in third party only for now.
|
| - "//third_party/mojo/src/mojo/edk/system",
|
| ]
|
| +
|
| + if (is_linux && !is_component_build) {
|
| + # This tests dynamically loads libmojo_test_support even in non-component
|
| + # builds.
|
| + public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
| + }
|
| }
|
|
|
| source_set("run_all_perftests") {
|
| @@ -54,17 +54,21 @@ source_set("run_all_perftests") {
|
| ":test_support_impl",
|
| "//base",
|
| "//base/test:test_support",
|
| + "//mojo/edk/system",
|
| "//mojo/edk/test:test_support",
|
| "//mojo/public/c/test_support",
|
| -
|
| - # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are
|
| - # declared in third party only for now.
|
| - "//third_party/mojo/src/mojo/edk/system",
|
| + "//testing/gtest",
|
| ]
|
|
|
| sources = [
|
| "run_all_perftests.cc",
|
| ]
|
| +
|
| + if (is_linux && !is_component_build) {
|
| + # This tests dynamically loads libmojo_test_support even in non-component
|
| + # builds.
|
| + public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
| + }
|
| }
|
|
|
| source_set("test_support_impl") {
|
| @@ -90,49 +94,43 @@ source_set("test_support_impl") {
|
| group("public_tests") {
|
| testonly = true
|
| deps = [
|
| - # TODO(use_chrome_edk): remove "2"
|
| - ":mojo_public_bindings_unittests2",
|
| - ":mojo_public_environment_unittests2",
|
| - ":mojo_public_system_perftests2",
|
| - ":mojo_public_system_unittests2",
|
| - ":mojo_public_utility_unittests2",
|
| + ":mojo_public_bindings_unittests",
|
| + ":mojo_public_environment_unittests",
|
| + ":mojo_public_system_perftests",
|
| + ":mojo_public_system_unittests",
|
| + ":mojo_public_utility_unittests",
|
| ]
|
| }
|
|
|
| -# TODO(use_chrome_edk): remove "2"
|
| -test("mojo_public_bindings_unittests2") {
|
| +test("mojo_public_bindings_unittests") {
|
| deps = [
|
| ":run_all_unittests",
|
| "//mojo/public/cpp/bindings/tests",
|
| ]
|
| }
|
|
|
| -# TODO(use_chrome_edk): remove "2"
|
| -test("mojo_public_environment_unittests2") {
|
| +test("mojo_public_environment_unittests") {
|
| deps = [
|
| ":run_all_unittests",
|
| "//mojo/public/cpp/environment/tests",
|
| ]
|
| }
|
|
|
| -# TODO(use_chrome_edk): remove "2"
|
| -test("mojo_public_system_perftests2") {
|
| +test("mojo_public_system_perftests") {
|
| deps = [
|
| ":run_all_perftests",
|
| "//mojo/public/c/system/tests:perftests",
|
| ]
|
| }
|
|
|
| -# TODO(use_chrome_edk): remove "2"
|
| -test("mojo_public_system_unittests2") {
|
| +test("mojo_public_system_unittests") {
|
| deps = [
|
| ":run_all_unittests",
|
| "//mojo/public/cpp/system/tests",
|
| ]
|
| }
|
|
|
| -# TODO(use_chrome_edk): remove "2"
|
| -test("mojo_public_utility_unittests2") {
|
| +test("mojo_public_utility_unittests") {
|
| deps = [
|
| ":run_all_unittests",
|
| "//mojo/public/cpp/utility/tests",
|
|
|