Index: net/url_request/url_request_simple_job_unittest.cc |
diff --git a/net/url_request/url_request_simple_job_unittest.cc b/net/url_request/url_request_simple_job_unittest.cc |
index 9ecd9196d8e5b5c5407eb9af3006666efbef4869..64678a1ee31d00b2044c77982400f9cd87dcc161 100644 |
--- a/net/url_request/url_request_simple_job_unittest.cc |
+++ b/net/url_request/url_request_simple_job_unittest.cc |
@@ -80,16 +80,17 @@ class CancelAfterFirstReadURLRequestDelegate : public TestDelegate { |
~CancelAfterFirstReadURLRequestDelegate() override {} |
- void OnResponseStarted(URLRequest* request) override { |
+ void OnResponseStarted(URLRequest* request, int net_error) override { |
+ DCHECK_NE(ERR_IO_PENDING, net_error); |
// net::TestDelegate will start the first read. |
- TestDelegate::OnResponseStarted(request); |
+ TestDelegate::OnResponseStarted(request, net_error); |
request->Cancel(); |
run_loop_->Quit(); |
} |
void OnReadCompleted(URLRequest* request, int bytes_read) override { |
// Read should have been cancelled. |
- EXPECT_EQ(-1, bytes_read); |
+ EXPECT_EQ(ERR_ABORTED, bytes_read); |
} |
void WaitUntilHeadersReceived() const { run_loop_->Run(); } |