Home | History | Annotate | Download | only in mock
      1 /*
      2  *  Copyright (c) 2012 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_RTP_RTCP_SOURCE_MOCK_MOCK_RTP_PAYLOAD_REGISTRY_H_
     12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_MOCK_MOCK_RTP_PAYLOAD_REGISTRY_H_
     13 
     14 #include "testing/gmock/include/gmock/gmock.h"
     15 #include "webrtc/modules/rtp_rtcp/interface/rtp_payload_registry.h"
     16 
     17 namespace webrtc {
     18 
     19 class MockRTPPayloadStrategy : public RTPPayloadStrategy {
     20  public:
     21   MOCK_CONST_METHOD0(CodecsMustBeUnique,
     22       bool());
     23   MOCK_CONST_METHOD4(PayloadIsCompatible,
     24                      bool(const RtpUtility::Payload& payload,
     25                           const uint32_t frequency,
     26                           const uint8_t channels,
     27                           const uint32_t rate));
     28   MOCK_CONST_METHOD2(UpdatePayloadRate,
     29                      void(RtpUtility::Payload* payload, const uint32_t rate));
     30   MOCK_CONST_METHOD1(GetPayloadTypeFrequency,
     31                      int(const RtpUtility::Payload& payload));
     32   MOCK_CONST_METHOD5(
     33       CreatePayloadType,
     34       RtpUtility::Payload*(const char payloadName[RTP_PAYLOAD_NAME_SIZE],
     35                            const int8_t payloadType,
     36                            const uint32_t frequency,
     37                            const uint8_t channels,
     38                            const uint32_t rate));
     39 };
     40 
     41 }  // namespace webrtc
     42 
     43 #endif  // WEBRTC_MODULES_RTP_RTCP_SOURCE_MOCK_MOCK_RTP_PAYLOAD_REGISTRY_H_
     44