blob: 334bc885db56c7e2cb70714c0a0ee0c31af796b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_CAST_RTP_SENDER_MOCK_RTP_SENDER_H_
#define MEDIA_CAST_RTP_SENDER_MOCK_RTP_SENDER_H_
#include <vector>
#include "media/cast/rtp_sender/rtp_sender.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace media {
namespace cast {
class MockRtpSender : public RtpSender {
public:
MOCK_METHOD2(IncomingEncodedVideoFrame,
bool(const EncodedVideoFrame& frame, int64 capture_time));
MOCK_METHOD2(IncomingEncodedAudioFrame,
bool(const EncodedAudioFrame& frame, int64 recorded_time));
MOCK_METHOD3(ResendPacket,
bool(bool is_audio, uint8 frame_id, uint16 packet_id));
MOCK_METHOD0(RtpStatistics, void());
};
} // namespace cast
} // namespace media
#endif // MEDIA_CAST_RTP_SENDER_MOCK_RTP_SENDER_H_
|