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

Unified Diff: components/toolbar/BUILD.gn

Issue 1634743003: Componentize TestToolbarModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gyp dependency 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 | « components/toolbar.gypi ('k') | components/toolbar/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" ]
+ }
+}
« no previous file with comments | « components/toolbar.gypi ('k') | components/toolbar/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698