Index: content/utility/BUILD.gn |
diff --git a/content/utility/BUILD.gn b/content/utility/BUILD.gn |
index 9aea9db22bd017ab4b1fd27581a8aac8283d261e..0ef4261ba32d4e067fc0e8ceff43a51706df7aef 100644 |
--- a/content/utility/BUILD.gn |
+++ b/content/utility/BUILD.gn |
@@ -7,8 +7,11 @@ import("//media/media_options.gni") |
source_set("utility") { |
# Only the public target should depend on this. All other targets (even |
- # internal content ones) should depend on the public one. |
- visibility = [ "//content/public/utility:utility_sources" ] |
+ # internal content ones other than test) should depend on the public one. |
+ visibility = [ |
+ ":for_content_tests", |
+ "//content/public/utility:utility_sources", |
+ ] |
sources = |
rebase_path(content_utility_gypi_values.utility_sources, ".", "//content") |
@@ -17,11 +20,13 @@ source_set("utility") { |
deps = [ |
"//base", |
+ "//components/scheduler", |
"//content:export", |
"//content/public/child:child_sources", |
"//content/public/common:common_sources", |
"//content/public/common:mojo_bindings", |
"//courgette:courgette_lib", |
+ "//media/mojo/services:application_factory", |
"//mojo/common", |
"//mojo/public/cpp/bindings", |
"//mojo/shell", |
@@ -35,3 +40,13 @@ source_set("utility") { |
deps += [ "//media/mojo/services:application_factory" ] |
} |
} |
+ |
+# See comment at the top of //content/BUILD.gn for how this works. |
+group("for_content_tests") { |
+ visibility = [ "//content/test/*" ] |
+ if (!is_component_build) { |
+ public_deps = [ |
+ ":utility", |
+ ] |
+ } |
+} |