Make GetBitstream non-virtual since it is no longer needed for testing.

Bug: webrtc:10979
Change-Id: Id313c7fddbec40b9f19dae95f736379b872e3082
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/153663
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29242}
This commit is contained in:
philipel
2019-09-19 14:10:17 +02:00
committed by Commit Bot
parent 40de3cc5ef
commit f0be5b5380
4 changed files with 1 additions and 17 deletions

View File

@ -114,8 +114,7 @@ class PacketBuffer {
RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_);
// Copy the bitstream for |frame| to |destination|.
// Virtual for testing.
virtual bool GetBitstream(const RtpFrameObject& frame, uint8_t* destination);
bool GetBitstream(const RtpFrameObject& frame, uint8_t* destination);
// Get the packet with sequence number |seq_num|.
// Virtual for testing.

View File

@ -40,11 +40,6 @@ class FakePacketBuffer : public PacketBuffer {
return true;
}
bool GetBitstream(const RtpFrameObject& frame,
uint8_t* destination) override {
return true;
}
private:
std::map<uint16_t, VCMPacket> packets_;
};

View File

@ -100,11 +100,6 @@ class FuzzyPacketBuffer : public video_coding::PacketBuffer {
return packet;
}
bool GetBitstream(const video_coding::RtpFrameObject& frame,
uint8_t* destination) override {
return true;
}
private:
std::map<uint16_t, VCMPacket> packets;
VideoCodecType codec;

View File

@ -41,11 +41,6 @@ class FakePacketBuffer : public video_coding::PacketBuffer {
return true;
}
bool GetBitstream(const video_coding::RtpFrameObject& frame,
uint8_t* destination) override {
return true;
}
private:
std::map<uint16_t, VCMPacket> packets_;
};