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

Unified Diff: net/socket/fuzzed_socket_factory.h

Issue 2686673003: Initial fuzzer for SpdySession (Closed)
Patch Set: Apply review feedback Created 3 years, 10 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 | « net/data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict ('k') | net/socket/fuzzed_socket_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/fuzzed_socket_factory.h
diff --git a/net/socket/fuzzed_socket_factory.h b/net/socket/fuzzed_socket_factory.h
index c0f668cb3ebb86233dd97e2ac73fe06c3885aaf7..4459d3e0042f44d4230ccd99e924d9c059167563 100644
--- a/net/socket/fuzzed_socket_factory.h
+++ b/net/socket/fuzzed_socket_factory.h
@@ -55,8 +55,13 @@ class FuzzedSocketFactory : public ClientSocketFactory {
void ClearSSLSessionCache() override;
+ // Sets whether Connect()ions on returned sockets can be asynchronously
+ // delayed or outright fail. Defaults to true.
+ void set_fuzz_connect_result(bool v) { fuzz_connect_result_ = v; }
+
private:
base::FuzzedDataProvider* data_provider_;
+ bool fuzz_connect_result_;
DISALLOW_COPY_AND_ASSIGN(FuzzedSocketFactory);
};
« no previous file with comments | « net/data/fuzzer_dictionaries/net_spdy_session_fuzzer.dict ('k') | net/socket/fuzzed_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698