Lines Matching refs:Cellular
95 device_(new Cellular(&modem_info_, in CellularPropertyTest()
99 Cellular::kTypeCDMA, in CellularPropertyTest()
156 device_(new Cellular(&modem_info_, in CellularTest()
160 Cellular::kTypeGSM, in CellularTest()
180 device_->state_ = Cellular::kStateDisabled; in TearDown()
359 SetCellularType(Cellular::kTypeUniversal); in ExpectDisconnectCapabilityUniversal()
360 device_->state_ = Cellular::kStateConnected; in ExpectDisconnectCapabilityUniversal()
368 EXPECT_EQ(Cellular::kStateRegistered, device_->state_); in VerifyDisconnect()
389 device_->state_ = Cellular::kStateConnected; in FakeUpConnectedPPP()
416 SetCellularType(Cellular::kTypeUniversal); in SetupOnAfterResume()
560 void SetCellularType(Cellular::Type type) { in SetCellularType()
598 SetCellularType(Cellular::kTypeUniversal); in SetCapabilityUniversalActiveBearer()
654 Cellular::GetStateString(Cellular::kStateDisabled)); in TEST_F()
656 Cellular::GetStateString(Cellular::kStateEnabled)); in TEST_F()
658 Cellular::GetStateString(Cellular::kStateRegistered)); in TEST_F()
660 Cellular::GetStateString(Cellular::kStateConnected)); in TEST_F()
662 Cellular::GetStateString(Cellular::kStateLinked)); in TEST_F()
667 Cellular::GetModemStateString(Cellular::kModemStateFailed)); in TEST_F()
669 Cellular::GetModemStateString(Cellular::kModemStateUnknown)); in TEST_F()
671 Cellular::GetModemStateString(Cellular::kModemStateInitializing)); in TEST_F()
673 Cellular::GetModemStateString(Cellular::kModemStateLocked)); in TEST_F()
675 Cellular::GetModemStateString(Cellular::kModemStateDisabled)); in TEST_F()
677 Cellular::GetModemStateString(Cellular::kModemStateDisabling)); in TEST_F()
679 Cellular::GetModemStateString(Cellular::kModemStateEnabling)); in TEST_F()
681 Cellular::GetModemStateString(Cellular::kModemStateEnabled)); in TEST_F()
683 Cellular::GetModemStateString(Cellular::kModemStateSearching)); in TEST_F()
685 Cellular::GetModemStateString(Cellular::kModemStateRegistered)); in TEST_F()
687 Cellular::GetModemStateString(Cellular::kModemStateDisconnecting)); in TEST_F()
689 Cellular::GetModemStateString(Cellular::kModemStateConnecting)); in TEST_F()
691 Cellular::GetModemStateString(Cellular::kModemStateConnected)); in TEST_F()
695 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
703 EXPECT_EQ(Cellular::kStateRegistered, device_->state_); in TEST_F()
753 EXPECT_EQ(Cellular::kStateRegistered, device_->state_); in TEST_F()
764 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
765 device_->set_modem_state(Cellular::kModemStateConnected); in TEST_F()
772 EXPECT_EQ(Cellular::kStateConnected, device_->state_); in TEST_F()
778 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
779 device_->set_modem_state(Cellular::kModemStateConnected); in TEST_F()
790 EXPECT_EQ(Cellular::kStateLinked, device_->state_); in TEST_F()
802 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
813 size_t prefix_len = strlen(Cellular::kGenericServiceNamePrefix); in TEST_F()
814 EXPECT_EQ(Cellular::kGenericServiceNamePrefix, in TEST_F()
1074 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
1150 device_->state_ = Cellular::kStateConnected; in TEST_F()
1155 device_->state_ = Cellular::kStateLinked; in TEST_F()
1159 device_->state_ = Cellular::kStateEnabled; in TEST_F()
1164 device_->state_ = Cellular::kStateDisabled; in TEST_F()
1168 device_->state_ = Cellular::kStateRegistered; in TEST_F()
1184 device_->state_ = Cellular::kStateRegistered; in TEST_F()
1188 EXPECT_EQ(Cellular::kStateConnected, device_->state_); in TEST_F()
1192 device_->state_ = Cellular::kStateRegistered; in TEST_F()
1196 EXPECT_EQ(Cellular::kStateConnected, device_->state_); in TEST_F()
1201 device_->state_ = Cellular::kStateRegistered; in TEST_F()
1206 device_->state_ = Cellular::kStateConnected; in TEST_F()
1213 EXPECT_EQ(Cellular::kStateRegistered, device_->state_); in TEST_F()
1220 device_->state_ = Cellular::kStateConnected; in TEST_F()
1226 device_->modem_state_ = Cellular::kModemStateDisconnecting; in TEST_F()
1229 EXPECT_EQ(Cellular::kStateConnected, device_->state_); in TEST_F()
1231 device_->modem_state_ = Cellular::kModemStateConnected; in TEST_F()
1234 EXPECT_EQ(Cellular::kStateRegistered, device_->state_); in TEST_F()
1238 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
1239 device_->state_ = Cellular::kStateRegistered; in TEST_F()
1255 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
1256 device_->state_ = Cellular::kStateRegistered; in TEST_F()
1271 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
1272 device_->state_ = Cellular::kStateRegistered; in TEST_F()
1287 device_->state_ = Cellular::kStateLinked; in TEST_F()
1290 EXPECT_EQ(device_->state_, Cellular::kStateConnected); in TEST_F()
1314 device_->state_ = Cellular::kStateDisabled; in TEST_F()
1315 device_->set_modem_state(Cellular::kModemStateDisabled); in TEST_F()
1316 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
1323 EXPECT_EQ(Cellular::kModemStateEnabled, device_->modem_state()); in TEST_F()
1324 EXPECT_EQ(Cellular::kStateEnabled, device_->state()); in TEST_F()
1338 device_->state_ = Cellular::kStateEnabled; in TEST_F()
1339 device_->set_modem_state(Cellular::kModemStateEnabled); in TEST_F()
1340 SetCellularType(Cellular::kTypeCDMA); in TEST_F()
1348 EXPECT_EQ(Cellular::kModemStateDisabled, device_->modem_state()); in TEST_F()
1349 EXPECT_EQ(Cellular::kStateDisabled, device_->state()); in TEST_F()
1359 device_->state_ = Cellular::kStateDisabled; in TEST_F()
1360 device_->modem_state_ = Cellular::kModemStateEnabling; in TEST_F()
1361 device_->OnModemStateChanged(Cellular::kModemStateConnected); in TEST_F()
1363 EXPECT_EQ(Cellular::kStateDisabled, device_->state()); in TEST_F()
1367 device_->state_ = Cellular::kStateEnabled; in TEST_F()
1368 device_->modem_state_ = Cellular::kModemStateConnecting; in TEST_F()
1370 device_->OnModemStateChanged(Cellular::kModemStateConnected); in TEST_F()
1371 EXPECT_EQ(Cellular::kStateConnected, device_->state()); in TEST_F()
1375 SetCellularType(Cellular::kTypeUniversal); in TEST_F()
1379 device_->set_modem_state(Cellular::kModemStateRegistered); in TEST_F()
1380 device_->OnModemStateChanged(Cellular::kModemStateEnabled); in TEST_F()
1386 EXPECT_EQ(device_->state_, Cellular::kStateDisabled); in TEST_F()
1390 EXPECT_EQ(device_->state_, Cellular::kStateEnabled); in TEST_F()
1395 EXPECT_EQ(device_->state_, Cellular::kStateDisabled); in TEST_F()
1399 EXPECT_EQ(device_->state_, Cellular::kStateDisabled); in TEST_F()
1408 EXPECT_EQ(device_->state_, Cellular::kStateDisabled); in TEST_F()
1418 EXPECT_EQ(device_->state_, Cellular::kStateDisabled); in TEST_F()
1451 device_->state_ = Cellular::kStateConnected; in TEST_F()
1460 device_->state_ = Cellular::kStateConnected; in TEST_F()
1484 device_->state_ = Cellular::kStateLinked; in TEST_F()
1493 EXPECT_EQ(Cellular::kStateLinked, device_->state()); in TEST_F()
1767 EXPECT_EQ(Cellular::kStateDisabled, device_->state_); in TEST_F()
1774 EXPECT_EQ(Cellular::kStateDisabled, device_->state_); in TEST_F()
1790 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); in TEST_F()
1797 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); // changes on completion in TEST_F()
1803 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); in TEST_F()
1813 EXPECT_EQ(Cellular::kStateDisabled, device_->state_); in TEST_F()
1832 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); in TEST_F()
1838 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); // changes on completion in TEST_F()
1850 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); // disable still pending in TEST_F()
1854 EXPECT_EQ(Cellular::kStateDisabled, device_->state_); // by OnAfterResume in TEST_F()
1859 Cellular::kModemStateDisabled); in TEST_F()
1871 EXPECT_EQ(Cellular::kStateDisabled, device_->state_); in TEST_F()
1878 EXPECT_EQ(Cellular::kStateDisabled, device_->state_); in TEST_F()
1904 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); in TEST_F()
1914 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); // changes on completion in TEST_F()
1940 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); // disable still pending in TEST_F()
1946 EXPECT_EQ(Cellular::kStateDisabled, device_->state_); // by OnAfterResume in TEST_F()
1959 Cellular::kModemStateEnabled); in TEST_F()
1969 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); in TEST_F()
1978 EXPECT_EQ(Cellular::kStateDisabled, device_->state_); in TEST_F()
1992 EXPECT_EQ(Cellular::kStateEnabled, device_->state_); in TEST_F()
2076 device_->state_ = Cellular::kStateConnected; in TEST_F()
2097 device_->state_ = Cellular::kStateConnected; in TEST_F()
2129 device_->state_ = Cellular::kStateConnected; in TEST_F()