LCOV - code coverage report
Current view: top level - media/webrtc/trunk/webrtc/modules/rtp_rtcp/source/rtcp_packet - compound_packet.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  *  Copyright (c) 2016 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             : 
      12             : #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMPOUND_PACKET_H_
      13             : #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMPOUND_PACKET_H_
      14             : 
      15             : #include <vector>
      16             : 
      17             : #include "webrtc/base/basictypes.h"
      18             : #include "webrtc/base/constructormagic.h"
      19             : #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h"
      20             : 
      21             : namespace webrtc {
      22             : namespace rtcp {
      23             : 
      24             : class CompoundPacket : public RtcpPacket {
      25             :  public:
      26           0 :   CompoundPacket() {}
      27           0 :   ~CompoundPacket() override {}
      28             : 
      29             :   void Append(RtcpPacket* packet);
      30             : 
      31             :   // Size of this packet in bytes (i.e. total size of nested packets).
      32             :   size_t BlockLength() const override;
      33             :   // Returns true if all calls to Create succeeded.
      34             :   bool Create(uint8_t* packet,
      35             :               size_t* index,
      36             :               size_t max_length,
      37             :               RtcpPacket::PacketReadyCallback* callback) const override;
      38             : 
      39             :  protected:
      40             :   std::vector<RtcpPacket*> appended_packets_;
      41             : 
      42             :  private:
      43             :   RTC_DISALLOW_COPY_AND_ASSIGN(CompoundPacket);
      44             : };
      45             : 
      46             : }  // namespace rtcp
      47             : }  // namespace webrtc
      48             : #endif  // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMPOUND_PACKET_H_

Generated by: LCOV version 1.13