2017-06-29 08:03:04 +02:00
|
|
|
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
2017-06-20 08:38:58 +02:00
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
2017-06-29 08:03:04 +02:00
|
|
|
import("//build/config/crypto.gni")
|
|
|
|
|
import("//build/config/ui.gni")
|
2017-06-20 08:38:58 +02:00
|
|
|
import("../webrtc.gni")
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-29 08:03:04 +02:00
|
|
|
config("rtc_base_chromium_config") {
|
|
|
|
|
defines = [ "NO_MAIN_THREAD_WRAPPING" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("rtc_base_all_dependent_config") {
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
libs = [
|
|
|
|
|
"CFNetwork.framework",
|
2018-02-03 12:24:24 -08:00
|
|
|
"Foundation.framework",
|
2017-06-29 08:03:04 +02:00
|
|
|
"Security.framework",
|
|
|
|
|
"SystemConfiguration.framework",
|
|
|
|
|
"UIKit.framework",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
libs = [
|
|
|
|
|
"Cocoa.framework",
|
|
|
|
|
"Foundation.framework",
|
|
|
|
|
"IOKit.framework",
|
|
|
|
|
"Security.framework",
|
|
|
|
|
"SystemConfiguration.framework",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-16 10:40:39 -05:00
|
|
|
if (!rtc_build_ssl) {
|
2017-06-29 08:03:04 +02:00
|
|
|
config("external_ssl_library") {
|
|
|
|
|
assert(rtc_ssl_root != "",
|
|
|
|
|
"You must specify rtc_ssl_root when rtc_build_ssl==0.")
|
|
|
|
|
include_dirs = [ rtc_ssl_root ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-17 13:49:46 +02:00
|
|
|
rtc_source_set("protobuf_utils") {
|
2017-06-29 08:03:04 +02:00
|
|
|
sources = [
|
|
|
|
|
"protobuf_utils.h",
|
|
|
|
|
]
|
|
|
|
|
if (rtc_enable_protobuf) {
|
2018-08-13 15:04:25 +02:00
|
|
|
public_configs = [ "//third_party/protobuf:protobuf_config" ]
|
|
|
|
|
deps = [
|
2017-06-29 08:03:04 +02:00
|
|
|
"//third_party/protobuf:protobuf_lite",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-17 13:49:46 +02:00
|
|
|
rtc_source_set("compile_assert_c") {
|
2017-06-29 08:03:04 +02:00
|
|
|
sources = [
|
|
|
|
|
"compile_assert_c.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-10 15:51:03 +02:00
|
|
|
# The subset of rtc_base approved for use outside of libjingle.
|
2018-11-05 12:55:18 +01:00
|
|
|
# TODO(bugs.webrtc.org/9838): Create small and focused build targets and remove
|
2018-10-10 15:51:03 +02:00
|
|
|
# the old concept of rtc_base and rtc_base_approved.
|
2017-09-11 03:43:34 -07:00
|
|
|
rtc_source_set("rtc_base_approved") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2018-10-10 15:51:03 +02:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":rtc_task_queue",
|
|
|
|
|
":safe_compare",
|
2018-10-18 12:26:46 +02:00
|
|
|
":safe_minmax",
|
2018-10-10 15:51:03 +02:00
|
|
|
":type_traits",
|
|
|
|
|
"../api:array_view",
|
2019-03-21 14:37:36 +01:00
|
|
|
"../api:function_view",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-10-18 12:26:46 +02:00
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"experiments:field_trial_parser",
|
2018-10-10 15:51:03 +02:00
|
|
|
"system:arch",
|
|
|
|
|
"system:unused",
|
|
|
|
|
"third_party/base64",
|
2018-11-28 16:47:49 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-10-10 15:51:03 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"bind.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"bit_buffer.cc",
|
|
|
|
|
"bit_buffer.h",
|
|
|
|
|
"bitrate_allocation_strategy.cc",
|
|
|
|
|
"bitrate_allocation_strategy.h",
|
2018-10-10 15:51:03 +02:00
|
|
|
"buffer.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"buffer_queue.cc",
|
|
|
|
|
"buffer_queue.h",
|
|
|
|
|
"byte_buffer.cc",
|
|
|
|
|
"byte_buffer.h",
|
|
|
|
|
"byte_order.h",
|
|
|
|
|
"copy_on_write_buffer.cc",
|
|
|
|
|
"copy_on_write_buffer.h",
|
2018-10-10 15:51:03 +02:00
|
|
|
"event_tracer.cc",
|
|
|
|
|
"event_tracer.h",
|
|
|
|
|
"flags.cc",
|
|
|
|
|
"flags.h",
|
|
|
|
|
"function_view.h",
|
|
|
|
|
"ignore_wundef.h",
|
|
|
|
|
"location.cc",
|
|
|
|
|
"location.h",
|
|
|
|
|
"message_buffer_reader.h",
|
|
|
|
|
"numerics/histogram_percentile_counter.cc",
|
|
|
|
|
"numerics/histogram_percentile_counter.h",
|
|
|
|
|
"numerics/mod_ops.h",
|
|
|
|
|
"numerics/moving_max_counter.h",
|
|
|
|
|
"numerics/sample_counter.cc",
|
|
|
|
|
"numerics/sample_counter.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"one_time_event.h",
|
2018-10-10 15:51:03 +02:00
|
|
|
"platform_file.cc",
|
|
|
|
|
"platform_file.h",
|
|
|
|
|
"race_checker.cc",
|
|
|
|
|
"race_checker.h",
|
|
|
|
|
"random.cc",
|
|
|
|
|
"random.h",
|
|
|
|
|
"rate_statistics.cc",
|
|
|
|
|
"rate_statistics.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"rate_tracker.cc",
|
|
|
|
|
"rate_tracker.h",
|
2018-10-10 15:51:03 +02:00
|
|
|
"swap_queue.h",
|
|
|
|
|
"template_util.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"timestamp_aligner.cc",
|
|
|
|
|
"timestamp_aligner.h",
|
2018-10-10 15:51:03 +02:00
|
|
|
"trace_event.h",
|
|
|
|
|
"zero_memory.cc",
|
|
|
|
|
"zero_memory.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
sources += [
|
|
|
|
|
"win/windows_version.cc",
|
|
|
|
|
"win/windows_version.h",
|
|
|
|
|
]
|
|
|
|
|
data_deps = [
|
|
|
|
|
"//build/win:runtime_libs",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_nacl) {
|
|
|
|
|
deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
libs = [ "log" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public_deps = [ # no-presubmit-check TODO(webrtc:8603)
|
2018-03-19 11:12:48 +01:00
|
|
|
":atomicops",
|
|
|
|
|
":criticalsection",
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread",
|
|
|
|
|
":platform_thread_types",
|
|
|
|
|
":refcount",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
":stringutils",
|
|
|
|
|
":thread_checker",
|
|
|
|
|
":timeutils",
|
2017-09-11 03:43:34 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-19 11:12:48 +01:00
|
|
|
rtc_source_set("macromagic") {
|
2018-08-09 10:54:40 +02:00
|
|
|
# TODO(bugs.webrtc.org/9606): This should not be public.
|
|
|
|
|
visibility = [ "*" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"arraysize.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"constructor_magic.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
"format_macros.h",
|
|
|
|
|
"stringize_macros.h",
|
|
|
|
|
"thread_annotations.h",
|
|
|
|
|
]
|
2018-07-25 16:05:48 +02:00
|
|
|
deps = [
|
|
|
|
|
"system:arch",
|
|
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("platform_thread_types") {
|
|
|
|
|
sources = [
|
|
|
|
|
"platform_thread_types.cc",
|
|
|
|
|
"platform_thread_types.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("refcount") {
|
2018-08-09 09:47:12 +02:00
|
|
|
visibility = [ "*" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"ref_count.h",
|
|
|
|
|
"ref_counted_object.h",
|
|
|
|
|
"ref_counter.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":atomicops",
|
|
|
|
|
":macromagic",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("criticalsection") {
|
|
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"critical_section.cc",
|
|
|
|
|
"critical_section.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":atomicops",
|
|
|
|
|
":checks",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread_types",
|
2018-07-25 16:05:48 +02:00
|
|
|
"system:unused",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("platform_thread") {
|
|
|
|
|
visibility = [
|
|
|
|
|
":rtc_base_approved",
|
|
|
|
|
":rtc_task_queue_libevent",
|
|
|
|
|
":rtc_task_queue_win",
|
2018-11-23 09:07:50 -05:00
|
|
|
":rtc_task_queue_stdlib",
|
2018-03-19 11:12:48 +01:00
|
|
|
":sequenced_task_checker",
|
|
|
|
|
]
|
|
|
|
|
sources = [
|
|
|
|
|
"platform_thread.cc",
|
|
|
|
|
"platform_thread.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":atomicops",
|
|
|
|
|
":checks",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread_types",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":thread_checker",
|
|
|
|
|
":timeutils",
|
2019-01-17 19:55:46 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rtc_event") {
|
|
|
|
|
if (build_with_chromium) {
|
|
|
|
|
sources = [
|
|
|
|
|
"../../webrtc_overrides/rtc_base/event.cc",
|
|
|
|
|
"../../webrtc_overrides/rtc_base/event.h",
|
|
|
|
|
]
|
2019-03-24 19:12:40 +01:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
"//base", # Dependency on chromium's waitable_event.
|
|
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
} else {
|
|
|
|
|
sources = [
|
|
|
|
|
"event.cc",
|
|
|
|
|
"event.h",
|
|
|
|
|
]
|
2019-03-24 19:12:40 +01:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
"synchronization:yield_policy",
|
|
|
|
|
"system:warn_current_thread_is_deadlocked",
|
|
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("logging") {
|
2018-08-09 10:54:40 +02:00
|
|
|
visibility = [ "*" ]
|
2018-10-09 15:09:51 +02:00
|
|
|
libs = []
|
2018-03-19 11:12:48 +01:00
|
|
|
deps = [
|
2018-10-23 12:03:01 +02:00
|
|
|
":checks",
|
2018-03-19 11:12:48 +01:00
|
|
|
":criticalsection",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread_types",
|
|
|
|
|
":stringutils",
|
|
|
|
|
":timeutils",
|
2018-09-12 15:32:47 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (build_with_chromium) {
|
|
|
|
|
# Dependency on chromium's logging (in //base).
|
2019-03-21 13:35:10 +01:00
|
|
|
deps += [ "//base" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"../../webrtc_overrides/rtc_base/logging.cc",
|
|
|
|
|
"../../webrtc_overrides/rtc_base/logging.h",
|
|
|
|
|
]
|
|
|
|
|
} else {
|
2018-09-06 13:45:44 +02:00
|
|
|
configs += [
|
|
|
|
|
"..:no_exit_time_destructors",
|
|
|
|
|
"..:no_global_constructors",
|
|
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"logging.cc",
|
|
|
|
|
"logging.h",
|
|
|
|
|
]
|
2018-05-23 23:20:38 +02:00
|
|
|
deps += [ "system:inline" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
|
2018-10-09 16:45:14 +02:00
|
|
|
if (is_mac) {
|
|
|
|
|
deps += [ ":logging_mac" ]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-19 11:12:48 +01:00
|
|
|
# logging.h needs the deprecation header while downstream projects are
|
|
|
|
|
# removing code that depends on logging implementation details.
|
|
|
|
|
deps += [ ":deprecation" ]
|
2018-10-09 15:09:51 +02:00
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
libs += [ "log" ]
|
|
|
|
|
}
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("thread_checker") {
|
|
|
|
|
sources = [
|
|
|
|
|
"thread_checker.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-03-29 10:34:45 +01:00
|
|
|
"synchronization:sequence_checker",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("atomicops") {
|
|
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"atomic_ops.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-13 16:05:42 +01:00
|
|
|
rtc_source_set("checks") {
|
2018-08-09 10:54:40 +02:00
|
|
|
# TODO(bugs.webrtc.org/9607): This should not be public.
|
|
|
|
|
visibility = [ "*" ]
|
2018-10-09 15:09:51 +02:00
|
|
|
libs = []
|
2017-12-13 16:05:42 +01:00
|
|
|
sources = [
|
|
|
|
|
"checks.cc",
|
|
|
|
|
"checks.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":safe_compare",
|
2018-06-14 13:14:22 +02:00
|
|
|
"system:inline",
|
2019-03-11 10:31:22 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2017-12-13 16:05:42 +01:00
|
|
|
]
|
2018-10-09 15:09:51 +02:00
|
|
|
if (is_android) {
|
|
|
|
|
libs += [ "log" ]
|
|
|
|
|
}
|
2017-12-13 16:05:42 +01:00
|
|
|
}
|
|
|
|
|
|
2017-12-15 14:40:10 +01:00
|
|
|
rtc_source_set("rate_limiter") {
|
2017-12-13 16:05:42 +01:00
|
|
|
sources = [
|
2017-12-15 14:40:10 +01:00
|
|
|
"rate_limiter.cc",
|
|
|
|
|
"rate_limiter.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":rtc_base_approved",
|
|
|
|
|
"../system_wrappers",
|
2018-10-23 12:03:01 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-12-13 16:05:42 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("sanitizer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"sanitizer.h",
|
|
|
|
|
]
|
2018-11-24 20:59:41 -08:00
|
|
|
deps = [
|
|
|
|
|
"//third_party/abseil-cpp/absl/meta:type_traits",
|
|
|
|
|
]
|
2017-12-13 16:05:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("safe_compare") {
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/safe_compare.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":type_traits",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-07 14:18:56 +01:00
|
|
|
rtc_source_set("safe_minmax") {
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/safe_minmax.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":safe_compare",
|
|
|
|
|
":type_traits",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-19 11:12:48 +01:00
|
|
|
rtc_source_set("safe_conversions") {
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/safe_conversions.h",
|
|
|
|
|
"numerics/safe_conversions_impl.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("timeutils") {
|
2018-08-09 10:54:40 +02:00
|
|
|
visibility = [ "*" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"time_utils.cc",
|
|
|
|
|
"time_utils.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":safe_conversions",
|
2018-09-06 13:41:30 +02:00
|
|
|
":stringutils",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
2019-03-18 13:50:20 -07:00
|
|
|
libs = []
|
|
|
|
|
if (is_win) {
|
|
|
|
|
libs += [ "winmm.lib" ]
|
|
|
|
|
}
|
2018-03-19 11:12:48 +01:00
|
|
|
}
|
|
|
|
|
|
2017-12-15 14:40:10 +01:00
|
|
|
rtc_source_set("stringutils") {
|
2017-12-13 16:05:42 +01:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"string_encode.cc",
|
|
|
|
|
"string_encode.h",
|
2018-07-05 11:59:48 +02:00
|
|
|
"string_to_number.cc",
|
|
|
|
|
"string_to_number.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"string_utils.cc",
|
|
|
|
|
"string_utils.h",
|
2018-03-08 15:03:23 +01:00
|
|
|
"strings/string_builder.cc",
|
Adding a new string utility class: SimpleStringBuilder.
This is a fairly minimalistic string building class that
can be used instead of stringstream, which is discouraged
but tempting to use due to its convenient interface and
familiarity for anyone using our logging macros.
As a starter, I'm changing the string building code in
ReceiveStatisticsProxy and SendStatisticsProxy from using
stringstream and using SimpleStringBuilder instead.
In the case of SimpleStringBuilder, there's a single allocation,
it's done on the stack (fast), and minimal code is required for
each concatenation. The developer is responsible for ensuring
that the buffer size is adequate but the class won't overflow
the buffer. In dcheck-enabled builds, a check will go off if
we run out of buffer space.
As part of using SimpleStringBuilder for a small part of
rtc::LogMessage, a few more changes were made:
- SimpleStringBuilder is used for formatting errors instead of ostringstream.
- A new 'noop' state has been introduced for log messages that will be dropped.
- Use a static (singleton) noop ostream object for noop logging messages
instead of building up an actual ostringstream object that will be dropped.
- Add a LogMessageForTest class for better state inspection/testing.
- Fix benign bug in LogTest.Perf, change the test to not use File IO and
always enable it.
- Ensure that minimal work is done for noop messages.
- Remove dependency on rtc::Thread.
- Add tests for the extra_ field, correctly parsed paths and noop handling.
Bug: webrtc:8529, webrtc:4364, webrtc:8933
Change-Id: Ifa258c135135945e4560d9e24315f7d96f784acb
Reviewed-on: https://webrtc-review.googlesource.com/55520
Commit-Queue: Tommi <tommi@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Jonas Olsson <jonasolsson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22203}
2018-02-27 13:51:08 +01:00
|
|
|
"strings/string_builder.h",
|
2017-12-13 16:05:42 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-15 14:40:10 +01:00
|
|
|
":checks",
|
2018-07-05 11:59:48 +02:00
|
|
|
":macromagic",
|
2018-03-08 15:03:23 +01:00
|
|
|
":safe_minmax",
|
|
|
|
|
"../api:array_view",
|
2019-03-21 13:35:10 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-07-05 11:59:48 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-12-15 14:40:10 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-03 12:22:07 +02:00
|
|
|
rtc_source_set("audio_format_to_string") {
|
|
|
|
|
sources = [
|
|
|
|
|
"strings/audio_format_to_string.cc",
|
|
|
|
|
"strings/audio_format_to_string.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":stringutils",
|
|
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-15 14:40:10 +01:00
|
|
|
rtc_source_set("type_traits") {
|
|
|
|
|
sources = [
|
|
|
|
|
"type_traits.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("deprecation") {
|
|
|
|
|
sources = [
|
|
|
|
|
"deprecation.h",
|
2017-12-13 16:05:42 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-11 03:43:34 -07:00
|
|
|
if (is_mac && !build_with_chromium) {
|
2018-10-09 16:45:14 +02:00
|
|
|
rtc_source_set("logging_mac") {
|
|
|
|
|
visibility = [ ":logging" ]
|
|
|
|
|
libs = [ "Foundation.framework" ]
|
2017-09-11 03:43:34 -07:00
|
|
|
sources = [
|
2018-10-09 16:45:14 +02:00
|
|
|
"logging_mac.h",
|
2017-09-11 03:43:34 -07:00
|
|
|
"logging_mac.mm",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-25 05:00:11 -07:00
|
|
|
rtc_source_set("rtc_task_queue") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-09-19 08:28:00 -07:00
|
|
|
sources = [
|
2019-03-05 19:58:28 +01:00
|
|
|
"task_queue.cc",
|
2017-09-19 08:28:00 -07:00
|
|
|
"task_queue.h",
|
|
|
|
|
]
|
2017-08-25 05:00:11 -07:00
|
|
|
deps = [
|
2018-03-19 11:12:48 +01:00
|
|
|
":macromagic",
|
2019-01-14 14:29:18 +01:00
|
|
|
"../api/task_queue",
|
2019-03-05 19:58:28 +01:00
|
|
|
"../api/task_queue:global_task_queue_factory",
|
Reland "Export symbols needed by the Chromium component build (part 1)."
This reverts commit 16fe3f290a524a136f71660a114d0b03ef501f10.
Reason for revert:
After discussing this problem with nisse@ and yvesg@, we decided to modify
how RTC_EXPORT works and avoid to depend on the macro COMPONENT_BUILD.
RTC_EXPORT will instead depend on a macro WEBRTC_COMPONENT_BUILD (which
can be set as a GN argument which defaults to false).
When all the symbols needed by Chromium will be marked with RTC_EXPORT we
will flip the GN arg in Chromium, setting to to `component_build` and from
that moment, Chromium will depend on a WebRTC shared library when
`component_build=true`.
Original change's description:
> Revert "Export symbols needed by the Chromium component build (part 1)."
>
> This reverts commit 99eea42fc1fe0be0ebed13c5eba7e1e42059bc5a.
>
> Reason for revert:
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::UnwrapTurnPacket(unsigned char const *, unsigned int, unsigned int *, unsigned int *)" (__imp_?UnwrapTurnPacket@cricket@@YA_NPBEIPAI1@Z)
> >>> referenced by obj/services/network/network_service/socket_manager.obj:("virtual void __thiscall network::P2PSocketManager::DumpPacket(class base::span<unsigned char const, 4294967295>, bool)" (?DumpPacket@P2PSocketManager@network@@EAEXV?$span@$$CBE$0PPPPPPPP@@base@@_N@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ValidateRtpHeader(unsigned char const *, unsigned int, unsigned int *)" (__imp_?ValidateRtpHeader@cricket@@YA_NPBEIPAI@Z)
> >>> referenced by obj/services/network/network_service/socket_manager.obj:("virtual void __thiscall network::P2PSocketManager::DumpPacket(class base::span<unsigned char const, 4294967295>, bool)" (?DumpPacket@P2PSocketManager@network@@EAEXV?$span@$$CBE$0PPPPPPPP@@base@@_N@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ApplyPacketOptions(unsigned char *, unsigned int, struct rtc::PacketTimeUpdateParams const &, unsigned __int64)" (__imp_?ApplyPacketOptions@cricket@@YA_NPAEIABUPacketTimeUpdateParams@rtc@@_K@Z)
> >>> referenced by obj/services/network/network_service/socket_tcp.obj:("virtual void __thiscall network::P2PSocketTcp::DoSend(class net::IPEndPoint const &, class std::vector<signed char, class std::allocator<signed char>> const &, struct rtc::PacketOptions const &, struct net::NetworkTrafficAnnotationTag)" (?DoSend@P2PSocketTcp@network@@MAEXABVIPEndPoint@net@@ABV?$vector@CV?$allocator@C@std@@@std@@ABUPacketOptions@rtc@@UNetworkTrafficAnnotationTag@4@@Z))
> >>> referenced by obj/services/network/network_service/socket_tcp.obj:("virtual void __thiscall network::P2PSocketStunTcp::DoSend(class net::IPEndPoint const &, class std::vector<signed char, class std::allocator<signed char>> const &, struct rtc::PacketOptions const &, struct net::NetworkTrafficAnnotationTag)" (?DoSend@P2PSocketStunTcp@network@@MAEXABVIPEndPoint@net@@ABV?$vector@CV?$allocator@C@std@@@std@@ABUPacketOptions@rtc@@UNetworkTrafficAnnotationTag@4@@Z))
> lld-link: error: undefined symbol: "__declspec(dllimport) bool __cdecl cricket::ApplyPacketOptions(unsigned char *, unsigned int, struct rtc::PacketTimeUpdateParams const &, unsigned __int64)" (__imp_?ApplyPacketOptions@cricket@@YA_NPAEIABUPacketTimeUpdateParams@rtc@@_K@Z)
> >>> referenced by obj/services/network/network_service/socket_udp.obj:("bool __thiscall network::P2PSocketUdp::DoSend(struct network::P2PSocketUdp::PendingPacket const &)" (?DoSend@P2PSocketUdp@network@@AAE_NABUPendingPacket@12@@Z))
>
> Original change's description:
> > Reland "Reland "Export symbols needed by the Chromium component build (part 1).""
> >
> > This reverts commit b49520bfc08f5c5832dda1d642125f0bb898f974.
> >
> > Reason for revert: Problem fixed in https://chromium-review.googlesource.com/c/chromium/src/+/1261398.
> >
> > Original change's description:
> > > Revert "Reland "Export symbols needed by the Chromium component build (part 1).""
> > >
> > > This reverts commit 588f4642d1a29f7beaf28265dbd08728191b4c52.
> > >
> > > Reason for revert: Breaks WebRTC Chromium FYI Win Builder (dbg).
> > > lld-link: error: undefined symbol: "__declspec(dllimport) __thiscall webrtc::Config::Config(void)" (__imp_??0Config@webrtc@@QAE@XZ)
> > > [...]
> > >
> > > Original change's description:
> > > > Reland "Export symbols needed by the Chromium component build (part 1)."
> > > >
> > > > This reverts commit 2ea9af227517556136fd629dd2663c0d75d77c7b.
> > > >
> > > > Reason for revert: The problem will be fixed by
> > > > https://chromium-review.googlesource.com/c/chromium/src/+/1261122.
> > > >
> > > > Original change's description:
> > > > > Revert "Export symbols needed by the Chromium component build (part 1)."
> > > > >
> > > > > This reverts commit 9e24dcff167c4eb3555bf0ce6eaba090c10fbe53.
> > > > >
> > > > > Reason for revert: Breaks chromium.webrtc.fyi bots.
> > > > >
> > > > > Original change's description:
> > > > > > Export symbols needed by the Chromium component build (part 1).
> > > > > >
> > > > > > This CL uses RTC_EXPORT (defined in rtc_base/system/rtc_export.h)
> > > > > > to mark WebRTC symbols as visible from a shared library, this doesn't
> > > > > > mean these symbols are part of the public API (please continue to refer
> > > > > > to [1] for info about what is considered public WebRTC API).
> > > > > >
> > > > > > [1] - https://webrtc.googlesource.com/src/+/HEAD/native-api.md
> > > > > >
> > > > > > Bug: webrtc:9419
> > > > > > Change-Id: I802abd32874d42d3aa5ecd3c8022e7cf5e043d99
> > > > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103505
> > > > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > > Reviewed-by: Niels Moller <nisse@webrtc.org>
> > > > > > Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
> > > > > > Cr-Commit-Position: refs/heads/master@{#24969}
> > > > >
> > > > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > > > >
> > > > > Change-Id: I01f6e18f0d2c0f0309cdaa6c943c3927e1f1f49f
> > > > > No-Presubmit: true
> > > > > No-Tree-Checks: true
> > > > > No-Try: true
> > > > > Bug: webrtc:9419
> > > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103720
> > > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > > Cr-Commit-Position: refs/heads/master@{#24974}
> > > >
> > > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > > >
> > > > Change-Id: I83bbc7f550fc23e823c4d055e0a6f60c828960dd
> > > > No-Presubmit: true
> > > > No-Tree-Checks: true
> > > > No-Try: true
> > > > Bug: webrtc:9419
> > > > Reviewed-on: https://webrtc-review.googlesource.com/c/103740
> > > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > > Cr-Commit-Position: refs/heads/master@{#24980}
> > >
> > > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> > >
> > > Change-Id: I4b7cfe492f2c8eeda5c8ac52520e0cfc95ade9b0
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Bug: webrtc:9419
> > > Reviewed-on: https://webrtc-review.googlesource.com/c/103801
> > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > > Cr-Commit-Position: refs/heads/master@{#24983}
> >
> > TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
> >
> > # Not skipping CQ checks because original CL landed > 1 day ago.
> >
> > Bug: webrtc:9419
> > Change-Id: Id986a0a03cdc2818690337784396882af067f7fa
> > Reviewed-on: https://webrtc-review.googlesource.com/c/104602
> > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> > Reviewed-by: Niels Moller <nisse@webrtc.org>
> > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#25049}
>
> TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
>
> Change-Id: I6f58b9c90defccdb160307783fb55271ab424fa1
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:9419
> Reviewed-on: https://webrtc-review.googlesource.com/c/104623
> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#25050}
TBR=mbonadei@webrtc.org,kwiberg@webrtc.org,nisse@webrtc.org
Change-Id: I4d01ed96ae40a8f9ca42c466be5c87653d75d7c1
Bug: webrtc:9419
Reviewed-on: https://webrtc-review.googlesource.com/c/104641
Reviewed-by: Yves Gerey <yvesg@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25108}
2018-10-11 10:50:45 +02:00
|
|
|
"system:rtc_export",
|
2019-03-01 14:58:44 +01:00
|
|
|
"task_utils:to_queued_task",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-08-25 05:00:11 -07:00
|
|
|
]
|
2019-03-05 19:58:28 +01:00
|
|
|
}
|
|
|
|
|
|
2018-03-19 11:12:48 +01:00
|
|
|
if (rtc_enable_libevent) {
|
|
|
|
|
rtc_source_set("rtc_task_queue_libevent") {
|
2019-03-05 19:58:28 +01:00
|
|
|
visibility = [ "../api/task_queue:default_task_queue_factory" ]
|
2017-08-25 05:00:11 -07:00
|
|
|
sources = [
|
2017-10-19 12:38:09 +02:00
|
|
|
"task_queue_libevent.cc",
|
2019-02-12 10:44:38 +01:00
|
|
|
"task_queue_libevent.h",
|
2017-08-25 05:00:11 -07:00
|
|
|
]
|
2018-03-19 11:12:48 +01:00
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":criticalsection",
|
|
|
|
|
":logging",
|
2018-10-05 15:39:24 +02:00
|
|
|
":macromagic",
|
2018-03-19 11:12:48 +01:00
|
|
|
":platform_thread",
|
2018-10-05 15:39:24 +02:00
|
|
|
":platform_thread_types",
|
2018-03-19 11:12:48 +01:00
|
|
|
":safe_conversions",
|
|
|
|
|
":timeutils",
|
2019-02-12 10:44:38 +01:00
|
|
|
"../api/task_queue",
|
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
if (rtc_build_libevent) {
|
|
|
|
|
deps += [ "//base/third_party/libevent" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_mac || is_ios) {
|
|
|
|
|
rtc_source_set("rtc_task_queue_gcd") {
|
2019-03-05 19:58:28 +01:00
|
|
|
visibility = [ "../api/task_queue:default_task_queue_factory" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"task_queue_gcd.cc",
|
2019-02-19 20:20:16 +01:00
|
|
|
"task_queue_gcd.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":logging",
|
2019-02-19 20:20:16 +01:00
|
|
|
"../api/task_queue",
|
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
rtc_source_set("rtc_task_queue_win") {
|
2019-03-05 19:58:28 +01:00
|
|
|
visibility = [ "../api/task_queue:default_task_queue_factory" ]
|
2018-03-19 11:12:48 +01:00
|
|
|
sources = [
|
|
|
|
|
"task_queue_win.cc",
|
2019-02-20 18:13:09 +01:00
|
|
|
"task_queue_win.h",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":criticalsection",
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
":timeutils",
|
2019-02-20 18:13:09 +01:00
|
|
|
"../api/task_queue",
|
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-03-19 11:12:48 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-23 09:07:50 -05:00
|
|
|
rtc_source_set("rtc_task_queue_stdlib") {
|
|
|
|
|
sources = [
|
|
|
|
|
"task_queue_stdlib.cc",
|
2019-02-21 11:13:58 +01:00
|
|
|
"task_queue_stdlib.h",
|
2018-11-23 09:07:50 -05:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
|
|
|
|
":criticalsection",
|
|
|
|
|
":logging",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":platform_thread",
|
|
|
|
|
":rtc_event",
|
|
|
|
|
":safe_conversions",
|
|
|
|
|
":timeutils",
|
2019-02-21 11:13:58 +01:00
|
|
|
"../api/task_queue",
|
|
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-11-23 09:07:50 -05:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-19 11:12:48 +01:00
|
|
|
rtc_source_set("sequenced_task_checker") {
|
2017-06-29 08:03:04 +02:00
|
|
|
sources = [
|
|
|
|
|
"sequenced_task_checker.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-03-29 10:34:45 +01:00
|
|
|
"synchronization:sequence_checker",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_static_library("weak_ptr") {
|
|
|
|
|
sources = [
|
|
|
|
|
"weak_ptr.cc",
|
|
|
|
|
"weak_ptr.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-03-19 11:12:48 +01:00
|
|
|
":refcount",
|
2017-06-29 08:03:04 +02:00
|
|
|
":sequenced_task_checker",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_static_library("rtc_numerics") {
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/exp_filter.cc",
|
|
|
|
|
"numerics/exp_filter.h",
|
2018-11-05 12:55:18 +01:00
|
|
|
"numerics/moving_average.cc",
|
|
|
|
|
"numerics/moving_average.h",
|
2017-11-01 14:01:00 +01:00
|
|
|
"numerics/moving_median_filter.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"numerics/percentile_filter.h",
|
2019-01-11 11:02:19 +01:00
|
|
|
"numerics/samples_stats_counter.cc",
|
|
|
|
|
"numerics/samples_stats_counter.h",
|
2017-10-25 13:07:09 +02:00
|
|
|
"numerics/sequence_number_util.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
":checks",
|
2017-06-29 08:03:04 +02:00
|
|
|
":rtc_base_approved",
|
2017-12-13 16:05:42 +01:00
|
|
|
":safe_compare",
|
2019-03-25 13:48:30 -07:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
2018-06-21 11:48:25 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rtc_json") {
|
|
|
|
|
defines = []
|
|
|
|
|
sources = [
|
2018-10-02 16:25:59 +02:00
|
|
|
"strings/json.cc",
|
|
|
|
|
"strings/json.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
2018-09-13 10:07:07 +02:00
|
|
|
deps = [
|
|
|
|
|
":stringutils",
|
|
|
|
|
]
|
2018-01-26 16:50:02 +01:00
|
|
|
all_dependent_configs = [ "//third_party/jsoncpp:jsoncpp_config" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
if (rtc_build_json) {
|
|
|
|
|
public_deps = [
|
|
|
|
|
"//third_party/jsoncpp",
|
|
|
|
|
]
|
|
|
|
|
} else {
|
|
|
|
|
include_dirs = [ "$rtc_jsoncpp_root" ]
|
|
|
|
|
|
|
|
|
|
# When defined changes the include path for json.h to where it is
|
|
|
|
|
# expected to be when building json outside of the standalone build.
|
|
|
|
|
defines += [ "WEBRTC_EXTERNAL_JSON" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("net_helpers") {
|
2018-12-06 14:50:45 +01:00
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
# "net_helpers.cc",
|
|
|
|
|
# "net_helpers.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("async_resolver_interface") {
|
2019-02-11 00:43:43 +01:00
|
|
|
visibility = [ "*" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
# "async_resolver_interface.cc",
|
|
|
|
|
# "async_resolver_interface.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("ip_address") {
|
2019-02-11 00:43:43 +01:00
|
|
|
visibility = [ "*" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
# "ip_address.cc",
|
|
|
|
|
# "ip_address.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("socket_address") {
|
2019-02-11 00:43:43 +01:00
|
|
|
visibility = [ "*" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
# "socket_address.cc",
|
|
|
|
|
# "socket_address.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("null_socket_server") {
|
2018-12-06 14:50:45 +01:00
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
# "null_socket_server.cc",
|
|
|
|
|
# "null_socket_server.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("socket_server") {
|
2018-12-06 14:50:45 +01:00
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
# "socket_server.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("threading") {
|
2019-02-11 00:43:43 +01:00
|
|
|
visibility = [ "*" ]
|
2018-12-06 14:50:45 +01:00
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
|
|
|
|
# "asyncresolver.cc",
|
|
|
|
|
# "asyncresolver.h",
|
|
|
|
|
# "defaultsocketserver.cc",
|
|
|
|
|
# "defaultsocketserver.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
# "message_handler.cc",
|
|
|
|
|
# "message_handler.h",
|
|
|
|
|
# "message_queue.cc",
|
|
|
|
|
# "message_queue.h",
|
|
|
|
|
# "network_monitor.cc",
|
|
|
|
|
# "network_monitor.h",
|
|
|
|
|
# "physical_socket_server.cc",
|
|
|
|
|
# "physical_socket_server.h",
|
|
|
|
|
# "signal_thread.cc",
|
|
|
|
|
# "signal_thread.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# "thread.cc",
|
|
|
|
|
# "thread.h",
|
|
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("socket_factory") {
|
2018-12-06 14:50:45 +01:00
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
# "socket_factory.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-22 17:54:34 +01:00
|
|
|
rtc_source_set("async_socket") {
|
2018-12-06 14:50:45 +01:00
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
# "async_socket.cc",
|
|
|
|
|
# "async_socket.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("socket") {
|
|
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
|
|
|
|
# "socket.cc",
|
|
|
|
|
# "socket.h",
|
|
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("network_constants") {
|
|
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
|
|
|
|
# "network_constants.h",
|
|
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
rtc_source_set("ifaddrs_android") {
|
|
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
# "ifaddrs_android.cc",
|
|
|
|
|
# "ifaddrs_android.h",
|
2018-12-06 14:50:45 +01:00
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
rtc_source_set("win32") {
|
|
|
|
|
# TODO(bugs.webrtc.org/9987): This build target will soon contain
|
|
|
|
|
# the following files:
|
|
|
|
|
# sources = [
|
|
|
|
|
# "win32.cc",
|
|
|
|
|
# "win32.h",
|
|
|
|
|
# ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-05 05:17:02 -07:00
|
|
|
rtc_static_library("rtc_base") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
cflags = []
|
|
|
|
|
cflags_cc = []
|
|
|
|
|
libs = []
|
|
|
|
|
defines = []
|
|
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
":checks",
|
2017-12-15 14:40:10 +01:00
|
|
|
":stringutils",
|
2017-06-29 08:03:04 +02:00
|
|
|
"..:webrtc_common",
|
2017-12-21 22:00:34 +01:00
|
|
|
"../api:array_view",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2019-03-06 11:51:34 -08:00
|
|
|
"../system_wrappers:field_trial",
|
2018-10-15 09:28:15 +02:00
|
|
|
"network:sent_packet",
|
2019-01-22 11:01:24 +01:00
|
|
|
"system:file_wrapper",
|
2018-07-23 17:38:12 +02:00
|
|
|
"third_party/base64",
|
2018-07-25 15:04:28 +02:00
|
|
|
"third_party/sigslot",
|
2019-03-25 13:48:30 -07:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-10-19 15:29:54 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-06-21 11:48:25 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
public_deps = [
|
|
|
|
|
":rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
public_configs = []
|
|
|
|
|
|
|
|
|
|
all_dependent_configs = [ ":rtc_base_all_dependent_config" ]
|
|
|
|
|
|
|
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"async_invoker.cc",
|
|
|
|
|
"async_invoker.h",
|
|
|
|
|
"async_invoker_inl.h",
|
|
|
|
|
"async_packet_socket.cc",
|
|
|
|
|
"async_packet_socket.h",
|
|
|
|
|
"async_resolver_interface.cc",
|
|
|
|
|
"async_resolver_interface.h",
|
|
|
|
|
"async_socket.cc",
|
|
|
|
|
"async_socket.h",
|
|
|
|
|
"async_tcp_socket.cc",
|
|
|
|
|
"async_tcp_socket.h",
|
|
|
|
|
"async_udp_socket.cc",
|
|
|
|
|
"async_udp_socket.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"crc32.cc",
|
|
|
|
|
"crc32.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"crypt_string.cc",
|
|
|
|
|
"crypt_string.h",
|
2018-02-28 16:04:26 +01:00
|
|
|
"data_rate_limiter.cc",
|
|
|
|
|
"data_rate_limiter.h",
|
2017-12-19 11:50:21 +01:00
|
|
|
"dscp.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"file_rotating_stream.cc",
|
|
|
|
|
"file_rotating_stream.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"gunit_prod.h",
|
|
|
|
|
"helpers.cc",
|
|
|
|
|
"helpers.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"http_common.cc",
|
|
|
|
|
"http_common.h",
|
|
|
|
|
"ip_address.cc",
|
|
|
|
|
"ip_address.h",
|
2017-12-19 11:50:21 +01:00
|
|
|
"keep_ref_until_done.h",
|
2018-10-30 13:53:30 -07:00
|
|
|
"key_derivation.cc",
|
|
|
|
|
"key_derivation.h",
|
2018-09-12 22:51:55 -07:00
|
|
|
"mdns_responder_interface.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"message_digest.cc",
|
|
|
|
|
"message_digest.h",
|
|
|
|
|
"message_handler.cc",
|
|
|
|
|
"message_handler.h",
|
|
|
|
|
"message_queue.cc",
|
|
|
|
|
"message_queue.h",
|
|
|
|
|
"net_helper.cc",
|
|
|
|
|
"net_helper.h",
|
|
|
|
|
"net_helpers.cc",
|
|
|
|
|
"net_helpers.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"network.cc",
|
|
|
|
|
"network.h",
|
2017-10-05 14:53:33 +02:00
|
|
|
"network_constants.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"network_monitor.cc",
|
|
|
|
|
"network_monitor.h",
|
|
|
|
|
"network_route.h",
|
|
|
|
|
"null_socket_server.cc",
|
|
|
|
|
"null_socket_server.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"openssl.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"openssl_adapter.cc",
|
|
|
|
|
"openssl_adapter.h",
|
|
|
|
|
"openssl_certificate.cc",
|
|
|
|
|
"openssl_certificate.h",
|
|
|
|
|
"openssl_digest.cc",
|
|
|
|
|
"openssl_digest.h",
|
|
|
|
|
"openssl_identity.cc",
|
|
|
|
|
"openssl_identity.h",
|
2018-10-30 13:53:30 -07:00
|
|
|
"openssl_key_derivation_hkdf.cc",
|
|
|
|
|
"openssl_key_derivation_hkdf.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"openssl_session_cache.cc",
|
|
|
|
|
"openssl_session_cache.h",
|
|
|
|
|
"openssl_stream_adapter.cc",
|
|
|
|
|
"openssl_stream_adapter.h",
|
|
|
|
|
"openssl_utility.cc",
|
|
|
|
|
"openssl_utility.h",
|
|
|
|
|
"physical_socket_server.cc",
|
|
|
|
|
"physical_socket_server.h",
|
|
|
|
|
"proxy_info.cc",
|
|
|
|
|
"proxy_info.h",
|
|
|
|
|
"rtc_certificate.cc",
|
|
|
|
|
"rtc_certificate.h",
|
|
|
|
|
"rtc_certificate_generator.cc",
|
|
|
|
|
"rtc_certificate_generator.h",
|
|
|
|
|
"signal_thread.cc",
|
|
|
|
|
"signal_thread.h",
|
|
|
|
|
"sigslot_repeater.h",
|
2018-04-11 20:14:17 -07:00
|
|
|
"socket.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"socket.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"socket_adapters.cc",
|
|
|
|
|
"socket_adapters.h",
|
|
|
|
|
"socket_address.cc",
|
|
|
|
|
"socket_address.h",
|
|
|
|
|
"socket_address_pair.cc",
|
|
|
|
|
"socket_address_pair.h",
|
|
|
|
|
"socket_factory.h",
|
|
|
|
|
"socket_server.h",
|
|
|
|
|
"ssl_adapter.cc",
|
|
|
|
|
"ssl_adapter.h",
|
|
|
|
|
"ssl_certificate.cc",
|
|
|
|
|
"ssl_certificate.h",
|
|
|
|
|
"ssl_fingerprint.cc",
|
|
|
|
|
"ssl_fingerprint.h",
|
|
|
|
|
"ssl_identity.cc",
|
|
|
|
|
"ssl_identity.h",
|
|
|
|
|
"ssl_stream_adapter.cc",
|
|
|
|
|
"ssl_stream_adapter.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"stream.cc",
|
|
|
|
|
"stream.h",
|
|
|
|
|
"thread.cc",
|
|
|
|
|
"thread.h",
|
2019-01-23 14:54:24 -08:00
|
|
|
"unique_id_generator.cc",
|
|
|
|
|
"unique_id_generator.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (build_with_chromium) {
|
|
|
|
|
include_dirs = [ "../../boringssl/src/include" ]
|
|
|
|
|
public_configs += [ ":rtc_base_chromium_config" ]
|
|
|
|
|
} else {
|
|
|
|
|
sources += [
|
|
|
|
|
"callback.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"log_sinks.cc",
|
|
|
|
|
"log_sinks.h",
|
|
|
|
|
"numerics/math_utils.h",
|
|
|
|
|
"rolling_accumulator.h",
|
|
|
|
|
"ssl_roots.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
2019-01-24 19:07:40 -08:00
|
|
|
sources += [ "win32_socket_init.h" ]
|
2018-11-22 20:10:11 -05:00
|
|
|
if (current_os != "winuwp") {
|
|
|
|
|
sources += [
|
2019-01-11 09:11:00 -08:00
|
|
|
"win32_socket_server.cc",
|
|
|
|
|
"win32_socket_server.h",
|
2018-11-22 20:10:11 -05:00
|
|
|
]
|
|
|
|
|
}
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
} # !build_with_chromium
|
|
|
|
|
|
|
|
|
|
if (rtc_build_ssl) {
|
|
|
|
|
deps += [ "//third_party/boringssl" ]
|
2018-01-16 10:40:39 -05:00
|
|
|
} else {
|
2017-06-29 08:03:04 +02:00
|
|
|
configs += [ ":external_ssl_library" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
sources += [
|
2019-01-11 09:11:00 -08:00
|
|
|
"ifaddrs_android.cc",
|
|
|
|
|
"ifaddrs_android.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
libs += [
|
|
|
|
|
"log",
|
|
|
|
|
"GLESv2",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_ios || is_mac) {
|
2019-01-11 09:11:00 -08:00
|
|
|
sources += [ "mac_ifaddrs_converter.cc" ]
|
2018-10-12 12:57:49 +02:00
|
|
|
deps += [ "system:cocoa_threading" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
|
2017-12-20 21:25:47 +01:00
|
|
|
if (rtc_use_x11) {
|
2017-06-29 08:03:04 +02:00
|
|
|
libs += [
|
|
|
|
|
"dl",
|
|
|
|
|
"rt",
|
|
|
|
|
"Xext",
|
|
|
|
|
"X11",
|
|
|
|
|
"Xcomposite",
|
|
|
|
|
"Xrender",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_linux) {
|
|
|
|
|
libs += [
|
|
|
|
|
"dl",
|
|
|
|
|
"rt",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_mac) {
|
|
|
|
|
sources += [
|
2019-01-11 09:11:00 -08:00
|
|
|
"mac_utils.cc",
|
|
|
|
|
"mac_utils.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
sources += [
|
|
|
|
|
"win32.cc",
|
|
|
|
|
"win32.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"win32_window.cc",
|
|
|
|
|
"win32_window.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
libs += [
|
|
|
|
|
"crypt32.lib",
|
|
|
|
|
"iphlpapi.lib",
|
|
|
|
|
"secur32.lib",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ]
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-30 10:38:06 -07:00
|
|
|
if (is_posix || is_fuchsia) {
|
2017-06-29 08:03:04 +02:00
|
|
|
sources += [
|
|
|
|
|
"ifaddrs_converter.cc",
|
|
|
|
|
"ifaddrs_converter.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_nacl) {
|
|
|
|
|
deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
|
|
|
|
|
defines += [ "timezone=_timezone" ]
|
|
|
|
|
sources -= [ "ifaddrs_converter.cc" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("gtest_prod") {
|
|
|
|
|
sources = [
|
|
|
|
|
"gtest_prod_util.h",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-23 13:15:08 +01:00
|
|
|
rtc_source_set("gunit_helpers") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"gunit.cc",
|
|
|
|
|
"gunit.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":logging",
|
|
|
|
|
":rtc_base",
|
|
|
|
|
":rtc_base_tests_utils",
|
|
|
|
|
":stringutils",
|
|
|
|
|
"../test:test_support",
|
2018-12-13 17:41:25 -08:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-11-23 13:15:08 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("testclient") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"test_client.cc",
|
|
|
|
|
"test_client.h",
|
2018-11-23 13:15:08 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":criticalsection",
|
|
|
|
|
":gunit_helpers",
|
|
|
|
|
":macromagic",
|
|
|
|
|
":rtc_base",
|
|
|
|
|
":rtc_base_tests_utils",
|
|
|
|
|
":timeutils",
|
2018-11-28 16:47:49 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-11-23 13:15:08 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-29 08:03:04 +02:00
|
|
|
rtc_source_set("rtc_base_tests_utils") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"cpu_time.cc",
|
|
|
|
|
"cpu_time.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"fake_clock.cc",
|
|
|
|
|
"fake_clock.h",
|
2018-09-12 22:51:55 -07:00
|
|
|
"fake_mdns_responder.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"fake_network.h",
|
|
|
|
|
"fake_ssl_identity.cc",
|
|
|
|
|
"fake_ssl_identity.h",
|
|
|
|
|
"firewall_socket_server.cc",
|
|
|
|
|
"firewall_socket_server.h",
|
2018-11-01 09:33:08 +01:00
|
|
|
"memory_stream.cc",
|
|
|
|
|
"memory_stream.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"memory_usage.cc",
|
|
|
|
|
"memory_usage.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"nat_server.cc",
|
|
|
|
|
"nat_server.h",
|
|
|
|
|
"nat_socket_factory.cc",
|
|
|
|
|
"nat_socket_factory.h",
|
|
|
|
|
"nat_types.cc",
|
|
|
|
|
"nat_types.h",
|
|
|
|
|
"proxy_server.cc",
|
|
|
|
|
"proxy_server.h",
|
2018-12-17 14:04:05 +01:00
|
|
|
"server_socket_adapters.cc",
|
|
|
|
|
"server_socket_adapters.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"sigslot_tester.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
"sigslottester.h.pump",
|
2019-01-11 09:11:00 -08:00
|
|
|
"socket_stream.cc",
|
|
|
|
|
"socket_stream.h",
|
|
|
|
|
"test_base64.h",
|
|
|
|
|
"test_certificate_verifier.h",
|
|
|
|
|
"test_echo_server.cc",
|
|
|
|
|
"test_echo_server.h",
|
|
|
|
|
"test_utils.cc",
|
|
|
|
|
"test_utils.h",
|
|
|
|
|
"virtual_socket_server.cc",
|
|
|
|
|
"virtual_socket_server.h",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
":checks",
|
2017-06-29 08:03:04 +02:00
|
|
|
":rtc_base",
|
2018-05-08 14:52:22 +02:00
|
|
|
"../api/units:time_delta",
|
2019-03-28 13:30:15 +01:00
|
|
|
"memory:fifo_buffer",
|
2018-07-25 15:04:28 +02:00
|
|
|
"third_party/sigslot",
|
2019-03-25 13:48:30 -07:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-19 18:08:37 +01:00
|
|
|
rtc_source_set("task_queue_for_test") {
|
2018-02-19 12:41:43 +01:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"task_queue_for_test.cc",
|
|
|
|
|
"task_queue_for_test.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":checks",
|
2019-03-19 18:08:37 +01:00
|
|
|
":macromagic",
|
|
|
|
|
":rtc_event",
|
2018-02-19 12:41:43 +01:00
|
|
|
":rtc_task_queue",
|
2019-03-19 18:08:37 +01:00
|
|
|
"../api/task_queue:default_task_queue_factory",
|
2019-03-05 11:11:35 +01:00
|
|
|
"task_utils:to_queued_task",
|
2019-03-19 18:08:37 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-02-19 12:41:43 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-29 08:03:04 +02:00
|
|
|
if (rtc_include_tests) {
|
2018-07-25 15:04:28 +02:00
|
|
|
rtc_source_set("sigslot_unittest") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"sigslot_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
2018-07-25 15:04:28 +02:00
|
|
|
":rtc_base",
|
|
|
|
|
":rtc_base_tests_utils",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../test:test_support",
|
2018-07-25 15:04:28 +02:00
|
|
|
"third_party/sigslot",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-29 08:03:04 +02:00
|
|
|
rtc_source_set("rtc_base_tests_main") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"unittest_main.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
2017-06-29 08:03:04 +02:00
|
|
|
":rtc_base",
|
|
|
|
|
":rtc_base_approved",
|
|
|
|
|
":rtc_base_tests_utils",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"../system_wrappers:metrics",
|
2017-06-29 08:03:04 +02:00
|
|
|
"../test:field_trial",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
public_deps = [
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rtc_base_nonparallel_tests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"cpu_time_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"file_rotating_stream_unittest.cc",
|
|
|
|
|
"null_socket_server_unittest.cc",
|
|
|
|
|
"physical_socket_server_unittest.cc",
|
|
|
|
|
"socket_address_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"socket_unittest.cc",
|
|
|
|
|
"socket_unittest.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
":checks",
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
2017-06-29 08:03:04 +02:00
|
|
|
":rtc_base",
|
|
|
|
|
":rtc_base_tests_main",
|
|
|
|
|
":rtc_base_tests_utils",
|
2018-11-23 13:15:08 +01:00
|
|
|
":testclient",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../system_wrappers",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../test:fileutils",
|
2017-06-29 08:03:04 +02:00
|
|
|
"../test:test_support",
|
2019-03-21 13:35:10 +01:00
|
|
|
"third_party/sigslot",
|
2017-06-29 08:03:04 +02:00
|
|
|
"//testing/gtest",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
if (is_win) {
|
2019-01-11 09:11:00 -08:00
|
|
|
sources += [ "win32_socket_server_unittest.cc" ]
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rtc_base_approved_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"atomic_ops_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"base64_unittest.cc",
|
|
|
|
|
"bind_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"bit_buffer_unittest.cc",
|
|
|
|
|
"bitrate_allocation_strategy_unittest.cc",
|
|
|
|
|
"buffer_queue_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"buffer_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"byte_buffer_unittest.cc",
|
|
|
|
|
"byte_order_unittest.cc",
|
|
|
|
|
"copy_on_write_buffer_unittest.cc",
|
|
|
|
|
"critical_section_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"event_tracer_unittest.cc",
|
|
|
|
|
"event_unittest.cc",
|
|
|
|
|
"logging_unittest.cc",
|
2017-11-22 12:25:14 +01:00
|
|
|
"numerics/histogram_percentile_counter_unittest.cc",
|
|
|
|
|
"numerics/mod_ops_unittest.cc",
|
|
|
|
|
"numerics/moving_max_counter_unittest.cc",
|
2017-11-22 10:42:26 +01:00
|
|
|
"numerics/safe_compare_unittest.cc",
|
|
|
|
|
"numerics/safe_minmax_unittest.cc",
|
2018-05-22 10:54:30 +02:00
|
|
|
"numerics/sample_counter_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"one_time_event_unittest.cc",
|
2018-03-19 15:40:00 +01:00
|
|
|
"platform_file_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"platform_thread_unittest.cc",
|
|
|
|
|
"random_unittest.cc",
|
|
|
|
|
"rate_limiter_unittest.cc",
|
|
|
|
|
"rate_statistics_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"rate_tracker_unittest.cc",
|
|
|
|
|
"ref_counted_object_unittest.cc",
|
2018-04-06 16:18:21 +02:00
|
|
|
"sanitizer_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"string_encode_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"string_to_number_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"string_utils_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"stringize_macros_unittest.cc",
|
Adding a new string utility class: SimpleStringBuilder.
This is a fairly minimalistic string building class that
can be used instead of stringstream, which is discouraged
but tempting to use due to its convenient interface and
familiarity for anyone using our logging macros.
As a starter, I'm changing the string building code in
ReceiveStatisticsProxy and SendStatisticsProxy from using
stringstream and using SimpleStringBuilder instead.
In the case of SimpleStringBuilder, there's a single allocation,
it's done on the stack (fast), and minimal code is required for
each concatenation. The developer is responsible for ensuring
that the buffer size is adequate but the class won't overflow
the buffer. In dcheck-enabled builds, a check will go off if
we run out of buffer space.
As part of using SimpleStringBuilder for a small part of
rtc::LogMessage, a few more changes were made:
- SimpleStringBuilder is used for formatting errors instead of ostringstream.
- A new 'noop' state has been introduced for log messages that will be dropped.
- Use a static (singleton) noop ostream object for noop logging messages
instead of building up an actual ostringstream object that will be dropped.
- Add a LogMessageForTest class for better state inspection/testing.
- Fix benign bug in LogTest.Perf, change the test to not use File IO and
always enable it.
- Ensure that minimal work is done for noop messages.
- Remove dependency on rtc::Thread.
- Add tests for the extra_ field, correctly parsed paths and noop handling.
Bug: webrtc:8529, webrtc:4364, webrtc:8933
Change-Id: Ifa258c135135945e4560d9e24315f7d96f784acb
Reviewed-on: https://webrtc-review.googlesource.com/55520
Commit-Queue: Tommi <tommi@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Jonas Olsson <jonasolsson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22203}
2018-02-27 13:51:08 +01:00
|
|
|
"strings/string_builder_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"swap_queue_unittest.cc",
|
|
|
|
|
"thread_annotations_unittest.cc",
|
|
|
|
|
"thread_checker_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"time_utils_unittest.cc",
|
|
|
|
|
"timestamp_aligner_unittest.cc",
|
|
|
|
|
"virtual_socket_unittest.cc",
|
2018-03-07 20:02:26 +01:00
|
|
|
"zero_memory_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
2018-05-21 13:34:51 +02:00
|
|
|
if (is_win) {
|
|
|
|
|
sources += [ "win/windows_version_unittest.cc" ]
|
|
|
|
|
}
|
2017-06-29 08:03:04 +02:00
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
":checks",
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
2017-12-13 16:05:42 +01:00
|
|
|
":rate_limiter",
|
2017-06-29 08:03:04 +02:00
|
|
|
":rtc_base",
|
|
|
|
|
":rtc_base_approved",
|
|
|
|
|
":rtc_base_tests_main",
|
|
|
|
|
":rtc_base_tests_utils",
|
|
|
|
|
":rtc_task_queue",
|
2017-12-13 16:05:42 +01:00
|
|
|
":safe_compare",
|
2018-03-07 14:18:56 +01:00
|
|
|
":safe_minmax",
|
2018-04-06 16:18:21 +02:00
|
|
|
":sanitizer",
|
2017-12-15 14:40:10 +01:00
|
|
|
":stringutils",
|
2018-11-23 13:15:08 +01:00
|
|
|
":testclient",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../api:array_view",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/units:time_delta",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../system_wrappers",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../test:fileutils",
|
2017-06-29 08:03:04 +02:00
|
|
|
"../test:test_support",
|
2018-03-22 14:11:52 +01:00
|
|
|
"memory:unittests",
|
2018-07-23 17:38:12 +02:00
|
|
|
"third_party/base64",
|
2019-03-21 13:35:10 +01:00
|
|
|
"third_party/sigslot",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rtc_task_queue_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"task_queue_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
2017-08-27 23:40:10 -07:00
|
|
|
":rtc_base_approved",
|
2017-06-29 08:03:04 +02:00
|
|
|
":rtc_base_tests_main",
|
|
|
|
|
":rtc_base_tests_utils",
|
|
|
|
|
":rtc_task_queue",
|
2019-03-26 14:37:01 +01:00
|
|
|
":task_queue_for_test",
|
2017-06-29 08:03:04 +02:00
|
|
|
"../test:test_support",
|
2018-11-28 16:47:49 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("sequenced_task_checker_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"sequenced_task_checker_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
":checks",
|
2017-06-29 08:03:04 +02:00
|
|
|
":rtc_base_approved",
|
|
|
|
|
":rtc_base_tests_main",
|
|
|
|
|
":sequenced_task_checker",
|
2019-03-25 15:13:59 +01:00
|
|
|
":task_queue_for_test",
|
|
|
|
|
"../api:function_view",
|
2017-06-29 08:03:04 +02:00
|
|
|
"../test:test_support",
|
2019-03-25 15:13:59 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("weak_ptr_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"weak_ptr_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
2018-10-10 15:51:03 +02:00
|
|
|
":rtc_base_approved",
|
2017-06-29 08:03:04 +02:00
|
|
|
":rtc_base_tests_main",
|
|
|
|
|
":rtc_base_tests_utils",
|
2018-03-19 11:12:48 +01:00
|
|
|
":rtc_event",
|
2019-03-26 14:37:01 +01:00
|
|
|
":task_queue_for_test",
|
2017-06-29 08:03:04 +02:00
|
|
|
":weak_ptr",
|
|
|
|
|
"../test:test_support",
|
2018-11-28 16:47:49 +01:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rtc_numerics_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"numerics/exp_filter_unittest.cc",
|
2018-11-05 12:55:18 +01:00
|
|
|
"numerics/moving_average_unittest.cc",
|
2017-11-01 14:01:00 +01:00
|
|
|
"numerics/moving_median_filter_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"numerics/percentile_filter_unittest.cc",
|
2019-01-11 11:02:19 +01:00
|
|
|
"numerics/samples_stats_counter_unittest.cc",
|
2017-10-25 13:07:09 +02:00
|
|
|
"numerics/sequence_number_util_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":rtc_base_approved",
|
|
|
|
|
":rtc_base_tests_main",
|
|
|
|
|
":rtc_numerics",
|
|
|
|
|
"../test:test_support",
|
2019-03-25 13:48:30 -07:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-02 16:25:59 +02:00
|
|
|
rtc_source_set("rtc_json_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"strings/json_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
2018-10-02 16:25:59 +02:00
|
|
|
":rtc_base_tests_main",
|
|
|
|
|
":rtc_base_tests_utils",
|
|
|
|
|
":rtc_json",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-29 08:03:04 +02:00
|
|
|
rtc_source_set("rtc_base_unittests") {
|
|
|
|
|
testonly = true
|
2018-05-08 13:12:25 -07:00
|
|
|
defines = []
|
2017-06-29 08:03:04 +02:00
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"callback_unittest.cc",
|
|
|
|
|
"crc32_unittest.cc",
|
2018-02-28 16:04:26 +01:00
|
|
|
"data_rate_limiter_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"helpers_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"ip_address_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"memory_usage_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"message_digest_unittest.cc",
|
|
|
|
|
"message_queue_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"nat_unittest.cc",
|
|
|
|
|
"network_unittest.cc",
|
|
|
|
|
"proxy_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"rolling_accumulator_unittest.cc",
|
|
|
|
|
"rtc_certificate_generator_unittest.cc",
|
|
|
|
|
"rtc_certificate_unittest.cc",
|
|
|
|
|
"signal_thread_unittest.cc",
|
|
|
|
|
"sigslot_tester_unittest.cc",
|
|
|
|
|
"test_client_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
"thread_unittest.cc",
|
2019-01-23 14:54:24 -08:00
|
|
|
"unique_id_generator_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
if (is_win) {
|
|
|
|
|
sources += [
|
|
|
|
|
"win32_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"win32_window_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
2018-03-30 10:38:06 -07:00
|
|
|
if (is_posix || is_fuchsia) {
|
2017-06-29 08:03:04 +02:00
|
|
|
sources += [
|
2019-01-11 09:11:00 -08:00
|
|
|
"openssl_adapter_unittest.cc",
|
2018-10-30 13:53:30 -07:00
|
|
|
"openssl_key_derivation_hkdf_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"openssl_session_cache_unittest.cc",
|
|
|
|
|
"openssl_utility_unittest.cc",
|
|
|
|
|
"ssl_adapter_unittest.cc",
|
|
|
|
|
"ssl_identity_unittest.cc",
|
|
|
|
|
"ssl_stream_adapter_unittest.cc",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
deps = [
|
2017-12-13 16:05:42 +01:00
|
|
|
":checks",
|
2018-11-23 13:15:08 +01:00
|
|
|
":gunit_helpers",
|
2017-06-29 08:03:04 +02:00
|
|
|
":rtc_base_tests_main",
|
|
|
|
|
":rtc_base_tests_utils",
|
2017-12-15 14:40:10 +01:00
|
|
|
":stringutils",
|
2018-11-23 13:15:08 +01:00
|
|
|
":testclient",
|
2017-12-21 22:00:34 +01:00
|
|
|
"../api:array_view",
|
2019-03-06 11:51:34 -08:00
|
|
|
"../test:field_trial",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../test:fileutils",
|
2017-06-29 08:03:04 +02:00
|
|
|
"../test:test_support",
|
2019-03-28 13:30:15 +01:00
|
|
|
"memory:fifo_buffer",
|
2019-03-20 16:50:35 +01:00
|
|
|
"synchronization:synchronization_unittests",
|
2018-07-25 15:04:28 +02:00
|
|
|
"third_party/sigslot",
|
2019-03-25 13:48:30 -07:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-06-21 11:48:25 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-06-29 08:03:04 +02:00
|
|
|
]
|
|
|
|
|
public_deps = [
|
|
|
|
|
":rtc_base",
|
|
|
|
|
]
|
2017-08-29 12:18:32 -07:00
|
|
|
if (build_with_chromium) {
|
|
|
|
|
include_dirs = [ "../../boringssl/src/include" ]
|
|
|
|
|
}
|
|
|
|
|
if (rtc_build_ssl) {
|
|
|
|
|
deps += [ "//third_party/boringssl" ]
|
|
|
|
|
} else {
|
|
|
|
|
configs += [ ":external_ssl_library" ]
|
|
|
|
|
}
|
2017-06-29 08:03:04 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-20 08:38:58 +02:00
|
|
|
if (is_android) {
|
2017-11-07 15:36:33 +00:00
|
|
|
rtc_android_library("base_java") {
|
2017-06-29 08:03:04 +02:00
|
|
|
java_files = [
|
|
|
|
|
"java/src/org/webrtc/ContextUtils.java",
|
2018-06-21 14:31:38 +02:00
|
|
|
"java/src/org/webrtc/Loggable.java",
|
2017-06-29 08:03:04 +02:00
|
|
|
"java/src/org/webrtc/Logging.java",
|
|
|
|
|
"java/src/org/webrtc/Size.java",
|
|
|
|
|
"java/src/org/webrtc/ThreadUtils.java",
|
|
|
|
|
]
|
2018-12-10 12:30:46 +01:00
|
|
|
deps = [
|
2019-03-06 09:18:57 -05:00
|
|
|
"//third_party/android_deps:com_android_support_support_annotations_java",
|
2018-12-10 12:30:46 +01:00
|
|
|
]
|
2017-06-20 08:38:58 +02:00
|
|
|
}
|
|
|
|
|
}
|