| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_ | 11 #ifndef WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_ |
| 12 #define WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_ | 12 #define WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 | 17 |
| 18 #include "webrtc/call/rtc_event_log.h" | 18 #include "webrtc/call/rtc_event_log.h" |
| 19 | 19 |
| 20 namespace webrtc { | 20 namespace webrtc { |
| 21 | 21 |
| 22 class MockRtcEventLog : public RtcEventLog { | 22 class MockRtcEventLog : public RtcEventLog { |
| 23 public: | 23 public: |
| 24 MOCK_METHOD1(SetBufferDuration, void(int64_t buffer_duration_us)); | 24 MOCK_METHOD1(SetBufferDuration, void(int64_t buffer_duration_us)); |
| 25 | 25 |
| 26 MOCK_METHOD2(StartLogging, | 26 MOCK_METHOD2(StartLogging, |
| 27 void(const std::string& file_name, int duration_ms)); | 27 void(const std::string& file_name, int duration_ms)); |
| 28 | 28 |
| 29 MOCK_METHOD1(StartLogging, bool(rtc::PlatformFile log_file)); | 29 MOCK_METHOD2(StartLogging, |
| 30 bool(rtc::PlatformFile log_file, int64_t max_size_bytes)); |
| 30 | 31 |
| 31 MOCK_METHOD0(StopLogging, void()); | 32 MOCK_METHOD0(StopLogging, void()); |
| 32 | 33 |
| 33 MOCK_METHOD1(LogVideoReceiveStreamConfig, | 34 MOCK_METHOD1(LogVideoReceiveStreamConfig, |
| 34 void(const webrtc::VideoReceiveStream::Config& config)); | 35 void(const webrtc::VideoReceiveStream::Config& config)); |
| 35 | 36 |
| 36 MOCK_METHOD1(LogVideoSendStreamConfig, | 37 MOCK_METHOD1(LogVideoSendStreamConfig, |
| 37 void(const webrtc::VideoSendStream::Config& config)); | 38 void(const webrtc::VideoSendStream::Config& config)); |
| 38 | 39 |
| 39 MOCK_METHOD4(LogRtpHeader, | 40 MOCK_METHOD4(LogRtpHeader, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 52 | 53 |
| 53 MOCK_METHOD3(LogBwePacketLossEvent, | 54 MOCK_METHOD3(LogBwePacketLossEvent, |
| 54 void(int32_t bitrate, | 55 void(int32_t bitrate, |
| 55 uint8_t fraction_loss, | 56 uint8_t fraction_loss, |
| 56 int32_t total_packets)); | 57 int32_t total_packets)); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace webrtc | 60 } // namespace webrtc |
| 60 | 61 |
| 61 #endif // WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_ | 62 #endif // WEBRTC_CALL_MOCK_MOCK_RTC_EVENT_LOG_H_ |
| OLD | NEW |