Refactoring mock_transport to be used separately
Bug: webrtc:11251 Change-Id: I0a494c34c8d5c458b4d9b1b3616ae360d04df0d4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168980 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Tim Na <natim@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30584}
This commit is contained in:
parent
11146cdfea
commit
9526c557be
@ -163,6 +163,7 @@ if (rtc_include_tests) {
|
||||
"../system_wrappers",
|
||||
"../test:audio_codec_mocks",
|
||||
"../test:field_trial",
|
||||
"../test:mock_transport",
|
||||
"../test:rtp_test_utils",
|
||||
"../test:test_common",
|
||||
"../test:test_support",
|
||||
|
||||
@ -423,6 +423,7 @@ if (rtc_include_tests) {
|
||||
"../test:encoder_settings",
|
||||
"../test:fake_video_codecs",
|
||||
"../test:field_trial",
|
||||
"../test:mock_transport",
|
||||
"../test:test_common",
|
||||
"../test:test_support",
|
||||
"../test:video_test_common",
|
||||
|
||||
@ -532,6 +532,7 @@ if (rtc_include_tests) {
|
||||
"../../rtc_base:task_queue_for_test",
|
||||
"../../system_wrappers",
|
||||
"../../test:field_trial",
|
||||
"../../test:mock_transport",
|
||||
"../../test:rtp_test_utils",
|
||||
"../../test:test_common",
|
||||
"../../test:test_support",
|
||||
|
||||
@ -782,8 +782,6 @@ rtc_library("test_common") {
|
||||
"fake_videorenderer.h",
|
||||
"layer_filtering_transport.cc",
|
||||
"layer_filtering_transport.h",
|
||||
"mock_transport.cc",
|
||||
"mock_transport.h",
|
||||
"rtp_rtcp_observer.h",
|
||||
"video_decoder_proxy_factory.h",
|
||||
"video_encoder_proxy_factory.h",
|
||||
@ -807,6 +805,7 @@ rtc_library("test_common") {
|
||||
":encoder_settings",
|
||||
":fake_video_codecs",
|
||||
":fileutils",
|
||||
":mock_transport",
|
||||
":rtp_test_utils",
|
||||
":test_support",
|
||||
":video_test_common",
|
||||
@ -851,6 +850,18 @@ rtc_library("test_common") {
|
||||
}
|
||||
}
|
||||
|
||||
rtc_library("mock_transport") {
|
||||
testonly = true
|
||||
sources = [
|
||||
"mock_transport.cc",
|
||||
"mock_transport.h",
|
||||
]
|
||||
deps = [
|
||||
":test_support",
|
||||
"../api:transport_api",
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("test_renderer") {
|
||||
public_deps = # no-presubmit-check TODO(webrtc:8603)
|
||||
[ ":test_renderer_generic" ]
|
||||
|
||||
@ -21,11 +21,13 @@ class MockTransport : public Transport {
|
||||
MockTransport();
|
||||
~MockTransport();
|
||||
|
||||
MOCK_METHOD3(SendRtp,
|
||||
bool(const uint8_t* data,
|
||||
size_t len,
|
||||
const PacketOptions& options));
|
||||
MOCK_METHOD2(SendRtcp, bool(const uint8_t* data, size_t len));
|
||||
MOCK_METHOD(bool,
|
||||
SendRtp,
|
||||
(const uint8_t*, size_t, const PacketOptions&),
|
||||
(override));
|
||||
MOCK_METHOD(bool, SendRtcp, (const uint8_t* data, size_t len), (override));
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // TEST_MOCK_TRANSPORT_H_
|
||||
|
||||
@ -610,6 +610,7 @@ if (rtc_include_tests) {
|
||||
"../test:field_trial",
|
||||
"../test:fileutils",
|
||||
"../test:frame_utils",
|
||||
"../test:mock_transport",
|
||||
"../test:null_transport",
|
||||
"../test:perf_test",
|
||||
"../test:rtp_test_utils",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user