Remove deprecated functions from RtcEventLog
The unified Log() interface replaces the many old LogX() functions. This helps hide dependencies between the modules which log different events. TBR=stefan@webrtc.org Bug: webrtc:8111 Change-Id: I5ea9fd50ba6da87d5867513c81c5e3bdb0524a32 Reviewed-on: https://webrtc-review.googlesource.com/2689 Commit-Queue: Elad Alon <eladalon@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Reviewed-by: Elad Alon <eladalon@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20159}
This commit is contained in:
@ -12,13 +12,8 @@
|
||||
#define LOGGING_RTC_EVENT_LOG_MOCK_MOCK_RTC_EVENT_LOG_H_
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "logging/rtc_event_log/rtc_event_log.h"
|
||||
#include "logging/rtc_event_log/rtc_stream_config.h"
|
||||
#include "modules/audio_coding/audio_network_adaptor/include/audio_network_adaptor.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_packet_received.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_packet_to_send.h"
|
||||
#include "test/gmock.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -30,76 +25,12 @@ class MockRtcEventLog : public RtcEventLog {
|
||||
}
|
||||
MOCK_METHOD1(StartLoggingProxy, bool(RtcEventLogOutput*));
|
||||
|
||||
MOCK_METHOD2(StartLogging,
|
||||
bool(const std::string& file_name, int64_t max_size_bytes));
|
||||
|
||||
MOCK_METHOD2(StartLogging,
|
||||
bool(rtc::PlatformFile log_file, int64_t max_size_bytes));
|
||||
|
||||
MOCK_METHOD0(StopLogging, void());
|
||||
|
||||
virtual void Log(std::unique_ptr<RtcEvent> event) {
|
||||
return LogProxy(event.get());
|
||||
}
|
||||
MOCK_METHOD1(LogProxy, void(RtcEvent*));
|
||||
|
||||
MOCK_METHOD1(LogVideoReceiveStreamConfig,
|
||||
void(const rtclog::StreamConfig& config));
|
||||
|
||||
MOCK_METHOD1(LogVideoSendStreamConfig,
|
||||
void(const rtclog::StreamConfig& config));
|
||||
|
||||
MOCK_METHOD1(LogAudioReceiveStreamConfig,
|
||||
void(const rtclog::StreamConfig& config));
|
||||
|
||||
MOCK_METHOD1(LogAudioSendStreamConfig,
|
||||
void(const rtclog::StreamConfig& config));
|
||||
MOCK_METHOD3(LogRtpHeader,
|
||||
void(PacketDirection direction,
|
||||
const uint8_t* header,
|
||||
size_t packet_length));
|
||||
|
||||
MOCK_METHOD4(LogRtpHeader,
|
||||
void(PacketDirection direction,
|
||||
const uint8_t* header,
|
||||
size_t packet_length,
|
||||
int probe_cluster_id));
|
||||
|
||||
MOCK_METHOD3(LogRtcpPacket,
|
||||
void(PacketDirection direction,
|
||||
const uint8_t* packet,
|
||||
size_t length));
|
||||
|
||||
MOCK_METHOD1(LogIncomingRtpHeader, void(const RtpPacketReceived& packet));
|
||||
|
||||
MOCK_METHOD2(LogOutgoingRtpHeader,
|
||||
void(const RtpPacketToSend& packet, int probe_cluster_id));
|
||||
|
||||
MOCK_METHOD1(LogIncomingRtcpPacket,
|
||||
void(rtc::ArrayView<const uint8_t> packet));
|
||||
|
||||
MOCK_METHOD1(LogOutgoingRtcpPacket,
|
||||
void(rtc::ArrayView<const uint8_t> packet));
|
||||
|
||||
MOCK_METHOD1(LogAudioPlayout, void(uint32_t ssrc));
|
||||
|
||||
MOCK_METHOD3(LogLossBasedBweUpdate,
|
||||
void(int32_t bitrate_bps,
|
||||
uint8_t fraction_loss,
|
||||
int32_t total_packets));
|
||||
|
||||
MOCK_METHOD2(LogDelayBasedBweUpdate,
|
||||
void(int32_t bitrate_bps, BandwidthUsage detector_state));
|
||||
|
||||
MOCK_METHOD1(LogAudioNetworkAdaptation,
|
||||
void(const AudioEncoderRuntimeConfig& config));
|
||||
|
||||
MOCK_METHOD4(LogProbeClusterCreated,
|
||||
void(int id, int bitrate_bps, int min_probes, int min_bytes));
|
||||
|
||||
MOCK_METHOD2(LogProbeResultSuccess, void(int id, int bitrate_bps));
|
||||
MOCK_METHOD2(LogProbeResultFailure,
|
||||
void(int id, ProbeFailureReason failure_reason));
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
Reference in New Issue
Block a user