| OLD | NEW |
| 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
| 7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
| 8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
| 9 import("//build/module_args/v8.gni") | 9 import("//build/module_args/v8.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| 11 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 11 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 12 | 12 |
| 13 content_tests_gypi_values = | 13 content_tests_gypi_values = |
| 14 exec_script("//build/gypi_to_gn.py", | 14 exec_script("//build/gypi_to_gn.py", |
| 15 [ | 15 [ |
| 16 rebase_path("../content_tests.gypi"), | 16 rebase_path("../content_tests.gypi"), |
| 17 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", | 17 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", |
| 18 ], | 18 ], |
| 19 "scope", | 19 "scope", |
| 20 [ "../content_tests.gypi" ]) | 20 [ "../content_tests.gypi" ]) |
| 21 | 21 |
| 22 # GYP version //content/content_tests.gypi:test_support_content | 22 # GYP version //content/content_tests.gypi:test_support_content |
| 23 source_set("test_support") { | 23 source_set("test_support") { |
| 24 testonly = true | 24 testonly = true |
| 25 configs += [ "//build/config:precompiled_headers" ] | |
| 26 public_deps = [ | 25 public_deps = [ |
| 27 "//content/public/app:both", | 26 "//content/public/app:both", |
| 28 "//content/public/browser", | 27 "//content/public/browser", |
| 29 "//content/public/common", | 28 "//content/public/common", |
| 30 ] | 29 ] |
| 31 deps = [ | 30 deps = [ |
| 32 "//cc/blink", | 31 "//cc/blink", |
| 33 "//net:test_support", | 32 "//net:test_support", |
| 34 "//skia", | 33 "//skia", |
| 35 "//storage/common", | 34 "//storage/common", |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 # TODO(GYP) enable content_browsertests on Mac when it links. | 261 # TODO(GYP) enable content_browsertests on Mac when it links. |
| 263 if (!is_mac) { | 262 if (!is_mac) { |
| 264 test("content_browsertests") { | 263 test("content_browsertests") { |
| 265 sources = | 264 sources = |
| 266 rebase_path(content_tests_gypi_values.content_browsertests_sources, | 265 rebase_path(content_tests_gypi_values.content_browsertests_sources, |
| 267 ".", | 266 ".", |
| 268 "//content") | 267 "//content") |
| 269 | 268 |
| 270 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 269 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 271 | 270 |
| 272 configs += [ | 271 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 273 "//build/config:precompiled_headers", | |
| 274 "//build/config/compiler:no_size_t_to_int_warning", | |
| 275 ] | |
| 276 | 272 |
| 277 deps = [ | 273 deps = [ |
| 278 ":browsertest_support", | 274 ":browsertest_support", |
| 279 ":web_ui_test_mojo_bindings", | 275 ":web_ui_test_mojo_bindings", |
| 280 "//base/allocator", | 276 "//base/allocator", |
| 281 "//base/test:test_support", | 277 "//base/test:test_support", |
| 282 "//content/common:mojo_bindings", | 278 "//content/common:mojo_bindings", |
| 283 "//content/gpu", | 279 "//content/gpu", |
| 284 "//content/public/common", | 280 "//content/public/common", |
| 285 "//content/public/plugin", | 281 "//content/public/plugin", |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 sources -= | 420 sources -= |
| 425 [ "../browser/web_contents/web_contents_view_aura_browsertest.cc" ] | 421 [ "../browser/web_contents/web_contents_view_aura_browsertest.cc" ] |
| 426 } | 422 } |
| 427 } | 423 } |
| 428 } | 424 } |
| 429 | 425 |
| 430 test("content_unittests") { | 426 test("content_unittests") { |
| 431 sources = rebase_path(content_tests_gypi_values.content_unittests_sources, | 427 sources = rebase_path(content_tests_gypi_values.content_unittests_sources, |
| 432 ".", | 428 ".", |
| 433 "//content") | 429 "//content") |
| 434 | |
| 435 configs += [ "//build/config:precompiled_headers" ] | |
| 436 | |
| 437 deps = [ | 430 deps = [ |
| 438 ":test_support", | 431 ":test_support", |
| 439 "//base/allocator", | 432 "//base/allocator", |
| 440 "//base/test:test_support", | 433 "//base/test:test_support", |
| 441 "//content/browser/background_sync:background_sync_proto", | 434 "//content/browser/background_sync:background_sync_proto", |
| 442 "//content/browser/notifications:notification_proto", | 435 "//content/browser/notifications:notification_proto", |
| 443 "//content/browser/service_worker:service_worker_proto", | 436 "//content/browser/service_worker:service_worker_proto", |
| 444 "//content/browser/speech/proto", | 437 "//content/browser/speech/proto", |
| 445 "//content/common:mojo_bindings", | 438 "//content/common:mojo_bindings", |
| 446 "//content/public/browser", | 439 "//content/public/browser", |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 "//testing/gtest", | 700 "//testing/gtest", |
| 708 "//third_party/WebKit/public:blink", | 701 "//third_party/WebKit/public:blink", |
| 709 "//ui/base", | 702 "//ui/base", |
| 710 "//ui/gfx", | 703 "//ui/gfx", |
| 711 "//ui/gfx/geometry", | 704 "//ui/gfx/geometry", |
| 712 "//ui/gl", | 705 "//ui/gl", |
| 713 "//ui/gl:test_support", | 706 "//ui/gl:test_support", |
| 714 ] | 707 ] |
| 715 } | 708 } |
| 716 } | 709 } |
| OLD | NEW |