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

Side by Side Diff: headless/BUILD.gn

Issue 2411563002: headless: Don't run tests during the build (Closed)
Patch Set: typ plz Created 4 years, 2 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 | « no previous file | headless/lib/browser/client_api_generator_unittest.py » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//mojo/public/tools/bindings/mojom.gni") 5 import("//mojo/public/tools/bindings/mojom.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//tools/grit/grit_rule.gni") 7 import("//tools/grit/grit_rule.gni")
8 import("//tools/grit/repack.gni") 8 import("//tools/grit/repack.gni")
9 9
10 config("headless_implementation") { 10 config("headless_implementation") {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 "//url", 248 "//url",
249 ] 249 ]
250 250
251 configs += [ ":headless_implementation" ] 251 configs += [ ":headless_implementation" ]
252 } 252 }
253 253
254 group("headless_tests") { 254 group("headless_tests") {
255 testonly = true 255 testonly = true
256 256
257 deps = [ 257 deps = [
258 ":client_api_generator_tests",
259 ":headless_browsertests", 258 ":headless_browsertests",
260 ":headless_unittests", 259 ":headless_unittests",
261 ] 260 ]
262 } 261 }
263 262
264 test("headless_unittests") { 263 test("headless_unittests") {
265 sources = [ 264 sources = [
266 "public/domains/types_unittest.cc", 265 "public/domains/types_unittest.cc",
267 "public/util/deterministic_dispatcher_test.cc", 266 "public/util/deterministic_dispatcher_test.cc",
268 "public/util/error_reporter_unittest.cc", 267 "public/util/error_reporter_unittest.cc",
269 "public/util/expedited_dispatcher_test.cc", 268 "public/util/expedited_dispatcher_test.cc",
270 "public/util/generic_url_request_job_test.cc", 269 "public/util/generic_url_request_job_test.cc",
271 "public/util/testing/fake_managed_dispatch_url_request_job.cc", 270 "public/util/testing/fake_managed_dispatch_url_request_job.cc",
272 "public/util/testing/fake_managed_dispatch_url_request_job.h", 271 "public/util/testing/fake_managed_dispatch_url_request_job.h",
273 ] 272 ]
274 273
275 deps = [ 274 deps = [
276 ":headless_lib", 275 ":headless_lib",
277 "//base/test:run_all_unittests", 276 "//base/test:run_all_unittests",
278 "//base/test:test_support", 277 "//base/test:test_support",
279 "//testing/gmock", 278 "//testing/gmock",
280 "//testing/gtest", 279 "//testing/gtest",
281 ] 280 ]
282 } 281 }
283 282
284 action("client_api_generator_tests") {
285 _stamp = "$target_gen_dir/client_api_generator_unittests.stamp"
286 inputs = [
287 "lib/browser/client_api_generator.py",
288 "lib/browser/client_api_generator_unittest.py",
289 ]
290 outputs = [
291 _stamp,
292 ]
293
294 script = "lib/browser/client_api_generator_unittest.py"
295 args = [
296 "--stamp",
297 rebase_path(_stamp, root_build_dir),
298 ]
299 }
300
301 mojom("embedder_mojo_for_testing") { 283 mojom("embedder_mojo_for_testing") {
302 sources = [ 284 sources = [
303 "lib/embedder_test.mojom", 285 "lib/embedder_test.mojom",
304 ] 286 ]
305 } 287 }
306 288
307 grit("headless_browsertest_resources_grit") { 289 grit("headless_browsertest_resources_grit") {
308 source = "lib/headless_browsertest_resources.grd" 290 source = "lib/headless_browsertest_resources.grd"
309 outputs = [ 291 outputs = [
310 "grit/headless_browsertest_resources.h", 292 "grit/headless_browsertest_resources.h",
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 sources = [ 349 sources = [
368 "app/headless_shell.cc", 350 "app/headless_shell.cc",
369 "app/headless_shell_switches.cc", 351 "app/headless_shell_switches.cc",
370 "app/headless_shell_switches.h", 352 "app/headless_shell_switches.h",
371 ] 353 ]
372 354
373 deps = [ 355 deps = [
374 "//headless:headless_lib", 356 "//headless:headless_lib",
375 ] 357 ]
376 } 358 }
OLDNEW
« no previous file with comments | « no previous file | headless/lib/browser/client_api_generator_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698