EDK: Remove (direct) dependencies of //mojo/edk/system on //base/test.
We still use //base/test for the moment, but only via things in
//mojo/edk/system/test.
R=vardhan@google.com
Review URL: https://codereview.chromium.org/1430593005 .
diff --git a/mojo/edk/system/test/BUILD.gn b/mojo/edk/system/test/BUILD.gn
index e91db65..d1d5f1a 100644
--- a/mojo/edk/system/test/BUILD.gn
+++ b/mojo/edk/system/test/BUILD.gn
@@ -4,8 +4,10 @@
import("../../mojo_edk.gni")
+# Utilties for use by EDK internal (unit and perf) tests.
mojo_edk_source_set("test") {
testonly = true
+ mojo_edk_visibility = [ "mojo/edk/*" ]
sources = [
"random.cc",
@@ -32,6 +34,7 @@
deps = [
"//base",
"//base/test:test_support",
+ "//testing/gtest",
]
mojo_edk_deps = [
@@ -40,6 +43,50 @@
]
}
+# Utilities for use by EDK internal perf tests (for use with
+# :run_all_perftests).
+mojo_edk_source_set("perf") {
+ testonly = true
+ mojo_edk_visibility = [ "mojo/edk/*" ]
+
+ sources = [
+ "perf_log.cc",
+ "perf_log.h",
+ ]
+
+ deps = [
+ "//base/test:test_support",
+ ]
+}
+
+mojo_edk_source_set("run_all_unittests") {
+ testonly = true
+ mojo_edk_visibility = [ "mojo/edk/*" ]
+
+ sources = [
+ "run_all_unittests.cc",
+ ]
+
+ deps = [
+ "//base",
+ "//base/test:test_support",
+ "//testing/gtest",
+ ]
+}
+
+mojo_edk_source_set("run_all_perftests") {
+ testonly = true
+ mojo_edk_visibility = [ "mojo/edk/*" ]
+
+ sources = [
+ "run_all_perftests.cc",
+ ]
+
+ deps = [
+ "//base/test:test_support",
+ ]
+}
+
mojo_edk_source_set("unittests") {
testonly = true
mojo_edk_visibility = [ "mojo/edk/system:mojo_system_unittests" ]