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

Unified Diff: ui/display/util/edid_parser_fuzzer.cc

Issue 2294733002: Set log level to logging::LOG_FATAL for edid_parser_fuzzer. (Closed)
Patch Set: Add "//base" to deps to avoid linker failure on debug build. Created 4 years, 4 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 | « ui/display/util/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/util/edid_parser_fuzzer.cc
diff --git a/ui/display/util/edid_parser_fuzzer.cc b/ui/display/util/edid_parser_fuzzer.cc
index 17367831e0be0791b1e76f8607fd65a694e46054..51e2ef3b6b5f665bf350d1fef54c865b1ab409be 100644
--- a/ui/display/util/edid_parser_fuzzer.cc
+++ b/ui/display/util/edid_parser_fuzzer.cc
@@ -10,6 +10,14 @@
#include "ui/display/util/edid_parser.h"
#include "ui/gfx/geometry/size.h"
+struct Environment {
+ Environment() {
+ logging::SetMinLogLevel(logging::LOG_FATAL);
+ }
+};
+
+Environment* env = new Environment();
+
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
std::vector<uint8_t> edid;
« no previous file with comments | « ui/display/util/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698