Add new target direct_transport and remove fake_network and direct_transport from test_common.
The purpose is to be able to use this feature without building and using all of test_common. However, test_common still builds call_test.cc that is depending on direct_transport. BUG=none Review-Url: https://codereview.webrtc.org/2686633002 Cr-Commit-Position: refs/heads/master@{#16494}
This commit is contained in:
parent
91873b74c5
commit
488c5dcd8b
@ -312,6 +312,25 @@ rtc_source_set("fileutils_unittests") {
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("direct_transport") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"direct_transport.cc",
|
||||
"direct_transport.h",
|
||||
"fake_network_pipe.cc",
|
||||
"fake_network_pipe.h",
|
||||
]
|
||||
if (!build_with_chromium && is_clang) {
|
||||
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
||||
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
||||
}
|
||||
deps = [
|
||||
"../api:transport_api",
|
||||
"../base:rtc_base_approved",
|
||||
"../call",
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("test_common") {
|
||||
testonly = true
|
||||
sources = [
|
||||
@ -321,8 +340,6 @@ rtc_source_set("test_common") {
|
||||
"configurable_frame_size_encoder.h",
|
||||
"constants.cc",
|
||||
"constants.h",
|
||||
"direct_transport.cc",
|
||||
"direct_transport.h",
|
||||
"drifting_clock.cc",
|
||||
"drifting_clock.h",
|
||||
"encoder_settings.cc",
|
||||
@ -333,8 +350,6 @@ rtc_source_set("test_common") {
|
||||
"fake_decoder.h",
|
||||
"fake_encoder.cc",
|
||||
"fake_encoder.h",
|
||||
"fake_network_pipe.cc",
|
||||
"fake_network_pipe.h",
|
||||
"fake_videorenderer.h",
|
||||
"layer_filtering_transport.cc",
|
||||
"layer_filtering_transport.h",
|
||||
@ -361,10 +376,10 @@ rtc_source_set("test_common") {
|
||||
}
|
||||
|
||||
deps = [
|
||||
":direct_transport",
|
||||
":rtp_test_utils",
|
||||
":test_support",
|
||||
"..:webrtc_common",
|
||||
"../api:transport_api",
|
||||
"../audio",
|
||||
"../base:rtc_base_approved",
|
||||
"../call",
|
||||
|
||||
@ -11,7 +11,6 @@
|
||||
|
||||
#include "webrtc/call/call.h"
|
||||
#include "webrtc/system_wrappers/include/clock.h"
|
||||
#include "webrtc/test/gtest.h"
|
||||
|
||||
namespace webrtc {
|
||||
namespace test {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user