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

Unified Diff: webrtc/test/fuzzers/congestion_controller_feedback_fuzzer.cc

Issue 2190013002: Revert of 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
« no previous file with comments | « webrtc/modules/congestion_controller/congestion_controller.cc ('k') | webrtc/tools/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fuzzers/congestion_controller_feedback_fuzzer.cc
diff --git a/webrtc/test/fuzzers/congestion_controller_feedback_fuzzer.cc b/webrtc/test/fuzzers/congestion_controller_feedback_fuzzer.cc
index 6fb5f9ba1fb2bb26d831ddff8eefc9059b90f336..aa0d62e1387abc0bbb1e797c4e14f41d00665ca1 100644
--- a/webrtc/test/fuzzers/congestion_controller_feedback_fuzzer.cc
+++ b/webrtc/test/fuzzers/congestion_controller_feedback_fuzzer.cc
@@ -26,13 +26,42 @@
uint32_t bitrate) override {}
};
+class NullEventLog : public RtcEventLog {
+ public:
+ ~NullEventLog() 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) {
+ 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 {}
+};
+
void FuzzOneInput(const uint8_t* data, size_t size) {
size_t i = 0;
if (size < sizeof(int64_t) + sizeof(uint8_t) + sizeof(uint32_t))
return;
SimulatedClock clock(data[i++]);
NullBitrateObserver observer;
- RtcEventLogNullImpl event_log;
+ NullEventLog event_log;
CongestionController cc(&clock, &observer, &observer, &event_log);
RemoteBitrateEstimator* rbe = cc.GetRemoteBitrateEstimator(true);
RTPHeader header;
« no previous file with comments | « webrtc/modules/congestion_controller/congestion_controller.cc ('k') | webrtc/tools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698