Home | History | Annotate | Download | only in mock
      1 /*
      2  *  Copyright (c) 2013 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_PACING_INCLUDE_MOCK_MOCK_PACED_SENDER_H_
     12 #define WEBRTC_MODULES_PACING_INCLUDE_MOCK_MOCK_PACED_SENDER_H_
     13 
     14 #include "testing/gmock/include/gmock/gmock.h"
     15 
     16 #include <vector>
     17 
     18 #include "webrtc/modules/pacing/include/paced_sender.h"
     19 
     20 namespace webrtc {
     21 
     22 class MockPacedSender : public PacedSender {
     23  public:
     24   MockPacedSender() : PacedSender(NULL, 0, 0) {}
     25   MOCK_METHOD6(SendPacket, bool(Priority priority,
     26                                 uint32_t ssrc,
     27                                 uint16_t sequence_number,
     28                                 int64_t capture_time_ms,
     29                                 int bytes,
     30                                 bool retransmission));
     31   MOCK_CONST_METHOD0(QueueInMs, int());
     32   MOCK_CONST_METHOD0(QueueInPackets, int());
     33 };
     34 
     35 }  // namespace webrtc
     36 
     37 #endif  // WEBRTC_MODULES_PACING_INCLUDE_MOCK_MOCK_PACED_SENDER_H_
     38