Lines Matching refs:ConnectivityTrial
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.
216 unique_ptr<ConnectivityTrial> connectivity_trial_;
256 ConnectivityTrial::Result(ConnectivityTrial::kPhaseContent,
257 ConnectivityTrial::kStatusFailure));
271 ConnectivityTrial::Result(
272 ConnectivityTrial::kPhaseConnection,
273 ConnectivityTrial::kStatusFailure))))
331 // Expect ConnectivityTrial to immediately post a task for the each attempt.
347 ConnectivityTrial::Result(
348 ConnectivityTrial::kPhaseContent,
349 ConnectivityTrial::kStatusFailure))))
352 // Expect the ConnectivityTrial to stop the current request each time, plus
353 // an extra time in ConnectivityTrial::Stop().
373 ExpectTrialReturn(ConnectivityTrial::Result(
374 ConnectivityTrial::kPhaseContent,
375 ConnectivityTrial::kStatusFailure));
385 ExpectTrialReturn(ConnectivityTrial::Result(
386 ConnectivityTrial::kPhaseUnknown,
387 ConnectivityTrial::kStatusTimeout));
402 const string response_expected(ConnectivityTrial::kResponseExpected);
406 ExpectTrialReturn(ConnectivityTrial::Result(
407 ConnectivityTrial::kPhaseContent,
408 ConnectivityTrial::kStatusTimeout));
417 const string response_expected(ConnectivityTrial::kResponseExpected);
427 ExpectTrialReturn(ConnectivityTrial::Result(
428 ConnectivityTrial::kPhaseContent,
429 ConnectivityTrial::kStatusSuccess));
442 ExpectTrialReturn(ConnectivityTrial::Result(
443 ConnectivityTrial::kPhaseContent,
444 ConnectivityTrial::kStatusSuccess));
452 const ConnectivityTrial::Result& in_trial_result)
456 ConnectivityTrial::Result trial_result;
463 ConnectivityTrial::Result trial_result =
464 ConnectivityTrial::GetPortalResultForRequestResult(
476 ConnectivityTrial::Result(ConnectivityTrial::kPhaseUnknown,
477 ConnectivityTrial::kStatusFailure)),
480 ConnectivityTrial::Result(ConnectivityTrial::kPhaseUnknown,
481 ConnectivityTrial::kStatusFailure)),
484 ConnectivityTrial::Result(ConnectivityTrial::kPhaseDNS,
485 ConnectivityTrial::kStatusFailure)),
488 ConnectivityTrial::Result(ConnectivityTrial::kPhaseDNS,
489 ConnectivityTrial::kStatusTimeout)),
492 ConnectivityTrial::Result(ConnectivityTrial::kPhaseConnection,
493 ConnectivityTrial::kStatusFailure)),
496 ConnectivityTrial::Result(ConnectivityTrial::kPhaseConnection,
497 ConnectivityTrial::kStatusTimeout)),
500 ConnectivityTrial::Result(ConnectivityTrial::kPhaseHTTP,
501 ConnectivityTrial::kStatusFailure)),
504 ConnectivityTrial::Result(ConnectivityTrial::kPhaseHTTP,
505 ConnectivityTrial::kStatusTimeout)),
508 ConnectivityTrial::Result(ConnectivityTrial::kPhaseHTTP,
509 ConnectivityTrial::kStatusFailure)),
512 ConnectivityTrial::Result(ConnectivityTrial::kPhaseHTTP,
513 ConnectivityTrial::kStatusTimeout)),
516 ConnectivityTrial::Result(ConnectivityTrial::kPhaseContent,
517 ConnectivityTrial::kStatusFailure))));