Skip to content

Commit

Permalink
Delete all isolate_file for test() template
Browse files Browse the repository at this point in the history
Isolate files for test()s are now generated by GN from runtime_deps.

BUG=589318
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review-Url: https://codereview.chromium.org/1927643002
Cr-Commit-Position: refs/heads/master@{#390170}
  • Loading branch information
agrieve authored and Commit bot committed Apr 27, 2016
1 parent e71fc2d commit fc41d88
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 58 deletions.
4 changes: 0 additions & 4 deletions base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1974,10 +1974,6 @@ test("base_unittests") {
":base_java_unittest_support",
"//base/android/jni_generator:jni_generator_tests",
]

# TODO(brettw) I think this should not be here, we should not be using
# isolate files.
isolate_file = "base_unittests.isolate"
}

if (is_ios) {
Expand Down
4 changes: 0 additions & 4 deletions cc/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -994,10 +994,6 @@ test("cc_perftests") {
"//ui/gl",
"//ui/gl:test_support",
]

if (is_android) {
isolate_file = "cc_perftests.isolate"
}
}
# When adding support for isolates, please have a look at run-time dependencies
# in the cc_unittests_run target in cc_tests.gyp.
1 change: 0 additions & 1 deletion chrome/test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,6 @@ test("unit_tests") {
android_manifest =
"//chrome/test/android/unit_tests_apk/AndroidManifest.xml"
enable_multidex = true
isolate_file = "../unit_tests.isolate"

# Some android targets still depend on --gc-sections to link.
# TODO: remove --gc-sections for Debug builds (crbug.com/159847).
Expand Down
3 changes: 0 additions & 3 deletions components/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@ test("components_unittests") {
}

if (is_android) {
isolate_file = "components_unittests.isolate"

deps += [
"//components/gcm_driver/instance_id:test_support",
"//components/gcm_driver/instance_id/android:instance_id_driver_java",
Expand Down Expand Up @@ -428,7 +426,6 @@ if (!is_ios) {
"//testing/android/native_test:native_test_support",
]
use_default_launcher = false
isolate_file = "components_browsertests.isolate"
android_manifest = "${target_gen_dir}/components_browsertests_manifest/AndroidManifest.xml"
deps += [
":components_browsertests_assets",
Expand Down
2 changes: 0 additions & 2 deletions content/test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,6 @@ test("content_browsertests") {
deps -= [ "//device/battery" ]
android_manifest =
"${target_gen_dir}/content_browsertests_manifest/AndroidManifest.xml"
isolate_file = "//content/content_browsertests.isolate"

use_default_launcher = false
}

Expand Down
2 changes: 0 additions & 2 deletions media/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@ test("media_unittests") {
data_deps = []

if (is_android) {
isolate_file = "media_unittests.isolate"
sources -= [
"filters/decrypting_audio_decoder_unittest.cc",
"filters/decrypting_video_decoder_unittest.cc",
Expand Down Expand Up @@ -706,7 +705,6 @@ test("media_perftests") {
]
if (is_android) {
deps += [ "//ui/gl" ]
isolate_file = "media_perftests.isolate"
}
if (media_use_ffmpeg) {
deps += [ "//third_party/ffmpeg" ] # Direct dependency required to inherit config.
Expand Down
5 changes: 1 addition & 4 deletions media/midi/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,7 @@ test("midi_unittests") {

if (is_android) {
deps += [ ":midi_java" ]
isolate_file = "midi_unittests.isolate"
}

if (!is_android) {
} else {
sources += usb_midi_sources
}

Expand Down
1 change: 0 additions & 1 deletion net/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,6 @@ test("net_unittests") {
set_sources_assignment_filter([])
sources += [ "base/address_tracker_linux_unittest.cc" ]
set_sources_assignment_filter(sources_assignment_filter)
isolate_file = "net_unittests.isolate"
shard_timeout = 300
}

Expand Down
24 changes: 0 additions & 24 deletions sql/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -114,28 +114,4 @@ test("sql_unittests") {
"//testing/gtest",
"//third_party/sqlite",
]

if (is_android) {
isolate_file = "sql_unittests.isolate"
}

# TODO(GYP)
#['OS == "android"', {
# 'dependencies': [
# '../testing/android/native_test.gyp:native_test_native_code',
# ],
#}],
}

if (is_android) {
#TODO(GYP)
#'target_name': 'sql_unittests_apk',
#'type': 'none',
#'dependencies': [
# 'sql_unittests',
#],
#'variables': {
# 'test_suite_name': 'sql_unittests',
#},
#'includes': [ '../build/apk_test.gypi' ],
}
4 changes: 0 additions & 4 deletions sync/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,6 @@ test("sync_unit_tests") {
"//third_party/zlib",
]

if (is_android) {
isolate_file = "sync_unit_tests.isolate"
}

if (is_chromeos) {
# Required by get_session_name_unittest.cc on Chrome OS.
deps += [ "//chromeos" ]
Expand Down
9 changes: 1 addition & 8 deletions testing/test.gni
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,11 @@ template("test") {
}

_test_runner_target = "${_output_name}__test_runner_script"
_wrapper_script_vars = [
"isolate_file",
"shard_timeout",
]
_wrapper_script_vars = [ "shard_timeout" ]
_gen_isolate_vars = [
"allow_odd_runtime_deps",
"ignore_all_data_deps",
]

# TODO(agrieve): Delete all manually passed-in .isolate files now that they
# are unused. http://crbug.com/589318
assert(!defined(invoker.isolate_file) || invoker.isolate_file != "") # Mark used.
_generate_device_isolate =
!defined(invoker.ignore_all_data_deps) || !invoker.ignore_all_data_deps

Expand Down
1 change: 0 additions & 1 deletion ui/base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,6 @@ test("ui_base_unittests") {
"//chrome:resources",
"//ui/android:ui_java",
]
isolate_file = "ui_base_tests.isolate"
}

if (use_pango) {
Expand Down

0 comments on commit fc41d88

Please sign in to comment.