Index: components/toolbar/BUILD.gn |
diff --git a/components/toolbar/BUILD.gn b/components/toolbar/BUILD.gn |
index 098f41de151d93690b30c2207ae52a4891371e68..4e2ac01b694cc165518371244d98e5eb6f8e79e9 100644 |
--- a/components/toolbar/BUILD.gn |
+++ b/components/toolbar/BUILD.gn |
@@ -2,6 +2,8 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/ui.gni") |
+ |
source_set("toolbar") { |
sources = [ |
"toolbar_model.cc", |
@@ -14,3 +16,24 @@ source_set("toolbar") { |
"//url", |
] |
} |
+ |
+source_set("test_support") { |
+ testonly = true |
+ |
+ sources = [ |
+ "test_toolbar_model.cc", |
+ "test_toolbar_model.h", |
+ ] |
+ |
+ deps = [ |
+ ":toolbar", |
+ "//base", |
+ "//components/resources", |
+ "//ui/gfx", |
+ ] |
+ |
+ if (toolkit_views) { |
+ # Needed to get the TOOLKIT_VIEWS define. |
+ deps += [ "//ui/views" ] |
+ } |
+} |