Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: mojo/edk/test/BUILD.gn

Issue 1554443003: Stop linking in the old Mojo EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and fix new flaky test Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/system/data_pipe_unittest.cc ('k') | mojo/edk/test/multiprocess_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « mojo/edk/system/data_pipe_unittest.cc ('k') | mojo/edk/test/multiprocess_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698