HomeSort by relevance Sort by last modified time
    Searched refs:ConnectivityTrial (Results 1 - 20 of 20) sorted by null

  /system/connectivity/shill/
mock_connectivity_trial.cc 25 : ConnectivityTrial(connection,
28 base::Callback<void(ConnectivityTrial::Result)>()) {}
connectivity_trial_unittest.cc 73 connectivity_trial_(new ConnectivityTrial(
99 // Delete the ConnectivityTrial while expectations still exist.
115 MOCK_METHOD1(ResultCallback, void(ConnectivityTrial::Result result));
116 Callback<void(ConnectivityTrial::Result)>& result_callback() {
121 Callback<void(ConnectivityTrial::Result)> result_callback_;
149 void ExpectTrialReturn(const ConnectivityTrial::Result& result) {
161 ConnectivityTrial* connectivity_trial() { return connectivity_trial_.get(); }
172 void ExpectTrialRetry(const ConnectivityTrial::Result& result, int delay) {
175 // Expect the ConnectivityTrial to stop the current request.
178 // Expect the ConnectivityTrial to schedule the next attempt
    [all...]
portal_detector_unittest.cc 200 ConnectivityTrial::Result errorResult =
201 ConnectivityTrial::GetPortalResultForRequestResult(
207 ConnectivityTrial::Result(
208 ConnectivityTrial::kPhaseConnection,
209 ConnectivityTrial::kStatusFailure),
289 ConnectivityTrial::Result(
290 ConnectivityTrial::kPhaseDNS,
291 ConnectivityTrial::kStatusFailure),
300 ConnectivityTrial::Result(
301 ConnectivityTrial::kPhaseDNS
    [all...]
connectivity_trial.cc 54 const char ConnectivityTrial::kDefaultURL[] =
56 const char ConnectivityTrial::kResponseExpected[] = "HTTP/?.? 204";
58 ConnectivityTrial::ConnectivityTrial(
69 Bind(&ConnectivityTrial::RequestReadCallback,
72 Bind(&ConnectivityTrial::RequestResultCallback,
76 ConnectivityTrial::~ConnectivityTrial() {
80 bool ConnectivityTrial::Retry(int start_delay_milliseconds) {
90 bool ConnectivityTrial::Start(const string& url_string
    [all...]
connection_tester.cc 57 new ConnectivityTrial(connection_,
70 if (!connectivity_trial_->Start(ConnectivityTrial::kDefaultURL, 0))
71 LOG(ERROR) << StringPrintf("ConnectivityTrial failed to parse default "
72 "URL %s", ConnectivityTrial::kDefaultURL);
80 void ConnectionTester::CompleteTest(ConnectivityTrial::Result result) {
83 ConnectivityTrial::PhaseToString(
85 ConnectivityTrial::StatusToString(
portal_detector.h 51 // This is achieved by using one or more ConnectivityTrial attempts
59 : trial_result(ConnectivityTrial::Result()),
62 explicit Result(ConnectivityTrial::Result result_in)
66 Result(ConnectivityTrial::Result result_in,
73 ConnectivityTrial::Result trial_result;
112 // ConnectivityTrial is in the progress of making attempts. Returns true if
153 // Callback used by ConnectivityTrial to return |result| after attempting to
155 void CompleteAttempt(ConnectivityTrial::Result result);
163 base::Callback<void(ConnectivityTrial::Result)> connectivity_trial_callback_;
166 std::unique_ptr<ConnectivityTrial> connectivity_trial_
    [all...]
mock_connectivity_trial.h 29 class MockConnectivityTrial : public ConnectivityTrial {
connection_tester.h 44 // single ConnectivityTrial attempt.
52 // Start a connectivity test. The Start method creates a ConnectivityTrial
53 // instance and performs a single ConnectivityTrial. The results are logged
58 // ConnectivityTrial. The callback will not be called.
67 // Callback used by ConnectivityTrial to report results.
68 void CompleteTest(ConnectivityTrial::Result result);
74 std::unique_ptr<ConnectivityTrial> connectivity_trial_;
portal_detector.cc 70 new ConnectivityTrial(connection_,
109 // IsInProgress returns true if a ConnectivityTrial is actively testing the
112 // calculating the start time of the next ConnectivityTrial. After an initial
123 void PortalDetector::CompleteAttempt(ConnectivityTrial::Result trial_result) {
125 if (trial_result.status == ConnectivityTrial::kStatusFailure &&
126 trial_result.phase == ConnectivityTrial::kPhaseContent) {
133 ConnectivityTrial::PhaseToString(
135 ConnectivityTrial::StatusToString(
139 if (trial_result.status == ConnectivityTrial::kStatusSuccess ||
connection_tester_unittest.cc 140 ConnectivityTrial::Result result =
141 ConnectivityTrial::Result(ConnectivityTrial::kPhaseContent,
142 ConnectivityTrial::kStatusSuccess);
connectivity_trial.h 42 // The ConnectivityTrial class implements a single portal detection
46 // ConnectivityTrial is responsible for managing the callbacks between the
48 // used to test connectivity. ConnectivityTrial maps between the HTTPRequest
51 // ConnectivityTrial tests the connection by attempting to parse and access a
56 class ConnectivityTrial {
84 ConnectivityTrial(ConnectionRefPtr connection,
88 virtual ~ConnectivityTrial();
102 // ConnectivityTrial::Result with the phase set to
103 // ConnectivityTrial::kPhaseDNS and the status set to
104 // ConnectivityTrial::kStatusFailure
    [all...]
metrics_unittest.cc 391 ConnectivityTrial::Result trial_result(ConnectivityTrial::kPhaseDNS,
392 ConnectivityTrial::kStatusFailure);
398 result.trial_result.phase = ConnectivityTrial::kPhaseDNS;
399 result.trial_result.status = ConnectivityTrial::kStatusTimeout;
403 result.trial_result.phase = ConnectivityTrial::kPhaseConnection;
404 result.trial_result.status = ConnectivityTrial::kStatusFailure;
408 result.trial_result.phase = ConnectivityTrial::kPhaseConnection;
409 result.trial_result.status = ConnectivityTrial::kStatusTimeout;
413 result.trial_result.phase = ConnectivityTrial::kPhaseHTTP
    [all...]
metrics.cc 582 ConnectivityTrial::Result result = portal_result.trial_result;
587 case ConnectivityTrial::kPhaseDNS:
588 if (result.status == ConnectivityTrial::kStatusFailure)
590 else if (result.status == ConnectivityTrial::kStatusTimeout)
597 case ConnectivityTrial::kPhaseConnection:
598 if (result.status == ConnectivityTrial::kStatusFailure)
600 else if (result.status == ConnectivityTrial::kStatusTimeout)
607 case ConnectivityTrial::kPhaseHTTP:
608 if (result.status == ConnectivityTrial::kStatusFailure)
610 else if (result.status == ConnectivityTrial::kStatusTimeout
    [all...]
connection_diagnostics.cc 290 if (result.trial_result.status == ConnectivityTrial::kStatusSuccess) {
292 } else if (result.trial_result.status == ConnectivityTrial::kStatusTimeout) {
299 case ConnectivityTrial::kPhaseContent: {
307 case ConnectivityTrial::kPhaseDNS: {
309 if (result.trial_result.status == ConnectivityTrial::kStatusSuccess) {
314 ConnectivityTrial::kStatusTimeout) {
324 case ConnectivityTrial::kPhaseConnection:
325 case ConnectivityTrial::kPhaseHTTP:
326 case ConnectivityTrial::kPhaseUnknown:
330 if (result.trial_result.status == ConnectivityTrial::kStatusSuccess)
    [all...]
connection_diagnostics_unittest.cc 295 ConnectivityTrial::kPhaseContent,
296 ConnectivityTrial::kStatusSuccess);
303 ConnectivityTrial::kPhaseContent,
304 ConnectivityTrial::kStatusFailure);
310 ConnectivityTrial::kPhaseDNS,
311 ConnectivityTrial::kStatusFailure);
317 ConnectivityTrial::kPhaseDNS,
318 ConnectivityTrial::kStatusTimeout);
325 ConnectivityTrial::kPhaseHTTP,
326 ConnectivityTrial::kStatusFailure)
    [all...]
device_unittest.cc     [all...]
default_profile.cc 154 manager_props->portal_url = ConnectivityTrial::kDefaultURL;
device.cc     [all...]
default_profile_unittest.cc 262 EXPECT_EQ(ConnectivityTrial::kDefaultURL, manager_props.portal_url);
manager_unittest.cc     [all...]

Completed in 374 milliseconds