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

Unified Diff: webrtc/media/engine/fakewebrtccall.cc

Issue 2981513002: Wire up RTP keep-alive in ortc api. (Closed)
Patch Set: Moved tests around 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
Index: webrtc/media/engine/fakewebrtccall.cc
diff --git a/webrtc/media/engine/fakewebrtccall.cc b/webrtc/media/engine/fakewebrtccall.cc
index 2e793b85253800211b4ca7414ccdeed43aa52df3..aa302795ec52ea8414ec227474f66201759efeb4 100644
--- a/webrtc/media/engine/fakewebrtccall.cc
+++ b/webrtc/media/engine/fakewebrtccall.cc
@@ -637,4 +637,12 @@ void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
}
}
+bool FakeCall::SetRtpKeepAliveConfig(const webrtc::RtpKeepAliveConfig& config) {
+ if ((config != config_.keepalive_config) && num_created_send_streams_ > 0)
+ return false;
+
+ config_.keepalive_config = config;
+ return true;
+}
+
} // namespace cricket

Powered by Google App Engine
This is Rietveld 408576698