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

Side by Side Diff: content/test/BUILD.gn

Issue 547793002: Add lots of testonly annotations to the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « content/shell/BUILD.gn ('k') | dbus/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 content_tests_gypi_values = exec_script( 8 content_tests_gypi_values = exec_script(
9 "//build/gypi_to_gn.py", 9 "//build/gypi_to_gn.py",
10 [ rebase_path("../content_tests.gypi"), 10 [ rebase_path("../content_tests.gypi"),
11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir" ], 11 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir" ],
12 "scope", 12 "scope",
13 [ "../content_tests.gypi" ]) 13 [ "../content_tests.gypi" ])
14 14
15 # GYP version //content/content_tests.gypi:test_support_content 15 # GYP version //content/content_tests.gypi:test_support_content
16 static_library("test_support") { 16 static_library("test_support") {
17 testonly = true
17 deps = [ 18 deps = [
18 "//content/public/app", 19 "//content/public/app",
19 "//content/public/browser", 20 "//content/public/browser",
20 "//content/public/common", 21 "//content/public/common",
21 "//net:test_support", 22 "//net:test_support",
22 "//skia", 23 "//skia",
23 "//storage/common", 24 "//storage/common",
24 "//testing/gmock", 25 "//testing/gmock",
25 "//testing/gtest", 26 "//testing/gtest",
26 "//ui/accessibility:ax_gen", 27 "//ui/accessibility:ax_gen",
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 "test/test_content_browser_client.cc", 133 "test/test_content_browser_client.cc",
133 "test/test_content_client.cc", 134 "test/test_content_client.cc",
134 ] 135 ]
135 } 136 }
136 } 137 }
137 138
138 if (!is_ios) { 139 if (!is_ios) {
139 140
140 # GYP version //content/content_tests.gypi:layouttest_support_content 141 # GYP version //content/content_tests.gypi:layouttest_support_content
141 static_library("layouttest_support") { 142 static_library("layouttest_support") {
143 testonly = true
142 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s ources, 144 sources = rebase_path(content_tests_gypi_values.layouttest_support_content_s ources,
143 ".", "//content") 145 ".", "//content")
144 146
145 deps = [ 147 deps = [
146 ":test_support", 148 ":test_support",
147 "//skia", 149 "//skia",
148 "//v8", 150 "//v8",
149 "//ui/accessibility:ax_gen", 151 "//ui/accessibility:ax_gen",
150 ] 152 ]
151 153
152 if (is_android) { 154 if (is_android) {
153 #deps += [ "test_support_content_jni_headers" ] TODO(GYP) 155 #deps += [ "test_support_content_jni_headers" ] TODO(GYP)
154 } 156 }
155 } 157 }
156 158
157 } # !is_ios 159 } # !is_ios
158 160
159 # TODO(GYP): Unit test targets 161 # TODO(GYP): Unit test targets
160 162
OLDNEW
« no previous file with comments | « content/shell/BUILD.gn ('k') | dbus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698