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

Unified Diff: net/url_request/url_request_fuzzer.cc

Issue 2640023009: Disable noisy logging from net_url_request_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: net/url_request/url_request_fuzzer.cc
diff --git a/net/url_request/url_request_fuzzer.cc b/net/url_request/url_request_fuzzer.cc
index 788e3a7a54220415808fabefb949f22e09bb57f9..205697ac20b36fc7bbd7b1f200b3d4ea010010bb 100644
--- a/net/url_request/url_request_fuzzer.cc
+++ b/net/url_request/url_request_fuzzer.cc
@@ -9,6 +9,7 @@
#include <memory>
+#include "base/logging.h"
#include "base/run_loop.h"
#include "base/test/fuzzed_data_provider.h"
#include "net/base/request_priority.h"
@@ -18,6 +19,16 @@
#include "net/url_request/url_request_test_util.h"
#include "url/gurl.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();
+
// Integration fuzzer for URLRequest's handling of HTTP requests. Can follow
// redirects, both on the same server (using a new socket or the old one) and
// across servers.
« 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