Commit 3871f526 authored by brettw's avatar brettw Committed by Commit bot

Convert some GN test support targets to static libs.

Converts some source sets that were source sets into static libraries. Converts additional targets in the touched files to static libraries where it seemed relevant.

A few redundant dependencies were removed (one shouldn't need to specify both "foo" and "foo:test_support"). A few empty source sets were converted to groups.

BUG=627637
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2151013002
Cr-Commit-Position: refs/heads/master@{#405593}
parent 4fbe06c4
...@@ -69,7 +69,7 @@ grit("extensions_renderer_resources") { ...@@ -69,7 +69,7 @@ grit("extensions_renderer_resources") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = rebase_path(extensions_gypi_values.extensions_test_support_sources, sources = rebase_path(extensions_gypi_values.extensions_test_support_sources,
".", ".",
......
...@@ -182,7 +182,7 @@ google_apis_tmpl("google_apis") { ...@@ -182,7 +182,7 @@ google_apis_tmpl("google_apis") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"gaia/fake_gaia.cc", "gaia/fake_gaia.cc",
...@@ -202,7 +202,6 @@ source_set("test_support") { ...@@ -202,7 +202,6 @@ source_set("test_support") {
":google_apis", ":google_apis",
"//base", "//base",
"//base/test:test_support", "//base/test:test_support",
"//net",
"//net:test_support", "//net:test_support",
] ]
......
...@@ -85,7 +85,7 @@ proto_library("proto") { ...@@ -85,7 +85,7 @@ proto_library("proto") {
defines = [ "GCM_IMPLEMENTATION" ] defines = [ "GCM_IMPLEMENTATION" ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"base/fake_encryptor.cc", "base/fake_encryptor.cc",
......
...@@ -127,7 +127,7 @@ test("command_buffer_gles2_tests") { ...@@ -127,7 +127,7 @@ test("command_buffer_gles2_tests") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"command_buffer/client/gles2_interface_stub.cc", "command_buffer/client/gles2_interface_stub.cc",
......
...@@ -282,7 +282,7 @@ if (!is_ios) { ...@@ -282,7 +282,7 @@ if (!is_ios) {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"ipc_multiprocess_test.cc", "ipc_multiprocess_test.cc",
......
...@@ -483,7 +483,7 @@ component("media") { ...@@ -483,7 +483,7 @@ component("media") {
] ]
} }
source_set("cdm_paths") { static_library("cdm_paths") {
sources = [ sources = [
"cdm/cdm_paths.cc", "cdm/cdm_paths.cc",
"cdm/cdm_paths.h", "cdm/cdm_paths.h",
...@@ -755,7 +755,7 @@ test("audio_unittests") { ...@@ -755,7 +755,7 @@ test("audio_unittests") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"renderers/mock_gpu_memory_buffer_video_frame_pool.cc", "renderers/mock_gpu_memory_buffer_video_frame_pool.cc",
......
...@@ -274,7 +274,7 @@ if (use_pulseaudio && link_pulseaudio) { ...@@ -274,7 +274,7 @@ if (use_pulseaudio && link_pulseaudio) {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"audio_unittest_util.cc", "audio_unittest_util.cc",
......
...@@ -363,7 +363,7 @@ if (is_ios) { ...@@ -363,7 +363,7 @@ if (is_ios) {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"fake_audio_render_callback.cc", "fake_audio_render_callback.cc",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import("//testing/test.gni") import("//testing/test.gni")
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"mojo_test_base.cc", "mojo_test_base.cc",
...@@ -73,7 +73,7 @@ source_set("run_all_perftests") { ...@@ -73,7 +73,7 @@ source_set("run_all_perftests") {
} }
} }
source_set("test_support_impl") { static_library("test_support_impl") {
testonly = true testonly = true
deps = [ deps = [
"//base", "//base",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
# GYP version: mojo/public/mojo_public.gyp:mojo_public_test_utils # GYP version: mojo/public/mojo_public.gyp:mojo_public_test_utils
source_set("test_utils") { static_library("test_utils") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -506,7 +506,7 @@ bundle_data("test_support_bundle_data") { ...@@ -506,7 +506,7 @@ bundle_data("test_support_bundle_data") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"base/load_timing_info_test_util.cc", "base/load_timing_info_test_util.cc",
...@@ -1749,7 +1749,7 @@ if (!is_ios) { ...@@ -1749,7 +1749,7 @@ if (!is_ios) {
# Fuzzers # Fuzzers
source_set("net_fuzzer_test_support") { static_library("net_fuzzer_test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -358,7 +358,7 @@ source_set("ipc_sources") { ...@@ -358,7 +358,7 @@ source_set("ipc_sources") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -199,7 +199,7 @@ component("shared_impl") { ...@@ -199,7 +199,7 @@ component("shared_impl") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -113,7 +113,7 @@ if (is_win) { ...@@ -113,7 +113,7 @@ if (is_win) {
} }
# GYP version: remoting/remoting_test.gypi:remoting_test_support # GYP version: remoting/remoting_test.gypi:remoting_test_support
source_set("test_support") { group("test_support") {
testonly = true testonly = true
deps = [ deps = [
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import("//remoting/remoting_srcs.gni") import("//remoting/remoting_srcs.gni")
source_set("client") { static_library("client") {
# Disabled the source filters because there are _mac files that need to # Disabled the source filters because there are _mac files that need to
# be compiled on all platforms. # be compiled on all platforms.
set_sources_assignment_filter([]) set_sources_assignment_filter([])
...@@ -62,7 +62,7 @@ if (is_android || is_ios) { ...@@ -62,7 +62,7 @@ if (is_android || is_ios) {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -234,7 +234,7 @@ static_library("host") { ...@@ -234,7 +234,7 @@ static_library("host") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
...@@ -864,7 +864,7 @@ if (enable_remoting_host && !is_android) { ...@@ -864,7 +864,7 @@ if (enable_remoting_host && !is_android) {
} }
if (enable_me2me_host) { if (enable_me2me_host) {
source_set("remoting_me2me_host_static") { static_library("remoting_me2me_host_static") {
sources = [ sources = [
"pam_authorization_factory_posix.cc", "pam_authorization_factory_posix.cc",
"pam_authorization_factory_posix.h", "pam_authorization_factory_posix.h",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import("//build/config/features.gni") import("//build/config/features.gni")
import("//remoting/remoting_srcs.gni") import("//remoting/remoting_srcs.gni")
source_set("protocol") { static_library("protocol") {
sources = rebase_path(remoting_srcs_gypi_values.remoting_protocol_sources, sources = rebase_path(remoting_srcs_gypi_values.remoting_protocol_sources,
".", ".",
"//remoting") "//remoting")
...@@ -50,7 +50,7 @@ source_set("protocol") { ...@@ -50,7 +50,7 @@ source_set("protocol") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import("//remoting/remoting_srcs.gni") import("//remoting/remoting_srcs.gni")
source_set("signaling") { static_library("signaling") {
sources = rebase_path(remoting_srcs_gypi_values.remoting_signaling_sources, sources = rebase_path(remoting_srcs_gypi_values.remoting_signaling_sources,
".", ".",
"//remoting") "//remoting")
...@@ -36,7 +36,7 @@ source_set("signaling") { ...@@ -36,7 +36,7 @@ source_set("signaling") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import("//remoting/remoting_enable.gni") import("//remoting/remoting_enable.gni")
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
...@@ -106,7 +106,7 @@ executable("chromoting_test_driver") { ...@@ -106,7 +106,7 @@ executable("chromoting_test_driver") {
] ]
} }
source_set("ar_test_driver_common") { static_library("ar_test_driver_common") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -6,7 +6,7 @@ import("//mojo/public/mojo_application.gni") ...@@ -6,7 +6,7 @@ import("//mojo/public/mojo_application.gni")
import("//mojo/public/tools/bindings/mojom.gni") import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni") import("//testing/test.gni")
source_set("test_support") { static_library("test_support") {
sources = [ sources = [
"test_catalog_store.cc", "test_catalog_store.cc",
"test_catalog_store.h", "test_catalog_store.h",
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
# found in the LICENSE file. # found in the LICENSE file.
# GYP version: mojo/mojo_base.gyp:mojo_application_base # GYP version: mojo/mojo_base.gyp:mojo_application_base
source_set("cpp") { group("cpp") {
public_deps = [ public_deps = [
":sources", ":sources",
] ]
} }
# TODO(rockot): Rename this to "cpp". # TODO(rockot): Rename this to "cpp".
source_set("sources") { static_library("sources") {
sources = [ sources = [
"application_runner.h", "application_runner.h",
"capabilities.h", "capabilities.h",
...@@ -55,7 +55,7 @@ source_set("sources") { ...@@ -55,7 +55,7 @@ source_set("sources") {
} }
if (!is_ios) { if (!is_ios) {
source_set("application_support") { static_library("application_support") {
sources = [ sources = [
"lib/init_commandline.cc", "lib/init_commandline.cc",
"lib/initialize_base_and_icu.cc", "lib/initialize_base_and_icu.cc",
...@@ -68,7 +68,7 @@ if (!is_ios) { ...@@ -68,7 +68,7 @@ if (!is_ios) {
] ]
} }
source_set("service_test_support") { static_library("service_test_support") {
testonly = true testonly = true
sources = [ sources = [
"lib/service_test.cc", "lib/service_test.cc",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import("//build/config/ui.gni") import("//build/config/ui.gni")
import("//testing/test.gni") import("//testing/test.gni")
source_set("unittest_support") { static_library("unittest_support") {
testonly = true testonly = true
sources = [ sources = [
...@@ -27,7 +27,7 @@ source_set("unittest_support") { ...@@ -27,7 +27,7 @@ source_set("unittest_support") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -7,7 +7,7 @@ import("//testing/test.gni") ...@@ -7,7 +7,7 @@ import("//testing/test.gni")
import("//mojo/public/mojo_application.gni") import("//mojo/public/mojo_application.gni")
import("//mojo/public/mojo_application_manifest.gni") import("//mojo/public/mojo_application_manifest.gni")
source_set("lib") { static_library("lib") {
sources = [ sources = [
"accelerator.cc", "accelerator.cc",
"accelerator.h", "accelerator.h",
...@@ -136,7 +136,7 @@ source_set("lib") { ...@@ -136,7 +136,7 @@ source_set("lib") {
} }
} }
source_set("test_interface") { static_library("test_interface") {
sources = [ sources = [
"window_server_test_impl.cc", "window_server_test_impl.cc",
"window_server_test_impl.h", "window_server_test_impl.h",
...@@ -150,7 +150,7 @@ source_set("test_interface") { ...@@ -150,7 +150,7 @@ source_set("test_interface") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
...@@ -37,7 +37,7 @@ component("sql") { ...@@ -37,7 +37,7 @@ component("sql") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"test/error_callback_support.cc", "test/error_callback_support.cc",
......
...@@ -472,7 +472,7 @@ component("platform") { ...@@ -472,7 +472,7 @@ component("platform") {
} }
} }
source_set("test_support") { static_library("test_support") {
sources = platform_test_support_files sources = platform_test_support_files
visibility += [ "//third_party/WebKit/*" ] visibility += [ "//third_party/WebKit/*" ]
testonly = true testonly = true
......
...@@ -66,7 +66,7 @@ component("web") { ...@@ -66,7 +66,7 @@ component("web") {
} }
# GYP version: WebKit/Source/web/web.gyp:blink_web_test_support # GYP version: WebKit/Source/web/web.gyp:blink_web_test_support
source_set("test_support") { static_library("test_support") {
deps = [ deps = [
"//skia", "//skia",
"//third_party/WebKit/Source/core:testing", "//third_party/WebKit/Source/core:testing",
......
...@@ -123,7 +123,7 @@ if (is_android) { ...@@ -123,7 +123,7 @@ if (is_android) {
} }
} }
source_set("test_support") { static_library("test_support") {
sources = [ sources = [
"platform/test_ax_node_wrapper.cc", "platform/test_ax_node_wrapper.cc",
"platform/test_ax_node_wrapper.h", "platform/test_ax_node_wrapper.h",
......
...@@ -46,7 +46,7 @@ mojom("mojom") { ...@@ -46,7 +46,7 @@ mojom("mojom") {
] ]
} }
source_set("test_support") { static_library("test_support") {
sources = [ sources = [
"test/app_list_presenter_impl_test_api.cc", "test/app_list_presenter_impl_test_api.cc",
"test/app_list_presenter_impl_test_api.h", "test/app_list_presenter_impl_test_api.h",
......
...@@ -150,7 +150,7 @@ component("aura") { ...@@ -150,7 +150,7 @@ component("aura") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"test/aura_test_base.cc", "test/aura_test_base.cc",
......
...@@ -611,7 +611,7 @@ component("base") { ...@@ -611,7 +611,7 @@ component("base") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"test/material_design_controller_test_api.cc", "test/material_design_controller_test_api.cc",
......
...@@ -96,7 +96,7 @@ component("compositor") { ...@@ -96,7 +96,7 @@ component("compositor") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"test/context_factories_for_test.cc", "test/context_factories_for_test.cc",
......
...@@ -140,7 +140,7 @@ if (is_chromeos) { ...@@ -140,7 +140,7 @@ if (is_chromeos) {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"chromeos/test/action_logger.cc", "chromeos/test/action_logger.cc",
......
...@@ -267,7 +267,7 @@ component("gesture_detection") { ...@@ -267,7 +267,7 @@ component("gesture_detection") {
} }
} }
source_set("test_support") { static_library("test_support") {
sources = [ sources = [
"test/cocoa_test_event_utils.h", "test/cocoa_test_event_utils.h",
"test/cocoa_test_event_utils.mm", "test/cocoa_test_event_utils.mm",
......
...@@ -537,7 +537,7 @@ source_set("memory_buffer_sources") { ...@@ -537,7 +537,7 @@ source_set("memory_buffer_sources") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"image/image_unittest_util.cc", "image/image_unittest_util.cc",
......
...@@ -290,7 +290,7 @@ component("gl") { ...@@ -290,7 +290,7 @@ component("gl") {
} }
} }
source_set("gl_unittest_utils") { static_library("gl_unittest_utils") {
testonly = true testonly = true
sources = [ sources = [
"gl_bindings_autogen_mock.cc", "gl_bindings_autogen_mock.cc",
...@@ -311,7 +311,7 @@ source_set("gl_unittest_utils") { ...@@ -311,7 +311,7 @@ source_set("gl_unittest_utils") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"test/gl_image_test_support.cc", "test/gl_image_test_support.cc",
......
...@@ -166,7 +166,7 @@ component("message_center") { ...@@ -166,7 +166,7 @@ component("message_center") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
if (enable_notifications && !is_android) { if (enable_notifications && !is_android) {
......
...@@ -148,7 +148,7 @@ component("views") { ...@@ -148,7 +148,7 @@ component("views") {
} }
} }
source_set("test_support_internal") { static_library("test_support_internal") {
testonly = true testonly = true
sources = gypi_values.views_test_support_sources sources = gypi_values.views_test_support_sources
......
...@@ -44,7 +44,7 @@ component("webview") { ...@@ -44,7 +44,7 @@ component("webview") {
} }
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
"../../test/webview_test_helper.cc", "../../test/webview_test_helper.cc",
......
...@@ -118,7 +118,7 @@ group("for_mojo_application") { ...@@ -118,7 +118,7 @@ group("for_mojo_application") {
] ]
} }
source_set("test_support") { static_library("test_support") {
testonly = true testonly = true
sources = [ sources = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment