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

Unified Diff: media/filters/vp9_parser_fuzzertest.cc

Issue 2640973003: Disable logging in media_vp9_parser_fuzzer. (Closed)
Patch Set: Add a comment Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/vp9_parser_fuzzertest.cc
diff --git a/media/filters/vp9_parser_fuzzertest.cc b/media/filters/vp9_parser_fuzzertest.cc
index 075fae532c02f7c1f35585fbfd32b7c604bbc3ae..468a1517d74468cdf183a224b2226bc63ec7c8db 100644
--- a/media/filters/vp9_parser_fuzzertest.cc
+++ b/media/filters/vp9_parser_fuzzertest.cc
@@ -9,6 +9,16 @@
#include "media/filters/ivf_parser.h"
#include "media/filters/vp9_parser.h"
+struct Environment {
+ Environment() {
+ // Disable noisy logging as per "libFuzzer in Chrome" documentation:
+ // testing/libfuzzer/getting_started.md#Disable-noisy-error-message-logging.
+ logging::SetMinLogLevel(logging::LOG_FATAL);
+ }
+};
+
+Environment* env = new Environment();
+
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
const uint8_t* ivf_payload = nullptr;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698