Home
last modified time | relevance | path

Searched refs:HTTPRequest (Results 1 – 9 of 9) sorted by relevance

/system/connectivity/shill/
Dhttp_request.cc47 const int HTTPRequest::kConnectTimeoutSeconds = 10;
48 const int HTTPRequest::kDNSTimeoutSeconds = 5;
49 const int HTTPRequest::kInputTimeoutSeconds = 10;
51 const char HTTPRequest::kHTTPRequestTemplate[] =
56 HTTPRequest::HTTPRequest(ConnectionRefPtr connection, in HTTPRequest() function in shill::HTTPRequest
64 Bind(&HTTPRequest::OnConnectCompletion, in HTTPRequest()
66 dns_client_callback_(Bind(&HTTPRequest::GetDNSResult, in HTTPRequest()
68 read_server_callback_(Bind(&HTTPRequest::ReadFromServer, in HTTPRequest()
70 write_server_callback_(Bind(&HTTPRequest::WriteToServer, in HTTPRequest()
89 HTTPRequest::~HTTPRequest() { in ~HTTPRequest()
[all …]
Dconnectivity_trial.cc101 request_.reset(new HTTPRequest(connection_, dispatcher_, &sockets_)); in Start()
127 HTTPRequest::Result result = in StartTrialTask()
129 if (result != HTTPRequest::kResultInProgress) { in StartTrialTask()
173 HTTPRequest::Result result, const ByteString& /*response_data*/) { in RequestResultCallback()
242 HTTPRequest::Result result) { in GetPortalResultForRequestResult()
244 case HTTPRequest::kResultSuccess: in GetPortalResultForRequestResult()
247 case HTTPRequest::kResultDNSFailure: in GetPortalResultForRequestResult()
249 case HTTPRequest::kResultDNSTimeout: in GetPortalResultForRequestResult()
251 case HTTPRequest::kResultConnectionFailure: in GetPortalResultForRequestResult()
253 case HTTPRequest::kResultConnectionTimeout: in GetPortalResultForRequestResult()
[all …]
Dhttp_request_unittest.cc110 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_)); in SetUp()
158 HTTPRequest* request() { return request_.get(); } in request()
180 EXPECT_EQ(HTTPRequest::kResultUnknown, request_->timeout_result_); in ExpectReset()
200 ExpectSetTimeout(HTTPRequest::kConnectTimeoutSeconds); in ExpectSetConnectTimeout()
203 ExpectSetTimeout(HTTPRequest::kInputTimeoutSeconds); in ExpectSetInputTimeout()
260 void ExpectResultCallback(HTTPRequest::Result result) { in ExpectResultCallback()
263 void InvokeResultVerify(HTTPRequest::Result result, in InvokeResultVerify()
[all …]
Dconnectivity_trial_unittest.cc144 .WillOnce(Return(HTTPRequest::kResultInProgress)); in StartTrialTask()
193 .WillOnce(Return(HTTPRequest::kResultInProgress)); in StartTrial()
267 .WillOnce(Return(HTTPRequest::kResultConnectionFailure)); in TEST_F()
305 .WillOnce(Return(HTTPRequest::kResultConnectionFailure)); in TEST_F()
338 Return(HTTPRequest::kResultInProgress)); in TEST_F()
450 ResultMapping() : http_result(HTTPRequest::kResultUnknown), trial_result() {} in ResultMapping()
451 ResultMapping(HTTPRequest::Result in_http_result, in ResultMapping()
455 HTTPRequest::Result http_result;
475 HTTPRequest::kResultUnknown,
479 HTTPRequest::kResultInProgress,
[all …]
Dhttp_request.h48 class HTTPRequest {
64 HTTPRequest(ConnectionRefPtr connection,
67 virtual ~HTTPRequest();
124 base::WeakPtrFactory<HTTPRequest> weak_ptr_factory_;
144 DISALLOW_COPY_AND_ASSIGN(HTTPRequest);
Dconnectivity_trial.h105 static Result GetPortalResultForRequestResult(HTTPRequest::Result result);
158 void RequestResultCallback(HTTPRequest::Result result,
180 base::Callback<void(HTTPRequest::Result, const ByteString&)>
182 std::unique_ptr<HTTPRequest> request_;
Dmock_http_request.h28 class MockHTTPRequest : public HTTPRequest {
33 MOCK_METHOD3(Start, HTTPRequest::Result(
Dmock_http_request.cc24 : HTTPRequest(connection, nullptr, nullptr) {} in MockHTTPRequest()
Dportal_detector_unittest.cc202 HTTPRequest::kResultConnectionFailure); in TEST_F()
319 HTTPRequest::kResultDNSFailure); in TEST_F()