#include "net/test/url_request/url_request_hanging_read_job.h"
#include <memory>
#include <string>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/strings/stringprintf.h"
#include "base/task/single_thread_task_runner.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_util.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_filter.h"
namespace net {
namespace {
const char kMockHostname[] = …;
GURL GetMockUrl(const std::string& scheme, const std::string& hostname) { … }
class MockJobInterceptor : public URLRequestInterceptor { … };
}
URLRequestHangingReadJob::URLRequestHangingReadJob(URLRequest* request)
: … { … }
URLRequestHangingReadJob::~URLRequestHangingReadJob() = default;
void URLRequestHangingReadJob::Start() { … }
int URLRequestHangingReadJob::ReadRawData(IOBuffer* buf, int buf_size) { … }
void URLRequestHangingReadJob::GetResponseInfo(HttpResponseInfo* info) { … }
void URLRequestHangingReadJob::GetResponseInfoConst(
HttpResponseInfo* info) const { … }
void URLRequestHangingReadJob::StartAsync() { … }
void URLRequestHangingReadJob::AddUrlHandler() { … }
GURL URLRequestHangingReadJob::GetMockHttpUrl() { … }
GURL URLRequestHangingReadJob::GetMockHttpsUrl() { … }
}