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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_sender_unittest.cc

Issue 2885823002: Delete class NullRtpData and function NullObjectRtpData (Closed)
Patch Set: Add using declaration. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 uint32_t ssrc, 190 uint32_t ssrc,
191 const RtcpPacketTypeCounter& packet_counter) override { 191 const RtcpPacketTypeCounter& packet_counter) override {
192 ssrc_ = ssrc; 192 ssrc_ = ssrc;
193 counter_ = packet_counter; 193 counter_ = packet_counter;
194 } 194 }
195 uint32_t ssrc_; 195 uint32_t ssrc_;
196 RtcpPacketTypeCounter counter_; 196 RtcpPacketTypeCounter counter_;
197 }; 197 };
198 198
199 class TestTransport : public Transport, 199 class TestTransport : public Transport,
200 public NullRtpData { 200 public RtpData {
201 public: 201 public:
202 TestTransport() {} 202 TestTransport() {}
203 203
204 bool SendRtp(const uint8_t* /*data*/, 204 bool SendRtp(const uint8_t* /*data*/,
205 size_t /*len*/, 205 size_t /*len*/,
206 const PacketOptions& options) override { 206 const PacketOptions& options) override {
207 return false; 207 return false;
208 } 208 }
209 bool SendRtcp(const uint8_t* data, size_t len) override { 209 bool SendRtcp(const uint8_t* data, size_t len) override {
210 parser_.Parse(data, len); 210 parser_.Parse(data, len);
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 const rtcp::TargetBitrate::BitrateItem& item = bitrates[index]; 836 const rtcp::TargetBitrate::BitrateItem& item = bitrates[index];
837 EXPECT_EQ(sl, item.spatial_layer); 837 EXPECT_EQ(sl, item.spatial_layer);
838 EXPECT_EQ(tl, item.temporal_layer); 838 EXPECT_EQ(tl, item.temporal_layer);
839 EXPECT_EQ(start_bitrate_bps + (tl * 20000), 839 EXPECT_EQ(start_bitrate_bps + (tl * 20000),
840 item.target_bitrate_kbps * 1000); 840 item.target_bitrate_kbps * 1000);
841 } 841 }
842 } 842 }
843 } 843 }
844 844
845 } // namespace webrtc 845 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698