Searched refs:HTTPRequest (Results 1 – 9 of 9) sorted by relevance
/system/connectivity/shill/ |
D | http_request.cc | 47 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 …]
|
D | connectivity_trial.cc | 101 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 …]
|
D | http_request_unittest.cc | 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_)); 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 …]
|
D | connectivity_trial_unittest.cc | 144 .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 …]
|
D | http_request.h | 48 class HTTPRequest { 64 HTTPRequest(ConnectionRefPtr connection, 67 virtual ~HTTPRequest(); 124 base::WeakPtrFactory<HTTPRequest> weak_ptr_factory_; 144 DISALLOW_COPY_AND_ASSIGN(HTTPRequest);
|
D | connectivity_trial.h | 105 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_;
|
D | mock_http_request.h | 28 class MockHTTPRequest : public HTTPRequest { 33 MOCK_METHOD3(Start, HTTPRequest::Result(
|
D | mock_http_request.cc | 24 : HTTPRequest(connection, nullptr, nullptr) {} in MockHTTPRequest()
|
D | portal_detector_unittest.cc | 202 HTTPRequest::kResultConnectionFailure); in TEST_F() 319 HTTPRequest::kResultDNSFailure); in TEST_F()
|