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

Unified Diff: net/http/http_stream_parser_fuzzer.cc

Issue 2250263003: Move FuzzedDataProvider to //base and expose to blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment explaining byte ranges + var name in header 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
Index: net/http/http_stream_parser_fuzzer.cc
diff --git a/net/http/http_stream_parser_fuzzer.cc b/net/http/http_stream_parser_fuzzer.cc
index 421aaac4c4769114a502feec26e4cac95a0ec009..75b913288a4c86a53fb0f7817ab8ca8fc67c8792 100644
--- a/net/http/http_stream_parser_fuzzer.cc
+++ b/net/http/http_stream_parser_fuzzer.cc
@@ -12,10 +12,10 @@
#include <string>
#include <vector>
+#include "base/fuzzed_data_provider.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "net/base/fuzzed_data_provider.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
@@ -34,7 +34,7 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
net::TestCompletionCallback callback;
net::BoundTestNetLog bound_test_net_log;
- net::FuzzedDataProvider data_provider(data, size);
+ base::FuzzedDataProvider data_provider(data, size);
std::unique_ptr<net::FuzzedSocket> fuzzed_socket(new net::FuzzedSocket(
&data_provider, bound_test_net_log.bound().net_log()));
CHECK_EQ(net::OK, fuzzed_socket->Connect(callback.callback()));

Powered by Google App Engine
This is Rietveld 408576698