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

Unified Diff: media/cast/test/cast_benchmarks.cc

Issue 1878883003: Refactor: simplify interface of SenderRtcpSession and CastTransport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 | « media/cast/sender/video_sender_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/cast_benchmarks.cc
diff --git a/media/cast/test/cast_benchmarks.cc b/media/cast/test/cast_benchmarks.cc
index f92cc10af2bf16109e540dcbad28d4e2a7b13aa3..c24785d0d32661bc6b9216c393cbfaf930322661 100644
--- a/media/cast/test/cast_benchmarks.cc
+++ b/media/cast/test/cast_benchmarks.cc
@@ -97,19 +97,15 @@ class CastTransportWrapper : public CastTransport {
}
void InitializeAudio(const CastTransportRtpConfig& config,
- const RtcpCastMessageCallback& cast_message_cb,
- const RtcpRttCallback& rtt_cb,
- const RtcpPliCallback& key_frame_cb) final {
+ std::unique_ptr<RtcpObserver> rtcp_observer) final {
audio_ssrc_ = config.ssrc;
- transport_->InitializeAudio(config, cast_message_cb, rtt_cb, key_frame_cb);
+ transport_->InitializeAudio(config, std::move(rtcp_observer));
}
void InitializeVideo(const CastTransportRtpConfig& config,
- const RtcpCastMessageCallback& cast_message_cb,
- const RtcpRttCallback& rtt_cb,
- const RtcpPliCallback& key_frame_cb) final {
+ std::unique_ptr<RtcpObserver> rtcp_observer) final {
video_ssrc_ = config.ssrc;
- transport_->InitializeVideo(config, cast_message_cb, rtt_cb, key_frame_cb);
+ transport_->InitializeVideo(config, std::move(rtcp_observer));
}
void InsertFrame(uint32_t ssrc, const EncodedFrame& frame) final {
« no previous file with comments | « media/cast/sender/video_sender_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698