| 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);
|
| };
|
|
|