Home | History | Annotate | Download | only in shill

Lines Matching refs:HTTPRequest

110     MOCK_METHOD2(ResultCallTarget, void(HTTPRequest::Result result,
115 const Callback<void(HTTPRequest::Result,
122 Callback<void(HTTPRequest::Result, const ByteString&)> result_callback_;
133 request_.reset(new HTTPRequest(connection_, &dispatcher_, &sockets_));
158 HTTPRequest* request() { return request_.get(); }
180 EXPECT_EQ(HTTPRequest::kResultUnknown, request_->timeout_result_);
200 ExpectSetTimeout(HTTPRequest::kConnectTimeoutSeconds);
203 ExpectSetTimeout(HTTPRequest::kInputTimeoutSeconds);
260 void ExpectResultCallback(HTTPRequest::Result result) {
263 void InvokeResultVerify(HTTPRequest::Result result,
265 EXPECT_EQ(HTTPRequest::kResultSuccess, result);
270 EXPECT_CALL(target_, ResultCallTarget(HTTPRequest::kResultSuccess, _))
299 HTTPRequest::Result StartRequest(const string& url) {
309 EXPECT_EQ(HTTPRequest::kResultInProgress, StartRequest(url));
335 // Owned by the HTTPRequest, but tracked here for EXPECT().
338 // Owned by the HTTPRequest, but tracked here for EXPECT().
344 std::unique_ptr<HTTPRequest> request_;
359 EXPECT_EQ(HTTPRequest::kResultConnectionFailure, StartRequest(kNumericURL));
366 EXPECT_EQ(HTTPRequest::kResultInProgress, StartRequest(kNumericURL));
367 ExpectResultCallback(HTTPRequest::kResultConnectionFailure);
376 EXPECT_EQ(HTTPRequest::kResultInProgress, StartRequest(kNumericURL));
377 ExpectResultCallback(HTTPRequest::kResultConnectionTimeout);
387 EXPECT_EQ(HTTPRequest::kResultInProgress, StartRequest(kNumericURL));
394 EXPECT_EQ(HTTPRequest::kResultDNSFailure, StartRequest(kTextURL));
401 EXPECT_EQ(HTTPRequest::kResultInProgress, StartRequest(kTextURL));
402 ExpectResultCallback(HTTPRequest::kResultDNSFailure);
411 EXPECT_EQ(HTTPRequest::kResultInProgress, StartRequest(kTextURL));
412 ExpectResultCallback(HTTPRequest::kResultDNSTimeout);
421 ExpectResultCallback(HTTPRequest::kResultConnectionFailure);
433 ExpectResultCallback(HTTPRequest::kResultRequestTimeout);
461 ExpectResultCallback(HTTPRequest::kResultResponseTimeout);
473 ExpectResultCallback(HTTPRequest::kResultResponseFailure);