Move one_time_event out of rtc_base_approved

Bug: webrtc:9838
Change-Id: If85ce079e6a437337f1f780fcee0147b4e95f9cf
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258765
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36575}
This commit is contained in:
Florent Castelli 2022-04-14 13:18:04 +02:00 committed by WebRTC LUCI CQ
parent 22b5c3ee4f
commit 6b6085937e
3 changed files with 11 additions and 1 deletions

View File

@ -298,6 +298,7 @@ rtc_library("rtp_rtcp") {
"../../rtc_base:gtest_prod",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:one_time_event",
"../../rtc_base:random",
"../../rtc_base:rate_limiter",
"../../rtc_base:rtc_base_approved",

View File

@ -446,6 +446,7 @@ rtc_library("video_coding_legacy") {
"../../rtc_base:checks",
"../../rtc_base:logging",
"../../rtc_base:macromagic",
"../../rtc_base:one_time_event",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_event",
"../../rtc_base:safe_conversions",

View File

@ -85,6 +85,7 @@ rtc_library("rtc_base_approved") {
":checks",
":logging",
":macromagic",
":one_time_event",
":platform_thread",
":platform_thread_types",
":random",
@ -132,7 +133,7 @@ rtc_library("rtc_base_approved") {
"numerics/moving_max_counter.h",
"numerics/sample_counter.cc",
"numerics/sample_counter.h",
"one_time_event.h",
"one_time_event.h", # Transitional, use :one_time_event
"race_checker.cc",
"race_checker.h",
"random.h", # Transitional, use :random
@ -181,6 +182,12 @@ rtc_library("rtc_base_approved") {
}
}
rtc_source_set("one_time_event") {
visibility = [ "*" ]
sources = [ "one_time_event.h" ]
deps = [ "synchronization:mutex" ]
}
rtc_source_set("strong_alias") {
visibility = [ "*" ]
sources = [ "strong_alias.h" ]
@ -1430,6 +1437,7 @@ if (rtc_include_tests) {
":logging",
":macromagic",
":null_socket_server",
":one_time_event",
":platform_thread",
":random",
":rate_limiter",