Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: webrtc/video/video_send_stream_tests.cc

Issue 2981513002: Wire up RTP keep-alive in ortc api. (Closed)
Patch Set: deps, again Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_send_stream_tests.cc
diff --git a/webrtc/video/video_send_stream_tests.cc b/webrtc/video/video_send_stream_tests.cc
index 8352d4f8db1333389aa278137d0b9c8953d0f469..0d5ba7d325d66a078a9d7479fa25adc5021dd525 100644
--- a/webrtc/video/video_send_stream_tests.cc
+++ b/webrtc/video/video_send_stream_tests.cc
@@ -12,6 +12,7 @@
#include <vector>
#include "webrtc/call/call.h"
+#include "webrtc/call/rtp_transport_controller_send.h"
#include "webrtc/common_video/include/frame_callback.h"
#include "webrtc/common_video/include/video_frame.h"
#include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
@@ -3379,12 +3380,12 @@ TEST_F(VideoSendStreamTest, SendsKeepAlive) {
public:
KeepaliveObserver() : SendTest(kDefaultTimeoutMs) {}
- Call::Config GetSenderCallConfig() override {
- Call::Config config = SendTest::GetSenderCallConfig();
- config.keepalive_config.timeout_interval_ms = kTimeoutMs;
- config.keepalive_config.payload_type =
- CallTest::kDefaultKeepalivePayloadType;
- return config;
+ void OnRtpTransportControllerSendCreated(
+ RtpTransportControllerSend* controller) override {
+ RtpKeepAliveConfig config;
+ config.timeout_interval_ms = kTimeoutMs;
+ config.payload_type = CallTest::kDefaultKeepalivePayloadType;
+ controller->SetKeepAliveConfig(config);
}
private:
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698