Lines Matching refs:CellularDataTest
115 class CellularDataTest : public testing::Test { class
150 bool CellularDataTest::HasSimCard(const int32_t slotId) in HasSimCard()
157 void CellularDataTest::TearDownTestCase() in TearDownTestCase()
183 void CellularDataTest::SetUp() {} in SetUp()
185 void CellularDataTest::TearDown() {} in TearDown()
187 void CellularDataTest::SetUpTestCase() in SetUpTestCase()
213 void CellularDataTest::WaitTestTimeout(const int32_t status) in WaitTestTimeout()
225 string CellularDataTest::GetCmdResult() in GetCmdResult()
246 int32_t CellularDataTest::PingTest() in PingTest()
260 int32_t CellularDataTest::IsCellularDataRoamingEnabledTest(int32_t slotId, bool &dataRoamingEnabled) in IsCellularDataRoamingEnabledTest()
265 int32_t CellularDataTest::IsCellularDataEnabledTest(bool &dataEnabled) in IsCellularDataEnabledTest()
270 int32_t CellularDataTest::EnableCellularDataTest(bool enable) in EnableCellularDataTest()
275 int32_t CellularDataTest::EnableIntelligenceSwitchTest(bool enable) in EnableIntelligenceSwitchTest()
280 int32_t CellularDataTest::GetCellularDataStateTest() in GetCellularDataStateTest()
285 int32_t CellularDataTest::GetIntelligenceSwitchStateTest(bool &state) in GetIntelligenceSwitchStateTest()
290 int32_t CellularDataTest::EnableCellularDataRoamingTest(int32_t slotId, bool enable) in EnableCellularDataRoamingTest()
295 int32_t CellularDataTest::GetDefaultCellularDataSlotIdTest() in GetDefaultCellularDataSlotIdTest()
300 int32_t CellularDataTest::GetDefaultCellularDataSimIdTest() in GetDefaultCellularDataSimIdTest()
306 int32_t CellularDataTest::SetDefaultCellularDataSlotIdTest(int32_t slotId) in SetDefaultCellularDataSlotIdTest()
311 int32_t CellularDataTest::GetCellularDataFlowTypeTest() in GetCellularDataFlowTypeTest()
316 int32_t CellularDataTest::HasInternetCapability(int32_t slotId, int32_t cid) in HasInternetCapability()
322 int32_t CellularDataTest::ClearCellularDataConnections(int32_t slotId) in ClearCellularDataConnections()
328 int32_t CellularDataTest::ClearAllConnections(int32_t slotId, DisConnectionReason reason) in ClearAllConnections()
333 int32_t CellularDataTest::GetApnState(int32_t slotId, const std::string &apnTyp) in GetApnState()
338 int32_t CellularDataTest::GetDataRecoveryState() in GetDataRecoveryState()
343 int32_t CellularDataTest::GetDataConnApnAttr(int32_t slotId, ApnItem::Attribute &apnAttr) in GetDataConnApnAttr()
348 int32_t CellularDataTest::GetDataConnIpType(int32_t slotId, std::string &ipType) in GetDataConnIpType()
353 int32_t CellularDataTest::IsNeedDoRecovery(int32_t slotId, bool needDoRecovery) in IsNeedDoRecovery()
358 int32_t CellularDataTest::InitCellularDataController(int32_t slotId) in InitCellularDataController()
368 HWTEST_F(CellularDataTest, IsCellularDataEnabled_Test, TestSize.Level1)
372 CellularDataTest::IsCellularDataEnabledTest(dataEnabled);
381 HWTEST_F(CellularDataTest, DefaultCellularDataSlotId_Test, TestSize.Level2)
387 int32_t result = CellularDataTest::GetDefaultCellularDataSlotIdTest();
391 result = CellularDataTest::SetDefaultCellularDataSlotIdTest(DEFAULT_SIM_SLOT_ID);
394 result = CellularDataTest::SetDefaultCellularDataSlotIdTest(DEFAULT_SIM_SLOT_ID - 1);
396 result = CellularDataTest::SetDefaultCellularDataSlotIdTest(DATA_SLOT_ID_INVALID);
405 HWTEST_F(CellularDataTest, DefaultCellularDataSimId_Test, TestSize.Level2)
410 int32_t result = CellularDataTest::GetDefaultCellularDataSimIdTest();
419 HWTEST_F(CellularDataTest, DefaultCellularDataSlotId_Test_01, TestSize.Level2)
425 int32_t result = CellularDataTest::GetDefaultCellularDataSlotIdTest();
429 result = CellularDataTest::SetDefaultCellularDataSlotIdTest(SIM_SLOT_ID_1);
431 result = CellularDataTest::SetDefaultCellularDataSlotIdTest(DATA_SLOT_ID_INVALID);
440 HWTEST_F(CellularDataTest, EnableCellularData_Test_01, TestSize.Level2)
446 CellularDataTest::SetDefaultCellularDataSlotIdTest(DEFAULT_SIM_SLOT_ID);
447 CellularDataTest::EnableCellularDataTest(false);
450 int32_t result = CellularDataTest::EnableCellularDataTest(true);
455 int32_t pingResult = CellularDataTest::PingTest();
457 CellularDataTest::EnableCellularDataTest(false);
461 pingResult = CellularDataTest::PingTest();
470 HWTEST_F(CellularDataTest, EnableCellularData_Test_02, TestSize.Level2)
476 CellularDataTest::SetDefaultCellularDataSlotIdTest(SIM_SLOT_ID_1);
477 CellularDataTest::EnableCellularDataTest(false);
480 int32_t result = CellularDataTest::EnableCellularDataTest(true);
485 int32_t pingResult = CellularDataTest::PingTest();
487 CellularDataTest::EnableCellularDataTest(false);
491 pingResult = CellularDataTest::PingTest();
500 HWTEST_F(CellularDataTest, DataRoamingState_ValidSlot_Test_01, TestSize.Level3)
506 CellularDataTest::SetDefaultCellularDataSlotIdTest(DEFAULT_SIM_SLOT_ID);
507 int32_t disabled = CellularDataTest::EnableCellularDataTest(false);
512 int32_t enabled = CellularDataTest::EnableCellularDataRoamingTest(DEFAULT_SIM_SLOT_ID, true);
515 CellularDataTest::IsCellularDataRoamingEnabledTest(DEFAULT_SIM_SLOT_ID, dataRoamingEnabled);
518 int32_t enable = CellularDataTest::EnableCellularDataRoamingTest(DEFAULT_SIM_SLOT_ID, false);
520 CellularDataTest::IsCellularDataRoamingEnabledTest(DEFAULT_SIM_SLOT_ID, dataRoamingEnabled);
524 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, true);
526 …int32_t result = CellularDataTest::IsCellularDataRoamingEnabledTest(DATA_SLOT_ID_INVALID, dataRoam…
528 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, false);
531 …result = CellularDataTest::IsCellularDataRoamingEnabledTest(DATA_SLOT_ID_INVALID, dataRoamingEnabl…
540 HWTEST_F(CellularDataTest, DataRoamingState_ValidSlot_Test_02, TestSize.Level3)
546 CellularDataTest::SetDefaultCellularDataSlotIdTest(SIM_SLOT_ID_1);
547 int32_t disabled = CellularDataTest::EnableCellularDataTest(false);
552 int32_t enabled = CellularDataTest::EnableCellularDataRoamingTest(SIM_SLOT_ID_1, true);
555 CellularDataTest::IsCellularDataRoamingEnabledTest(SIM_SLOT_ID_1, dataRoamingEnabled);
558 int32_t enable = CellularDataTest::EnableCellularDataRoamingTest(SIM_SLOT_ID_1, false);
560 CellularDataTest::IsCellularDataRoamingEnabledTest(SIM_SLOT_ID_1, dataRoamingEnabled);
564 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, true);
566 …int32_t result = CellularDataTest::IsCellularDataRoamingEnabledTest(DATA_SLOT_ID_INVALID, dataRoam…
568 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, false);
571 …result = CellularDataTest::IsCellularDataRoamingEnabledTest(DATA_SLOT_ID_INVALID, dataRoamingEnabl…
580 HWTEST_F(CellularDataTest, EnableCellularDataRoaming_ValidSlot_Test_01, TestSize.Level3)
586 CellularDataTest::SetDefaultCellularDataSlotIdTest(DEFAULT_SIM_SLOT_ID);
587 int32_t disabled = CellularDataTest::EnableCellularDataTest(false);
592 CellularDataTest::IsCellularDataRoamingEnabledTest(DEFAULT_SIM_SLOT_ID, dataRoamingEnabled);
594 … int32_t result = CellularDataTest::EnableCellularDataRoamingTest(DEFAULT_SIM_SLOT_ID, false);
597 int32_t result = CellularDataTest::EnableCellularDataRoamingTest(DEFAULT_SIM_SLOT_ID, true);
601 CellularDataTest::IsCellularDataRoamingEnabledTest(DEFAULT_SIM_SLOT_ID, dataRoamingEnabled);
603 … int32_t result = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, false);
606 … int32_t result = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, true);
616 HWTEST_F(CellularDataTest, EnableCellularDataRoaming_ValidSlot_Test_02, TestSize.Level3)
622 CellularDataTest::SetDefaultCellularDataSlotIdTest(SIM_SLOT_ID_1);
623 int32_t disabled = CellularDataTest::EnableCellularDataTest(false);
628 CellularDataTest::IsCellularDataRoamingEnabledTest(SIM_SLOT_ID_1, dataRoamingEnabled);
630 int32_t result = CellularDataTest::EnableCellularDataRoamingTest(SIM_SLOT_ID_1, false);
633 int32_t result = CellularDataTest::EnableCellularDataRoamingTest(SIM_SLOT_ID_1, true);
637 CellularDataTest::IsCellularDataRoamingEnabledTest(SIM_SLOT_ID_1, dataRoamingEnabled);
639 … int32_t result = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, false);
642 … int32_t result = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, true);
652 HWTEST_F(CellularDataTest, GetCellularDataState_ValidityTest_01, TestSize.Level3)
658 CellularDataTest::SetDefaultCellularDataSlotIdTest(DEFAULT_SIM_SLOT_ID);
660 CellularDataTest::IsCellularDataEnabledTest(dataEnabled);
662 CellularDataTest::EnableCellularDataTest(false);
665 CellularDataTest::EnableCellularDataTest(true);
667 int32_t result = CellularDataTest::GetCellularDataStateTest();
670 CellularDataTest::EnableCellularDataTest(true);
673 CellularDataTest::EnableCellularDataTest(false);
675 int32_t result = CellularDataTest::GetCellularDataStateTest();
678 CellularDataTest::EnableCellularDataTest(false);
687 HWTEST_F(CellularDataTest, GetCellularDataState_ValidityTest_02, TestSize.Level3)
693 CellularDataTest::SetDefaultCellularDataSlotIdTest(SIM_SLOT_ID_1);
695 CellularDataTest::IsCellularDataEnabledTest(dataEnabled);
697 CellularDataTest::EnableCellularDataTest(false);
700 CellularDataTest::EnableCellularDataTest(true);
702 int32_t result = CellularDataTest::GetCellularDataStateTest();
705 CellularDataTest::EnableCellularDataTest(true);
708 CellularDataTest::EnableCellularDataTest(false);
710 int32_t result = CellularDataTest::GetCellularDataStateTest();
713 CellularDataTest::EnableCellularDataTest(false);
722 HWTEST_F(CellularDataTest, DataRoamingState_InValidSlot_Test_01, TestSize.Level3)
729 int32_t enable = CellularDataTest::EnableCellularDataRoamingTest(DEFAULT_SIM_SLOT_ID - 1, true);
732 …int32_t result = CellularDataTest::IsCellularDataRoamingEnabledTest(DEFAULT_SIM_SLOT_ID - 1, dataR…
734 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, true);
736 …result = CellularDataTest::IsCellularDataRoamingEnabledTest(DATA_SLOT_ID_INVALID, dataRoamingEnabl…
739 enable = CellularDataTest::EnableCellularDataRoamingTest(DEFAULT_SIM_SLOT_ID - 1, false);
741 …result = CellularDataTest::IsCellularDataRoamingEnabledTest(DEFAULT_SIM_SLOT_ID - 1, dataRoamingEn…
743 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, false);
745 …result = CellularDataTest::IsCellularDataRoamingEnabledTest(DATA_SLOT_ID_INVALID, dataRoamingEnabl…
754 HWTEST_F(CellularDataTest, DataFlowType_Test_01, TestSize.Level3)
760 CellularDataTest::SetDefaultCellularDataSlotIdTest(DEFAULT_SIM_SLOT_ID);
761 CellularDataTest::EnableCellularDataTest(false);
765 CellularDataTest::EnableCellularDataTest(true);
769 int32_t pingResult = CellularDataTest::PingTest();
771 int32_t dataFlowType = CellularDataTest::GetCellularDataFlowTypeTest();
774 CellularDataTest::EnableCellularDataTest(false);
778 pingResult = CellularDataTest::PingTest();
780 dataFlowType = CellularDataTest::GetCellularDataFlowTypeTest();
789 HWTEST_F(CellularDataTest, DataFlowType_Test_02, TestSize.Level3)
795 CellularDataTest::SetDefaultCellularDataSlotIdTest(SIM_SLOT_ID_1);
796 CellularDataTest::EnableCellularDataTest(false);
800 CellularDataTest::EnableCellularDataTest(true);
804 int32_t pingResult = CellularDataTest::PingTest();
806 int32_t dataFlowType = CellularDataTest::GetCellularDataFlowTypeTest();
809 CellularDataTest::EnableCellularDataTest(false);
813 pingResult = CellularDataTest::PingTest();
815 dataFlowType = CellularDataTest::GetCellularDataFlowTypeTest();
824 HWTEST_F(CellularDataTest, MmsApn_Test_01, TestSize.Level3)
872 HWTEST_F(CellularDataTest, MmsApn_Test_02, TestSize.Level3)
920 HWTEST_F(CellularDataTest, HasInternetCapability_Test_01, TestSize.Level3)
927 int32_t result = CellularDataTest::HasInternetCapability(SIM_SLOT_ID_1, cid);
936 HWTEST_F(CellularDataTest, HasInternetCapability_Test_02, TestSize.Level3)
943 int32_t result = CellularDataTest::HasInternetCapability(DEFAULT_SIM_SLOT_ID, cid);
952 HWTEST_F(CellularDataTest, ClearCellularDataConnections_Test_01, TestSize.Level3)
958 int32_t result = CellularDataTest::ClearCellularDataConnections(SIM_SLOT_ID_1);
967 HWTEST_F(CellularDataTest, ClearCellularDataConnections_Test_02, TestSize.Level3)
973 int32_t result = CellularDataTest::ClearCellularDataConnections(DEFAULT_SIM_SLOT_ID);
982 HWTEST_F(CellularDataTest, ClearAllConnections_Test_01, TestSize.Level3)
988 int32_t result = CellularDataTest::ClearAllConnections(
998 HWTEST_F(CellularDataTest, GetApnState_Test_01, TestSize.Level3)
1004 int32_t result = CellularDataTest::GetApnState(DEFAULT_SIM_SLOT_ID, "default");
1013 HWTEST_F(CellularDataTest, GetDataRecoveryState_Test_01, TestSize.Level3)
1019 int32_t result = CellularDataTest::GetDataRecoveryState();
1028 HWTEST_F(CellularDataTest, CellularDataDump_Test_01, Function | MediumTest | Level3)
1042 HWTEST_F(CellularDataTest, Telephony_Cellulardata_InitTelephonyExtService_0100, Function | MediumTe…
1059 HWTEST_F(CellularDataTest, GetDataConnApnAttr_Test_01, TestSize.Level3)
1066 int32_t result = CellularDataTest::GetDataConnApnAttr(SIM_SLOT_ID_1, apnAttr);
1075 HWTEST_F(CellularDataTest, GetDataConnApnAttr_Test_02, TestSize.Level3)
1082 int32_t result = CellularDataTest::GetDataConnApnAttr(DEFAULT_SIM_SLOT_ID, apnAttr);
1091 HWTEST_F(CellularDataTest, GetDataConnIpType_Test_01, TestSize.Level3)
1098 int32_t result = CellularDataTest::GetDataConnIpType(SIM_SLOT_ID_1, ipType);
1107 HWTEST_F(CellularDataTest, GetDataConnIpType_Test_02, TestSize.Level3)
1114 int32_t result = CellularDataTest::GetDataConnIpType(DEFAULT_SIM_SLOT_ID, ipType);
1123 HWTEST_F(CellularDataTest, IsNeedDoRecovery_Test_01, TestSize.Level3)
1130 int32_t result = CellularDataTest::IsNeedDoRecovery(SIM_SLOT_ID_1, needDoRecovery);
1139 HWTEST_F(CellularDataTest, IsNeedDoRecovery_Test_02, TestSize.Level3)
1146 int32_t result = CellularDataTest::IsNeedDoRecovery(DEFAULT_SIM_SLOT_ID, needDoRecovery);
1155 HWTEST_F(CellularDataTest, EnableIntelligenceSwitch_Test_01, TestSize.Level2)
1161 CellularDataTest::SetDefaultCellularDataSlotIdTest(DEFAULT_SIM_SLOT_ID);
1162 int32_t result1 = CellularDataTest::EnableIntelligenceSwitchTest(true);
1166 int32_t result2 = CellularDataTest::EnableIntelligenceSwitchTest(false);
1177 HWTEST_F(CellularDataTest, GetIntelligenceSwitchState_Test_01, TestSize.Level2)
1183 CellularDataTest::SetDefaultCellularDataSlotIdTest(DEFAULT_SIM_SLOT_ID);
1184 int32_t result1 = CellularDataTest::EnableIntelligenceSwitchTest(true);
1187 CellularDataTest::GetIntelligenceSwitchStateTest(res1);
1190 int32_t result2 = CellularDataTest::EnableIntelligenceSwitchTest(false);
1193 CellularDataTest::GetIntelligenceSwitchStateTest(res2);
1203 HWTEST_F(CellularDataTest, InitCellularDataController_Test_01, TestSize.Level3)
1209 int32_t result = CellularDataTest::InitCellularDataController(SIM_SLOT_ID_1);
1218 HWTEST_F(CellularDataTest, InitCellularDataController_Test_02, TestSize.Level3)
1224 int32_t result = CellularDataTest::InitCellularDataController(DEFAULT_SIM_SLOT_ID);
1233 HWTEST_F(CellularDataTest, InitCellularDataController_Test_03, TestSize.Level3)
1240 int32_t result = CellularDataTest::InitCellularDataController(CELLULAR_DATA_VSIM_SLOT_ID);
1249 HWTEST_F(CellularDataTest, SUPL_Apn_Test_01, TestSize.Level3)
1297 HWTEST_F(CellularDataTest, SUPL_Apn_Test_02, TestSize.Level3)
1345 HWTEST_F(CellularDataTest, DUN_Apn_Test_01, TestSize.Level3)
1393 HWTEST_F(CellularDataTest, DUN_Apn_Test_02, TestSize.Level3)
1441 HWTEST_F(CellularDataTest, IA_Apn_Test_01, TestSize.Level3)
1489 HWTEST_F(CellularDataTest, IA_Apn_Test_02, TestSize.Level3)
1537 HWTEST_F(CellularDataTest, XCAP_Apn_Test_01, TestSize.Level3)
1585 HWTEST_F(CellularDataTest, XCAP_Apn_Test_02, TestSize.Level3)
1633 HWTEST_F(CellularDataTest, RequestNetwork_001, TestSize.Level3)
1650 HWTEST_F(CellularDataTest, RequestNetwork_002, TestSize.Level3)
1667 HWTEST_F(CellularDataTest, ReleaseNetwork_001, TestSize.Level3)
1683 HWTEST_F(CellularDataTest, ReleaseNetwork_002, TestSize.Level3)
1699 HWTEST_F(CellularDataTest, NetStrategySwitch_001, TestSize.Level3)
1713 HWTEST_F(CellularDataTest, NetStrategySwitch_002, TestSize.Level3)
1727 HWTEST_F(CellularDataTest, NetStrategySwitch_003, TestSize.Level3)
1741 HWTEST_F(CellularDataTest, RdbUpdate_001, TestSize.Level3)
1755 HWTEST_F(CellularDataTest, RdbInsert_001, TestSize.Level3)
1768 HWTEST_F(CellularDataTest, QueryApns_001, TestSize.Level3)
1785 HWTEST_F(CellularDataTest, QueryMvnoApnsByType_001, TestSize.Level3)
1803 HWTEST_F(CellularDataTest, QueryMvnoApnsByType_002, TestSize.Level3)
1821 HWTEST_F(CellularDataTest, ReadApnResult_001, TestSize.Level3)
1835 HWTEST_F(CellularDataTest, ReadApnResult_002, TestSize.Level3)
1850 HWTEST_F(CellularDataTest, DataMock_Test_01, TestSize.Level3)