These new classes are intended to replace the old NETEQTEST_RTPpacket classes. The code in rtp_analyze.cc has been updated to use the new classes; other test applications will follow. BUG=2692 R=andrew@webrtc.org, turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/11769004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5901 4adac7df-926f-26a2-2b94-8c16560cd09d
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
/*
|
|
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_TOOLS_PACKET_SOURCE_H_
|
|
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_TOOLS_PACKET_SOURCE_H_
|
|
|
|
#include "webrtc/system_wrappers/interface/constructor_magic.h"
|
|
|
|
namespace webrtc {
|
|
namespace test {
|
|
|
|
class Packet;
|
|
|
|
// Interface class for an object delivering RTP packets to test applications.
|
|
class PacketSource {
|
|
public:
|
|
PacketSource() {}
|
|
virtual ~PacketSource() {}
|
|
|
|
// Returns a pointer to the next packet.
|
|
virtual Packet* NextPacket() = 0;
|
|
|
|
private:
|
|
DISALLOW_COPY_AND_ASSIGN(PacketSource);
|
|
};
|
|
|
|
} // namespace test
|
|
} // namespace webrtc
|
|
#endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ4_TOOLS_PACKET_SOURCE_H_
|