| OLD | NEW |
| (Empty) |
| 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 #ifndef WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_ | |
| 12 #define WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_ | |
| 13 | |
| 14 #include <string> | |
| 15 | |
| 16 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | |
| 17 #include "webrtc/test/gmock.h" | |
| 18 | |
| 19 namespace webrtc { | |
| 20 | |
| 21 class MockRtcEventLog : public RtcEventLog { | |
| 22 public: | |
| 23 MOCK_METHOD2(StartLogging, | |
| 24 bool(const std::string& file_name, int64_t max_size_bytes)); | |
| 25 | |
| 26 MOCK_METHOD2(StartLogging, | |
| 27 bool(rtc::PlatformFile log_file, int64_t max_size_bytes)); | |
| 28 | |
| 29 MOCK_METHOD0(StopLogging, void()); | |
| 30 | |
| 31 MOCK_METHOD1(LogVideoReceiveStreamConfig, | |
| 32 void(const webrtc::VideoReceiveStream::Config& config)); | |
| 33 | |
| 34 MOCK_METHOD1(LogVideoSendStreamConfig, | |
| 35 void(const webrtc::VideoSendStream::Config& config)); | |
| 36 | |
| 37 MOCK_METHOD4(LogRtpHeader, | |
| 38 void(PacketDirection direction, | |
| 39 MediaType media_type, | |
| 40 const uint8_t* header, | |
| 41 size_t packet_length)); | |
| 42 | |
| 43 MOCK_METHOD4(LogRtcpPacket, | |
| 44 void(PacketDirection direction, | |
| 45 MediaType media_type, | |
| 46 const uint8_t* packet, | |
| 47 size_t length)); | |
| 48 | |
| 49 MOCK_METHOD1(LogAudioPlayout, void(uint32_t ssrc)); | |
| 50 | |
| 51 MOCK_METHOD3(LogBwePacketLossEvent, | |
| 52 void(int32_t bitrate, | |
| 53 uint8_t fraction_loss, | |
| 54 int32_t total_packets)); | |
| 55 }; | |
| 56 | |
| 57 } // namespace webrtc | |
| 58 | |
| 59 #endif // WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_ | |
| OLD | NEW |