Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_coding / neteq4 / tools / packet_source.h
1 /*
2  *  Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ4_TOOLS_PACKET_SOURCE_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ4_TOOLS_PACKET_SOURCE_H_
13
14 #include "webrtc/system_wrappers/interface/constructor_magic.h"
15
16 namespace webrtc {
17 namespace test {
18
19 class Packet;
20
21 // Interface class for an object delivering RTP packets to test applications.
22 class PacketSource {
23  public:
24   PacketSource() {}
25   virtual ~PacketSource() {}
26
27   // Returns a pointer to the next packet.
28   virtual Packet* NextPacket() = 0;
29
30  private:
31   DISALLOW_COPY_AND_ASSIGN(PacketSource);
32 };
33
34 }  // namespace test
35 }  // namespace webrtc
36 #endif  // WEBRTC_MODULES_AUDIO_CODING_NETEQ4_TOOLS_PACKET_SOURCE_H_