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

Unified Diff: media/cdm/cenc_utils_fuzzertest.cc

Issue 2646763002: Disable logging for media_cenc_utils_fuzzer. (Closed)
Patch Set: 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/cdm/cenc_utils_fuzzertest.cc
diff --git a/media/cdm/cenc_utils_fuzzertest.cc b/media/cdm/cenc_utils_fuzzertest.cc
index 8f656198d6d769c8a86585a9cd7025f9f5076714..12e86bbf8f8f309b6d48e3fb9e5116cf49ec8449 100644
--- a/media/cdm/cenc_utils_fuzzertest.cc
+++ b/media/cdm/cenc_utils_fuzzertest.cc
@@ -6,8 +6,15 @@
#include <stdint.h>
#include <vector>
+#include "base/logging.h"
#include "media/cdm/cenc_utils.h"
+struct Environment {
+ Environment() { logging::SetMinLogLevel(logging::LOG_FATAL); }
inferno 2017/01/19 12:29:45 nit: Move logging::SetMinLogLevel(logging::LOG_FAT
mmoroz 2017/01/19 12:36:52 I wrote it that way initially, but then I've got a
+};
+
+Environment* env = new Environment();
+
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
std::vector<uint8_t> input(data, data + size);
« 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