Remove rtc::Buffer::length(), since no one uses it anymore
Chromium now uses size() instead, just like WebRTC. This CL also fixes a new length() call that had crept in. R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/44119004 Cr-Commit-Position: refs/heads/master@{#9024}
This commit is contained in:
parent
d4e80146e3
commit
61c2a6f241
@ -34,10 +34,6 @@ class Buffer {
|
||||
size_t size() const { return size_; }
|
||||
size_t capacity() const { return capacity_; }
|
||||
|
||||
// For backwards compatibility. TODO(kwiberg): Remove once Chromium doesn't
|
||||
// need it anymore.
|
||||
size_t length() const { return size(); }
|
||||
|
||||
Buffer& operator=(const Buffer& buf) {
|
||||
if (&buf != this) {
|
||||
Construct(buf.data(), buf.size(), buf.size());
|
||||
|
@ -1361,7 +1361,7 @@ TEST_F(RtpSenderVideoTest, SendVideoWithCVO) {
|
||||
// Verify that this packet does have CVO byte.
|
||||
VerifyCVOPacket(
|
||||
reinterpret_cast<uint8_t*>(transport_.sent_packets_[0]->data()),
|
||||
transport_.sent_packets_[0]->length(), true, &map, kSeqNum, hdr.rotation);
|
||||
transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation);
|
||||
|
||||
// Verify that this packet does have CVO byte.
|
||||
VerifyCVOPacket(
|
||||
|
Loading…
Reference in New Issue
Block a user