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

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

Issue 1716143002: Simple RTCP receiver fuzzer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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/test/fuzzers/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fuzzers/rtcp_receiver_fuzzer.cc
diff --git a/webrtc/test/fuzzers/h264_depacketizer_fuzzer.cc b/webrtc/test/fuzzers/rtcp_receiver_fuzzer.cc
similarity index 61%
copy from webrtc/test/fuzzers/h264_depacketizer_fuzzer.cc
copy to webrtc/test/fuzzers/rtcp_receiver_fuzzer.cc
index ca73d9495f5241c5ed0554d1823b79b8637e0f12..83a3d08b6c0c60b83742692ecb716abaa920157c 100644
--- a/webrtc/test/fuzzers/h264_depacketizer_fuzzer.cc
+++ b/webrtc/test/fuzzers/rtcp_receiver_fuzzer.cc
@@ -7,12 +7,17 @@
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/modules/rtp_rtcp/source/rtp_format_h264.h"
+#include "webrtc/base/checks.h"
+#include "webrtc/base/scoped_ptr.h"
+#include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h"
+#include "webrtc/system_wrappers/include/clock.h"
namespace webrtc {
+
void FuzzOneInput(const uint8_t* data, size_t size) {
- RtpDepacketizerH264 depacketizer;
- RtpDepacketizer::ParsedPayload parsed_payload;
- depacketizer.Parse(&parsed_payload, data, size);
+ webrtc::SimulatedClock clock(1234);
+ RTCPReceiver receiver(&clock, false, nullptr, nullptr, nullptr, nullptr,
+ nullptr);
danilchap 2016/02/22 12:22:55 May be you want to use input (data,size) parameter
pbos-webrtc 2016/02/22 12:31:50 Wow, good call. I really missed that I was not eve
}
} // namespace webrtc
+
« no previous file with comments | « webrtc/test/fuzzers/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698