Fix Chromium clang plugin warnings

This adds a new file, webrtc/modules/audio_coding/neteq/tools/packet_source.cc, so that I'll have somewhere to put the new non-inlined methods.

NOTRY=true
BUG=webrtc:163

Review-Url: https://codereview.webrtc.org/2290593002
Cr-Commit-Position: refs/heads/master@{#13956}
This commit is contained in:
kwiberg
2016-08-29 06:37:33 -07:00
committed by Commit bot
parent 36a43887f3
commit b8e56ee320
8 changed files with 42 additions and 16 deletions

View File

@ -24,21 +24,16 @@ namespace test {
// Interface class for an object delivering RTP packets to test applications.
class PacketSource {
public:
PacketSource() : use_ssrc_filter_(false), ssrc_(0) {}
virtual ~PacketSource() {}
PacketSource();
virtual ~PacketSource();
// Returns next packet. Returns nullptr if the source is depleted, or if an
// error occurred.
virtual std::unique_ptr<Packet> NextPacket() = 0;
virtual void FilterOutPayloadType(uint8_t payload_type) {
filter_.set(payload_type, true);
}
virtual void FilterOutPayloadType(uint8_t payload_type);
virtual void SelectSsrc(uint32_t ssrc) {
use_ssrc_filter_ = true;
ssrc_ = ssrc;
}
virtual void SelectSsrc(uint32_t ssrc);
protected:
std::bitset<128> filter_; // Payload type is 7 bits in the RFC.