Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: webrtc/call/rtc_event_log.h

Issue 2188033004: Add BWE plot to event log analyzer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/call/rtc_event_log.h
diff --git a/webrtc/call/rtc_event_log.h b/webrtc/call/rtc_event_log.h
index 7c72dd5ce995a4443a25af429154c4ce7f651bab..f02cf1809a18682e9df9321583c09ce8981ba1fb 100644
--- a/webrtc/call/rtc_event_log.h
+++ b/webrtc/call/rtc_event_log.h
@@ -109,6 +109,36 @@ class RtcEventLog {
rtclog::EventStream* result);
};
+class NullRtcEventLog : public RtcEventLog {
terelius 2016/07/28 13:22:35 There is a null-implementation in rtc_event_log.cc
stefan-webrtc 2016/07/28 13:47:23 Done.
+ public:
+ ~NullRtcEventLog() override {}
+ bool StartLogging(const std::string& file_name,
+ int64_t max_size_bytes) override {
+ return true;
+ }
+ bool StartLogging(rtc::PlatformFile platform_file,
+ int64_t max_size_bytes) override {
+ return true;
+ }
+ void StopLogging() override{};
+ void LogVideoReceiveStreamConfig(
+ const webrtc::VideoReceiveStream::Config& config) override {}
+ void LogVideoSendStreamConfig(
+ const webrtc::VideoSendStream::Config& config) override {}
+ void LogRtpHeader(PacketDirection direction,
+ MediaType media_type,
+ const uint8_t* header,
+ size_t packet_length) override {}
+ void LogRtcpPacket(PacketDirection direction,
+ MediaType media_type,
+ const uint8_t* packet,
+ size_t length) override {}
+ void LogAudioPlayout(uint32_t ssrc) override {}
+ void LogBwePacketLossEvent(int32_t bitrate,
+ uint8_t fraction_loss,
+ int32_t total_packets) override {}
+};
+
} // namespace webrtc
#endif // WEBRTC_CALL_RTC_EVENT_LOG_H_

Powered by Google App Engine
This is Rietveld 408576698