Reformat GN files.
`gn format` recently [1] changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.
Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.
CL generated with:
$ git ls-files | grep BUILD.gn | xargs gn format
$ gn format build_overrides/build.gni
$ gn format build_overrides/gtest.gni
$ gn format modules/audio_coding/audio_coding.gni
$ gn format webrtc.gni
$ gn format .gn
Plus a few manual changes to add exceptions for
"public_deps" (after changing these lines the presubmit
started to complain).
[1] - https://gn-review.googlesource.com/c/gn/+/6860
Bug: webrtc:11302
Change-Id: Iac29d23c1618ebef925c972e2891cd9f4e8cd613
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166882
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30334}
diff --git a/api/BUILD.gn b/api/BUILD.gn
index f2a940e..a1969ca 100644
--- a/api/BUILD.gn
+++ b/api/BUILD.gn
@@ -23,19 +23,13 @@
rtc_source_set("call_api") {
visibility = [ "*" ]
- sources = [
- "call/audio_sink.h",
- ]
+ sources = [ "call/audio_sink.h" ]
}
rtc_source_set("callfactory_api") {
visibility = [ "*" ]
- sources = [
- "call/call_factory_interface.h",
- ]
- deps = [
- "../rtc_base/system:rtc_export",
- ]
+ sources = [ "call/call_factory_interface.h" ]
+ deps = [ "../rtc_base/system:rtc_export" ]
}
if (!build_with_chromium) {
@@ -248,17 +242,13 @@
rtc_source_set("scoped_refptr") {
visibility = [ "*" ]
- sources = [
- "scoped_refptr.h",
- ]
+ sources = [ "scoped_refptr.h" ]
}
rtc_source_set("video_quality_test_fixture_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/video_quality_test_fixture.h",
- ]
+ sources = [ "test/video_quality_test_fixture.h" ]
deps = [
":fec_controller_api",
":libjingle_peerconnection_api",
@@ -279,9 +269,7 @@
rtc_source_set("video_quality_analyzer_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/video_quality_analyzer_interface.h",
- ]
+ sources = [ "test/video_quality_analyzer_interface.h" ]
deps = [
":stats_observer_interface",
@@ -295,9 +283,7 @@
rtc_source_set("track_id_stream_label_map") {
visibility = [ "*" ]
- sources = [
- "test/track_id_stream_label_map.h",
- ]
+ sources = [ "test/track_id_stream_label_map.h" ]
}
rtc_library("rtp_parameters") {
@@ -320,9 +306,7 @@
rtc_source_set("audio_quality_analyzer_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/audio_quality_analyzer_interface.h",
- ]
+ sources = [ "test/audio_quality_analyzer_interface.h" ]
deps = [
":stats_observer_interface",
@@ -333,9 +317,7 @@
rtc_source_set("stats_observer_interface") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/stats_observer_interface.h",
- ]
+ sources = [ "test/stats_observer_interface.h" ]
deps = [
# For api/stats_types.h
@@ -347,9 +329,7 @@
rtc_source_set("peer_connection_quality_test_fixture_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/peerconnection_quality_test_fixture.h",
- ]
+ sources = [ "test/peerconnection_quality_test_fixture.h" ]
deps = [
":audio_quality_analyzer_api",
@@ -380,9 +360,7 @@
rtc_source_set("frame_generator_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/frame_generator_interface.h",
- ]
+ sources = [ "test/frame_generator_interface.h" ]
deps = [
":scoped_refptr",
@@ -471,9 +449,7 @@
rtc_source_set("libjingle_logging_api") {
visibility = [ "*" ]
- sources = [
- "rtc_event_log_output.h",
- ]
+ sources = [ "rtc_event_log_output.h" ]
}
rtc_library("rtc_event_log_output_file") {
@@ -535,9 +511,7 @@
rtc_source_set("bitrate_allocation") {
visibility = [ "*" ]
- sources = [
- "call/bitrate_allocation.h",
- ]
+ sources = [ "call/bitrate_allocation.h" ]
deps = [
"units:data_rate",
"units:time_delta",
@@ -547,9 +521,7 @@
# TODO(srte): Move to network_emulation sub directory.
rtc_source_set("simulated_network_api") {
visibility = [ "*" ]
- sources = [
- "test/simulated_network.h",
- ]
+ sources = [ "test/simulated_network.h" ]
deps = [
"../rtc_base",
"../rtc_base:criticalsection",
@@ -590,16 +562,12 @@
rtc_source_set("network_state_predictor_api") {
visibility = [ "*" ]
- sources = [
- "network_state_predictor.h",
- ]
+ sources = [ "network_state_predictor.h" ]
}
rtc_source_set("array_view") {
visibility = [ "*" ]
- sources = [
- "array_view.h",
- ]
+ sources = [ "array_view.h" ]
deps = [
"../rtc_base:checks",
"../rtc_base:type_traits",
@@ -608,12 +576,8 @@
rtc_source_set("refcountedbase") {
visibility = [ "*" ]
- sources = [
- "ref_counted_base.h",
- ]
- deps = [
- "../rtc_base:rtc_base_approved",
- ]
+ sources = [ "ref_counted_base.h" ]
+ deps = [ "../rtc_base:rtc_base_approved" ]
}
rtc_library("ice_transport_factory") {
@@ -643,12 +607,8 @@
rtc_source_set("function_view") {
visibility = [ "*" ]
- sources = [
- "function_view.h",
- ]
- deps = [
- "../rtc_base:checks",
- ]
+ sources = [ "function_view.h" ]
+ deps = [ "../rtc_base:checks" ]
}
if (rtc_include_tests) {
@@ -690,9 +650,7 @@
rtc_source_set("simulcast_test_fixture_api") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/simulcast_test_fixture.h",
- ]
+ sources = [ "test/simulcast_test_fixture.h" ]
}
rtc_library("create_simulcast_test_fixture_api") {
@@ -745,9 +703,7 @@
rtc_source_set("mock_audio_mixer") {
testonly = true
- sources = [
- "test/mock_audio_mixer.h",
- ]
+ sources = [ "test/mock_audio_mixer.h" ]
deps = [
"../test:test_support",
@@ -757,9 +713,7 @@
rtc_source_set("mock_fec_controller_override") {
testonly = true
- sources = [
- "test/mock_fec_controller_override.h",
- ]
+ sources = [ "test/mock_fec_controller_override.h" ]
deps = [
":fec_controller_api",
"../test:test_support",
@@ -830,9 +784,7 @@
rtc_source_set("dummy_peer_connection") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/dummy_peer_connection.h",
- ]
+ sources = [ "test/dummy_peer_connection.h" ]
deps = [
":libjingle_peerconnection_api",
@@ -844,9 +796,7 @@
rtc_source_set("mock_peerconnectioninterface") {
testonly = true
- sources = [
- "test/mock_peerconnectioninterface.h",
- ]
+ sources = [ "test/mock_peerconnectioninterface.h" ]
deps = [
":libjingle_peerconnection_api",
@@ -869,9 +819,7 @@
rtc_source_set("mock_video_bitrate_allocator") {
testonly = true
- sources = [
- "test/mock_video_bitrate_allocator.h",
- ]
+ sources = [ "test/mock_video_bitrate_allocator.h" ]
deps = [
"../api/video:video_bitrate_allocator",
@@ -881,9 +829,7 @@
rtc_source_set("mock_video_bitrate_allocator_factory") {
testonly = true
- sources = [
- "test/mock_video_bitrate_allocator_factory.h",
- ]
+ sources = [ "test/mock_video_bitrate_allocator_factory.h" ]
deps = [
"../api/video:video_bitrate_allocator_factory",
@@ -970,9 +916,7 @@
rtc_library("time_controller") {
visibility = [ "*" ]
testonly = true
- sources = [
- "test/time_controller.h",
- ]
+ sources = [ "test/time_controller.h" ]
deps = [
"../modules:module_api",
@@ -1052,9 +996,7 @@
rtc_library("compile_all_headers") {
testonly = true
- sources = [
- "test/compile_all_headers.cc",
- ]
+ sources = [ "test/compile_all_headers.cc" ]
deps = [
":fake_frame_decryptor",
diff --git a/api/audio/BUILD.gn b/api/audio/BUILD.gn
index 270a065..2405d9d 100644
--- a/api/audio/BUILD.gn
+++ b/api/audio/BUILD.gn
@@ -26,9 +26,7 @@
rtc_source_set("audio_mixer_api") {
visibility = [ "*" ]
- sources = [
- "audio_mixer.h",
- ]
+ sources = [ "audio_mixer.h" ]
deps = [
":audio_frame_api",
@@ -86,10 +84,6 @@
rtc_source_set("echo_control") {
visibility = [ "*" ]
- sources = [
- "echo_control.h",
- ]
- deps = [
- "../../rtc_base:checks",
- ]
+ sources = [ "echo_control.h" ]
+ deps = [ "../../rtc_base:checks" ]
}
diff --git a/api/audio_codecs/g722/BUILD.gn b/api/audio_codecs/g722/BUILD.gn
index 952188a..8738ef8 100644
--- a/api/audio_codecs/g722/BUILD.gn
+++ b/api/audio_codecs/g722/BUILD.gn
@@ -14,9 +14,7 @@
rtc_source_set("audio_encoder_g722_config") {
visibility = [ "*" ]
- sources = [
- "audio_encoder_g722_config.h",
- ]
+ sources = [ "audio_encoder_g722_config.h" ]
}
rtc_library("audio_encoder_g722") {
diff --git a/api/audio_codecs/ilbc/BUILD.gn b/api/audio_codecs/ilbc/BUILD.gn
index 14f9268..066a73c 100644
--- a/api/audio_codecs/ilbc/BUILD.gn
+++ b/api/audio_codecs/ilbc/BUILD.gn
@@ -14,9 +14,7 @@
rtc_source_set("audio_encoder_ilbc_config") {
visibility = [ "*" ]
- sources = [
- "audio_encoder_ilbc_config.h",
- ]
+ sources = [ "audio_encoder_ilbc_config.h" ]
}
rtc_library("audio_encoder_ilbc") {
diff --git a/api/audio_codecs/isac/BUILD.gn b/api/audio_codecs/isac/BUILD.gn
index 469176f..9eb3214 100644
--- a/api/audio_codecs/isac/BUILD.gn
+++ b/api/audio_codecs/isac/BUILD.gn
@@ -20,36 +20,24 @@
rtc_source_set("audio_encoder_isac") {
visibility = [ "*" ]
poisonous = [ "audio_codecs" ]
- public = [
- "audio_encoder_isac.h",
- ]
+ public = [ "audio_encoder_isac.h" ]
public_configs = [ ":isac_config" ]
if (current_cpu == "arm") {
- deps = [
- ":audio_encoder_isac_fix",
- ]
+ deps = [ ":audio_encoder_isac_fix" ]
} else {
- deps = [
- ":audio_encoder_isac_float",
- ]
+ deps = [ ":audio_encoder_isac_float" ]
}
}
rtc_source_set("audio_decoder_isac") {
visibility = [ "*" ]
poisonous = [ "audio_codecs" ]
- public = [
- "audio_decoder_isac.h",
- ]
+ public = [ "audio_decoder_isac.h" ]
public_configs = [ ":isac_config" ]
if (current_cpu == "arm") {
- deps = [
- ":audio_decoder_isac_fix",
- ]
+ deps = [ ":audio_decoder_isac_fix" ]
} else {
- deps = [
- ":audio_decoder_isac_float",
- ]
+ deps = [ ":audio_decoder_isac_float" ]
}
}
diff --git a/api/audio_codecs/opus/BUILD.gn b/api/audio_codecs/opus/BUILD.gn
index 7131b28..5fb626d 100644
--- a/api/audio_codecs/opus/BUILD.gn
+++ b/api/audio_codecs/opus/BUILD.gn
@@ -35,20 +35,14 @@
rtc_source_set("audio_decoder_opus_config") {
visibility = [ "*" ]
- sources = [
- "audio_decoder_multi_channel_opus_config.h",
- ]
+ sources = [ "audio_decoder_multi_channel_opus_config.h" ]
}
rtc_library("audio_encoder_opus") {
visibility = [ "*" ]
poisonous = [ "audio_codecs" ]
- public = [
- "audio_encoder_opus.h",
- ]
- sources = [
- "audio_encoder_opus.cc",
- ]
+ public = [ "audio_encoder_opus.h" ]
+ sources = [ "audio_encoder_opus.cc" ]
deps = [
":audio_encoder_opus_config",
"..:audio_codecs_api",
@@ -80,12 +74,8 @@
rtc_library("audio_encoder_multiopus") {
visibility = [ "*" ]
poisonous = [ "audio_codecs" ]
- public = [
- "audio_encoder_multi_channel_opus.h",
- ]
- sources = [
- "audio_encoder_multi_channel_opus.cc",
- ]
+ public = [ "audio_encoder_multi_channel_opus.h" ]
+ sources = [ "audio_encoder_multi_channel_opus.cc" ]
deps = [
"..:audio_codecs_api",
"../../../modules/audio_coding:webrtc_multiopus",
diff --git a/api/crypto/BUILD.gn b/api/crypto/BUILD.gn
index 302b16e..70626f6 100644
--- a/api/crypto/BUILD.gn
+++ b/api/crypto/BUILD.gn
@@ -30,9 +30,7 @@
rtc_source_set("frame_decryptor_interface") {
visibility = [ "*" ]
- sources = [
- "frame_decryptor_interface.h",
- ]
+ sources = [ "frame_decryptor_interface.h" ]
deps = [
"..:array_view",
"..:rtp_parameters",
@@ -42,9 +40,7 @@
rtc_source_set("frame_encryptor_interface") {
visibility = [ "*" ]
- sources = [
- "frame_encryptor_interface.h",
- ]
+ sources = [ "frame_encryptor_interface.h" ]
deps = [
"..:array_view",
"..:rtp_parameters",
diff --git a/api/neteq/BUILD.gn b/api/neteq/BUILD.gn
index 31c4979..f1e5d1d 100644
--- a/api/neteq/BUILD.gn
+++ b/api/neteq/BUILD.gn
@@ -87,9 +87,7 @@
rtc_source_set("tick_timer_unittest") {
visibility = [ "*" ]
testonly = true
- sources = [
- "tick_timer_unittest.cc",
- ]
+ sources = [ "tick_timer_unittest.cc" ]
deps = [
":tick_timer",
"../../test:test_support",
diff --git a/api/task_queue/BUILD.gn b/api/task_queue/BUILD.gn
index 00be784..4c9f591 100644
--- a/api/task_queue/BUILD.gn
+++ b/api/task_queue/BUILD.gn
@@ -15,9 +15,7 @@
"task_queue_base.h",
"task_queue_factory.h",
]
- sources = [
- "task_queue_base.cc",
- ]
+ sources = [ "task_queue_base.cc" ]
deps = [
"../../rtc_base:checks",
@@ -75,12 +73,8 @@
if (!is_ios && !is_android) {
poisonous = [ "default_task_queue" ]
}
- sources = [
- "default_task_queue_factory.h",
- ]
- deps = [
- ":task_queue",
- ]
+ sources = [ "default_task_queue_factory.h" ]
+ deps = [ ":task_queue" ]
if (rtc_enable_libevent) {
sources += [ "default_task_queue_factory_libevent.cc" ]
@@ -100,9 +94,7 @@
if (rtc_include_tests) {
rtc_library("task_queue_default_factory_unittests") {
testonly = true
- sources = [
- "default_task_queue_factory_unittest.cc",
- ]
+ sources = [ "default_task_queue_factory_unittest.cc" ]
deps = [
":default_task_queue_factory",
":task_queue_test",
diff --git a/api/transport/BUILD.gn b/api/transport/BUILD.gn
index 7f39975..0f07301 100644
--- a/api/transport/BUILD.gn
+++ b/api/transport/BUILD.gn
@@ -22,9 +22,7 @@
rtc_source_set("enums") {
visibility = [ "*" ]
- sources = [
- "enums.h",
- ]
+ sources = [ "enums.h" ]
}
rtc_library("network_control") {
@@ -50,9 +48,7 @@
rtc_source_set("webrtc_key_value_config") {
visibility = [ "*" ]
- sources = [
- "webrtc_key_value_config.h",
- ]
+ sources = [ "webrtc_key_value_config.h" ]
deps = [
"../../rtc_base/system:rtc_export",
"//third_party/abseil-cpp/absl/strings",
@@ -122,9 +118,7 @@
if (rtc_include_tests) {
rtc_source_set("test_feedback_generator_interface") {
testonly = true
- sources = [
- "test/feedback_generator_interface.h",
- ]
+ sources = [ "test/feedback_generator_interface.h" ]
deps = [
":network_control",
"..:simulated_network_api",
@@ -149,9 +143,7 @@
rtc_source_set("stun_unittest") {
visibility = [ "*" ]
testonly = true
- sources = [
- "stun_unittest.cc",
- ]
+ sources = [ "stun_unittest.cc" ]
deps = [
":stun_types",
"../../rtc_base",
@@ -166,9 +158,7 @@
if (rtc_include_tests) {
rtc_source_set("mock_network_control") {
testonly = true
- sources = [
- "test/mock_network_control.h",
- ]
+ sources = [ "test/mock_network_control.h" ]
deps = [
":network_control",
"../../test:test_support",
diff --git a/api/transport/media/BUILD.gn b/api/transport/media/BUILD.gn
index ca7531d..24a364c 100644
--- a/api/transport/media/BUILD.gn
+++ b/api/transport/media/BUILD.gn
@@ -39,9 +39,7 @@
"audio_transport.cc",
"audio_transport.h",
]
- deps = [
- "../..:array_view",
- ]
+ deps = [ "../..:array_view" ]
}
rtc_library("video_interfaces") {
@@ -50,7 +48,5 @@
"video_transport.cc",
"video_transport.h",
]
- deps = [
- "../../video:encoded_image",
- ]
+ deps = [ "../../video:encoded_image" ]
}
diff --git a/api/video/test/BUILD.gn b/api/video/test/BUILD.gn
index e755670..3dcb909 100644
--- a/api/video/test/BUILD.gn
+++ b/api/video/test/BUILD.gn
@@ -26,9 +26,7 @@
rtc_source_set("mock_recordable_encoded_frame") {
testonly = true
visibility = [ "*" ]
- sources = [
- "mock_recordable_encoded_frame.h",
- ]
+ sources = [ "mock_recordable_encoded_frame.h" ]
deps = [
"..:recordable_encoded_frame",