/system/connectivity/shill/ |
D | connectivity_trial_unittest.cc | 73 connectivity_trial_(new ConnectivityTrial( in ConnectivityTrialTest() 115 MOCK_METHOD1(ResultCallback, void(ConnectivityTrial::Result result)); 116 Callback<void(ConnectivityTrial::Result)>& result_callback() { in result_callback() 121 Callback<void(ConnectivityTrial::Result)> result_callback_; 149 void ExpectTrialReturn(const ConnectivityTrial::Result& result) { in ExpectTrialReturn() 161 ConnectivityTrial* connectivity_trial() { return connectivity_trial_.get(); } in connectivity_trial() 172 void ExpectTrialRetry(const ConnectivityTrial::Result& result, int delay) { in ExpectTrialRetry() 216 unique_ptr<ConnectivityTrial> connectivity_trial_; 256 ConnectivityTrial::Result(ConnectivityTrial::kPhaseContent, in TEST_F() 257 ConnectivityTrial::kStatusFailure)); in TEST_F() [all …]
|
D | connectivity_trial.cc | 54 const char ConnectivityTrial::kDefaultURL[] = 56 const char ConnectivityTrial::kResponseExpected[] = "HTTP/?.? 204"; 58 ConnectivityTrial::ConnectivityTrial( in ConnectivityTrial() function in shill::ConnectivityTrial 69 Bind(&ConnectivityTrial::RequestReadCallback, in ConnectivityTrial() 72 Bind(&ConnectivityTrial::RequestResultCallback, in ConnectivityTrial() 76 ConnectivityTrial::~ConnectivityTrial() { in ~ConnectivityTrial() 80 bool ConnectivityTrial::Retry(int start_delay_milliseconds) { in Retry() 90 bool ConnectivityTrial::Start(const string& url_string, in Start() 107 void ConnectivityTrial::Stop() { in Stop() 117 void ConnectivityTrial::StartTrialAfterDelay(int start_delay_milliseconds) { in StartTrialAfterDelay() [all …]
|
D | portal_detector_unittest.cc | 200 ConnectivityTrial::Result errorResult = in TEST_F() 201 ConnectivityTrial::GetPortalResultForRequestResult( in TEST_F() 207 ConnectivityTrial::Result( in TEST_F() 208 ConnectivityTrial::kPhaseConnection, in TEST_F() 209 ConnectivityTrial::kStatusFailure), in TEST_F() 289 ConnectivityTrial::Result( in TEST_F() 290 ConnectivityTrial::kPhaseDNS, in TEST_F() 291 ConnectivityTrial::kStatusFailure), in TEST_F() 300 ConnectivityTrial::Result( in TEST_F() 301 ConnectivityTrial::kPhaseDNS, in TEST_F() [all …]
|
D | connection_tester.cc | 57 new ConnectivityTrial(connection_, in ConnectionTester() 70 if (!connectivity_trial_->Start(ConnectivityTrial::kDefaultURL, 0)) in Start() 72 "URL %s", ConnectivityTrial::kDefaultURL); in Start() 80 void ConnectionTester::CompleteTest(ConnectivityTrial::Result result) { in CompleteTest() 83 ConnectivityTrial::PhaseToString( in CompleteTest() 85 ConnectivityTrial::StatusToString( in CompleteTest()
|
D | portal_detector.h | 59 : trial_result(ConnectivityTrial::Result()), in Result() 62 explicit Result(ConnectivityTrial::Result result_in) in Result() 66 Result(ConnectivityTrial::Result result_in, in Result() 73 ConnectivityTrial::Result trial_result; 155 void CompleteAttempt(ConnectivityTrial::Result result); 163 base::Callback<void(ConnectivityTrial::Result)> connectivity_trial_callback_; 166 std::unique_ptr<ConnectivityTrial> connectivity_trial_;
|
D | portal_detector.cc | 70 new ConnectivityTrial(connection_, 123 void PortalDetector::CompleteAttempt(ConnectivityTrial::Result trial_result) { in CompleteAttempt() 125 if (trial_result.status == ConnectivityTrial::kStatusFailure && in CompleteAttempt() 126 trial_result.phase == ConnectivityTrial::kPhaseContent) { in CompleteAttempt() 133 ConnectivityTrial::PhaseToString( in CompleteAttempt() 135 ConnectivityTrial::StatusToString( in CompleteAttempt() 139 if (trial_result.status == ConnectivityTrial::kStatusSuccess || in CompleteAttempt()
|
D | metrics_unittest.cc | 391 ConnectivityTrial::Result trial_result(ConnectivityTrial::kPhaseDNS, in TEST_F() 392 ConnectivityTrial::kStatusFailure); in TEST_F() 398 result.trial_result.phase = ConnectivityTrial::kPhaseDNS; in TEST_F() 399 result.trial_result.status = ConnectivityTrial::kStatusTimeout; in TEST_F() 403 result.trial_result.phase = ConnectivityTrial::kPhaseConnection; in TEST_F() 404 result.trial_result.status = ConnectivityTrial::kStatusFailure; in TEST_F() 408 result.trial_result.phase = ConnectivityTrial::kPhaseConnection; in TEST_F() 409 result.trial_result.status = ConnectivityTrial::kStatusTimeout; in TEST_F() 413 result.trial_result.phase = ConnectivityTrial::kPhaseHTTP; in TEST_F() 414 result.trial_result.status = ConnectivityTrial::kStatusFailure; in TEST_F() [all …]
|
D | connectivity_trial.h | 56 class ConnectivityTrial { 84 ConnectivityTrial(ConnectionRefPtr connection, 88 virtual ~ConnectivityTrial(); 178 base::WeakPtrFactory<ConnectivityTrial> weak_ptr_factory_;
|
D | mock_connectivity_trial.cc | 25 : ConnectivityTrial(connection, in MockConnectivityTrial() 28 base::Callback<void(ConnectivityTrial::Result)>()) {} in MockConnectivityTrial()
|
D | connection_tester_unittest.cc | 140 ConnectivityTrial::Result result = in TEST_F() 141 ConnectivityTrial::Result(ConnectivityTrial::kPhaseContent, in TEST_F() 142 ConnectivityTrial::kStatusSuccess); in TEST_F()
|
D | connection_tester.h | 68 void CompleteTest(ConnectivityTrial::Result result); 74 std::unique_ptr<ConnectivityTrial> connectivity_trial_;
|
D | connection_diagnostics.cc | 290 if (result.trial_result.status == ConnectivityTrial::kStatusSuccess) { in StartAfterPortalDetectionInternal() 292 } else if (result.trial_result.status == ConnectivityTrial::kStatusTimeout) { in StartAfterPortalDetectionInternal() 299 case ConnectivityTrial::kPhaseContent: { in StartAfterPortalDetectionInternal() 307 case ConnectivityTrial::kPhaseDNS: { in StartAfterPortalDetectionInternal() 309 if (result.trial_result.status == ConnectivityTrial::kStatusSuccess) { in StartAfterPortalDetectionInternal() 314 ConnectivityTrial::kStatusTimeout) { in StartAfterPortalDetectionInternal() 324 case ConnectivityTrial::kPhaseConnection: in StartAfterPortalDetectionInternal() 325 case ConnectivityTrial::kPhaseHTTP: in StartAfterPortalDetectionInternal() 326 case ConnectivityTrial::kPhaseUnknown: in StartAfterPortalDetectionInternal() 330 if (result.trial_result.status == ConnectivityTrial::kStatusSuccess) { in StartAfterPortalDetectionInternal()
|
D | metrics.cc | 582 ConnectivityTrial::Result result = portal_result.trial_result; in PortalDetectionResultToEnum() 587 case ConnectivityTrial::kPhaseDNS: in PortalDetectionResultToEnum() 588 if (result.status == ConnectivityTrial::kStatusFailure) in PortalDetectionResultToEnum() 590 else if (result.status == ConnectivityTrial::kStatusTimeout) in PortalDetectionResultToEnum() 597 case ConnectivityTrial::kPhaseConnection: in PortalDetectionResultToEnum() 598 if (result.status == ConnectivityTrial::kStatusFailure) in PortalDetectionResultToEnum() 600 else if (result.status == ConnectivityTrial::kStatusTimeout) in PortalDetectionResultToEnum() 607 case ConnectivityTrial::kPhaseHTTP: in PortalDetectionResultToEnum() 608 if (result.status == ConnectivityTrial::kStatusFailure) in PortalDetectionResultToEnum() 610 else if (result.status == ConnectivityTrial::kStatusTimeout) in PortalDetectionResultToEnum() [all …]
|
D | mock_connectivity_trial.h | 29 class MockConnectivityTrial : public ConnectivityTrial {
|
D | connection_diagnostics_unittest.cc | 295 ConnectivityTrial::kPhaseContent, in ExpectPortalDetectionEndContentPhaseSuccess() 296 ConnectivityTrial::kStatusSuccess); in ExpectPortalDetectionEndContentPhaseSuccess() 303 ConnectivityTrial::kPhaseContent, in ExpectPortalDetectionEndContentPhaseFailure() 304 ConnectivityTrial::kStatusFailure); in ExpectPortalDetectionEndContentPhaseFailure() 310 ConnectivityTrial::kPhaseDNS, in ExpectPortalDetectionEndDNSPhaseFailure() 311 ConnectivityTrial::kStatusFailure); in ExpectPortalDetectionEndDNSPhaseFailure() 317 ConnectivityTrial::kPhaseDNS, in ExpectPortalDetectionEndDNSPhaseTimeout() 318 ConnectivityTrial::kStatusTimeout); in ExpectPortalDetectionEndDNSPhaseTimeout() 325 ConnectivityTrial::kPhaseHTTP, in ExpectPortalDetectionEndHTTPPhaseFailure() 326 ConnectivityTrial::kStatusFailure); in ExpectPortalDetectionEndHTTPPhaseFailure() [all …]
|
D | device_unittest.cc | 2030 const string portal_url(ConnectivityTrial::kDefaultURL); in TEST_F() 2061 const string portal_url(ConnectivityTrial::kDefaultURL); in TEST_F() 2088 ConnectivityTrial::Result( in TEST_F() 2089 ConnectivityTrial::kPhaseUnknown, in TEST_F() 2090 ConnectivityTrial::kStatusFailure), in TEST_F() 2104 ConnectivityTrial::Result(ConnectivityTrial::kPhaseConnection, in TEST_F() 2105 ConnectivityTrial::kStatusFailure), in TEST_F() 2155 ConnectivityTrial::Result( in TEST_F() 2156 ConnectivityTrial::kPhaseContent, in TEST_F() 2157 ConnectivityTrial::kStatusSuccess), in TEST_F() [all …]
|
D | default_profile.cc | 154 manager_props->portal_url = ConnectivityTrial::kDefaultURL; in LoadManagerProperties()
|
D | device.cc | 1659 << ConnectivityTrial::StatusToString( in PortalDetectorCallback() 1666 << ConnectivityTrial::StatusToString( in PortalDetectorCallback() 1678 if (result.trial_result.status == ConnectivityTrial::kStatusSuccess) { in PortalDetectorCallback() 1692 ConnectivityTrial::PhaseToString(result.trial_result.phase), in PortalDetectorCallback() 1693 ConnectivityTrial::StatusToString(result.trial_result.status)); in PortalDetectorCallback()
|
D | default_profile_unittest.cc | 262 EXPECT_EQ(ConnectivityTrial::kDefaultURL, manager_props.portal_url); in TEST_F()
|
D | manager_unittest.cc | 4498 EXPECT_EQ(ConnectivityTrial::kDefaultURL, in TEST_F()
|