Lines Matching defs:reason
338 const char* reason = nullptr;
345 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
346 EXPECT_STREQ(CellularService::kAutoConnDeviceDisabled, reason);
352 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
358 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
367 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
369 reason);
377 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
378 EXPECT_STREQ(CellularService::kAutoConnOutOfCredits, reason);
387 EXPECT_TRUE(service_->IsAutoConnectable(&reason));
390 EXPECT_TRUE(service_->IsAutoConnectable(&reason));
393 EXPECT_TRUE(service_->IsAutoConnectable(&reason));
397 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
401 EXPECT_TRUE(service_->IsAutoConnectable(&reason));
406 EXPECT_TRUE(service_->IsAutoConnectable(&reason));
412 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
413 EXPECT_STREQ(Service::kAutoConnExplicitDisconnect, reason);
421 EXPECT_TRUE(service_->IsAutoConnectable(&reason));
425 EXPECT_TRUE(service_->IsAutoConnectable(&reason));
429 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
431 EXPECT_TRUE(service_->IsAutoConnectable(&reason));
434 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
435 EXPECT_STREQ(Service::kAutoConnConnected, reason);
438 EXPECT_FALSE(service_->IsAutoConnectable(&reason));
439 EXPECT_STREQ(Service::kAutoConnConnecting, reason);