Home
last modified time | relevance | path

Searched refs:smsService (Results 1 - 9 of 9) sorted by relevance

/base/telephony/sms_mms/test/unittest/
H A Dgsm_sms_sender_test.h33 void TestGsmSendShortData(const sptr<ISmsServiceInterface> &smsService) const;
34 void TestGsmSendLongData(const sptr<ISmsServiceInterface> &smsService) const;
35 void TestSendShortText(const sptr<ISmsServiceInterface> &smsService) const;
36 void TestSendMms(const sptr<ISmsServiceInterface> &smsService) const;
37 void TestSendLongText(const sptr<ISmsServiceInterface> &smsService) const;
38 void TestSetSmscAddr(const sptr<ISmsServiceInterface> &smsService) const;
39 void TestGetSmscAddr(const sptr<ISmsServiceInterface> &smsService) const;
40 void TestAddSimMessage(const sptr<ISmsServiceInterface> &smsService) const;
41 void TestDelSimMessage(const sptr<ISmsServiceInterface> &smsService) const;
42 void TestUpdateSimMessage(const sptr<ISmsServiceInterface> &smsService) cons
[all...]
H A Dsms_mms_test.cpp78 const sptr<ISmsServiceInterface> &smsService)
81 "TestSendShortText", std::bind(&GsmSmsSenderTest::TestSendShortText, param.gsmSmsSenderTest, smsService));
83 std::bind(&GsmSmsSenderTest::TestGsmSendShortData, param.gsmSmsSenderTest, smsService));
85 "TestSendLongText", std::bind(&GsmSmsSenderTest::TestSendLongText, param.gsmSmsSenderTest, smsService));
87 std::bind(&GsmSmsSenderTest::TestGsmSendLongData, param.gsmSmsSenderTest, smsService));
89 "TestSendMms", std::bind(&GsmSmsSenderTest::TestSendMms, param.gsmSmsSenderTest, smsService));
91 "TestSetSmscAddr", std::bind(&GsmSmsSenderTest::TestSetSmscAddr, param.gsmSmsSenderTest, smsService));
93 "TestGetSmscAddr", std::bind(&GsmSmsSenderTest::TestGetSmscAddr, param.gsmSmsSenderTest, smsService));
96 std::bind(&GsmSmsSenderTest::TestEnableCBRangeConfig, param.gsmSmsSenderTest, smsService));
98 std::bind(&GsmSmsSenderTest::TestDisableCBRangeConfig, param.gsmSmsSenderTest, smsService));
[all...]
H A Dgsm_sms_sender_test.cpp37 void GsmSmsSenderTest::TestGsmSendShortData(const sptr<ISmsServiceInterface> &smsService) const in TestGsmSendShortData()
40 if (smsService == nullptr) { in TestGsmSendShortData()
41 std::cout << "smsService is nullptr." << std::endl; in TestGsmSendShortData()
58 smsService->SendMessage(slotIdTesta, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), port, data, in TestGsmSendShortData()
60 smsService->SendMessage(slotIdTesta, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), port, data, in TestGsmSendShortData()
65 void GsmSmsSenderTest::TestGsmSendLongData(const sptr<ISmsServiceInterface> &smsService) const in TestGsmSendLongData()
68 if (smsService == nullptr) { in TestGsmSendLongData()
69 std::cout << "smsService is nullptr." << std::endl; in TestGsmSendLongData()
92 smsService->SendMessage(slotIdTestb, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), port, data, in TestGsmSendLongData()
94 smsService in TestGsmSendLongData()
[all...]
/base/telephony/sms_mms/test/gtest/
H A Dzero_branch_sms_test.cpp1854 auto smsService = DelayedSingleton<SmsService>::GetInstance(); in HWTEST_F() local
1855 smsService->state_ = ServiceRunningState::STATE_RUNNING; in HWTEST_F()
1856 smsService->OnStart(); in HWTEST_F()
1861 EXPECT_GT(smsService->SendMessage(0, desAddr, desAddr, desAddr, sendCallback, in HWTEST_F()
1863 EXPECT_GT(smsService->SendMessage(0, desAddr, desAddr, desAddr, sendCallback, in HWTEST_F()
1865 EXPECT_GT(smsService->SendMessage(0, desAddr, desAddr, 1, data, 1, sendCallback, deliveryCallback), in HWTEST_F()
1869 smsService->TrimSmscAddr(sca); in HWTEST_F()
1871 smsService->TrimSmscAddr(sca); in HWTEST_F()
1872 EXPECT_GT(smsService->IsImsSmsSupported(INVALID_SLOTID, isSupported), TELEPHONY_ERR_SUCCESS); in HWTEST_F()
1873 EXPECT_GT(smsService in HWTEST_F()
1898 auto smsService = DelayedSingleton<SmsService>::GetInstance(); HWTEST_F() local
1928 auto smsService = DelayedSingleton<SmsService>::GetInstance(); HWTEST_F() local
2279 auto smsService = DelayedSingleton<SmsService>::GetInstance(); HWTEST_F() local
2327 auto smsService = DelayedSingleton<SmsService>::GetInstance(); HWTEST_F() local
[all...]
H A Dzero_branch_mms_test.cpp1363 std::shared_ptr<SmsService> smsService = std::make_shared<SmsService>(); in HWTEST_F() local
1370 int32_t notAccess = smsService->SendMms(slotId, mmsc, data, ua, uaprof, time); in HWTEST_F()
1372 int32_t noMmsc = smsService->SendMms(slotId, mmsc, data, ua, uaprof, time); in HWTEST_F()
1374 int32_t noData = smsService->SendMms(slotId, mmsc, data, ua, uaprof, time); in HWTEST_F()
1387 std::shared_ptr<SmsService> smsService = std::make_shared<SmsService>(); in HWTEST_F() local
1394 int32_t notAccess = smsService->DownloadMms(slotId, mmsc, data, ua, uaprof); in HWTEST_F()
1396 int32_t noMmsc = smsService->DownloadMms(slotId, mmsc, data, ua, uaprof); in HWTEST_F()
1398 int32_t noData = smsService->DownloadMms(slotId, mmsc, data, ua, uaprof); in HWTEST_F()
1399 notAccess = smsService->SendMms(slotId, mmsc, data, ua, uaprof, time, true); in HWTEST_F()
1400 noMmsc = smsService in HWTEST_F()
1415 std::shared_ptr<SmsService> smsService = std::make_shared<SmsService>(); HWTEST_F() local
[all...]
H A Dcdma_sms_gtest.cpp91 sptr<ISmsServiceInterface> smsService = iface_cast<ISmsServiceInterface>(remote); in GetProxy() local
92 return smsService; in GetProxy()
H A Dcb_gtest.cpp84 sptr<ISmsServiceInterface> smsService = iface_cast<ISmsServiceInterface>(remote); in GetProxy() local
85 return smsService; in GetProxy()
H A Dmms_gtest.cpp129 sptr<ISmsServiceInterface> smsService = iface_cast<ISmsServiceInterface>(remote); in GetProxy() local
130 return smsService; in GetProxy()
H A Dsms_gtest.cpp99 sptr<ISmsServiceInterface> smsService = iface_cast<ISmsServiceInterface>(remote); in GetProxy() local
100 return smsService; in GetProxy()

Completed in 15 milliseconds