10#ifndef PROTO_FUZZER_GOPHER_MOCK_SERVER_H_
11#define PROTO_FUZZER_GOPHER_MOCK_SERVER_H_
17namespace proto_fuzzer {
31 void RunLoop(CURLM* multi, CURL* easy,
const curl::fuzzer::proto::Scenario& scenario)
override;
34 const curl::fuzzer::proto::GopherProbeMode mode_;
GopherMockServer(curl::fuzzer::proto::GopherProbeMode mode)
Construct a closed Gopher probe peer.
void RunLoop(CURLM *multi, CURL *easy, const curl::fuzzer::proto::Scenario &scenario) override
Apply the two fixed timing policies immediately before curl's first perform.
std::unique_ptr< MockConnection > CreateConnection() override
Build an ordinary socketpair, then saturate the client-to-server direction for the timeout probe befo...
MockServer(MultiDrivePolicy drive_policy=MultiDrivePolicy::kPerform)
Construct an idle MockServer with no scripted responses or open peers.
MockConnection and MockServer — the in-process peer that feeds canned response bytes to libcurl over ...