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

Unified Diff: net/base/fuzzed_data_provider.h

Issue 1946793002: net: Add fuzzer for HostResolverImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Suppress leak Created 4 years, 7 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/base/fuzzed_data_provider.h
diff --git a/net/base/fuzzed_data_provider.h b/net/base/fuzzed_data_provider.h
index 47a45061cdf248b9a2da0bd5e94fb1399f04ba6b..4e8268765f189f775f977458e91eacf7fe0df21b 100644
--- a/net/base/fuzzed_data_provider.h
+++ b/net/base/fuzzed_data_provider.h
@@ -38,6 +38,7 @@ class FuzzedDataProvider {
// range. If there's no input data left, always returns |min|. |min| must be
// less than or equal to |max|.
uint32_t ConsumeValueInRange(uint32_t min, uint32_t max);
+ int ConsumeValueInRangeInt(int min, int max);
// Returns a bool, or false when no data remains.
bool ConsumeBool();
« no previous file with comments | « net/BUILD.gn ('k') | net/base/fuzzed_data_provider.cc » ('j') | net/data/dns/dns.dict » ('J')

Powered by Google App Engine
This is Rietveld 408576698