/* * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef GSM_SMS_SENDER_TEST_H #define GSM_SMS_SENDER_TEST_H #include #include #include "datashare_helper.h" #include "datashare_predicates.h" #include "i_sms_service_interface.h" #include "securec.h" #include "sms_service_proxy.h" #include "system_ability_definition.h" namespace OHOS { namespace Telephony { class GsmSmsSenderTest { public: void TestGsmSendShortData(const sptr &smsService) const; void TestGsmSendLongData(const sptr &smsService) const; void TestSendShortText(const sptr &smsService) const; void TestSendMms(const sptr &smsService) const; void TestSendLongText(const sptr &smsService) const; void TestSetSmscAddr(const sptr &smsService) const; void TestGetSmscAddr(const sptr &smsService) const; void TestAddSimMessage(const sptr &smsService) const; void TestDelSimMessage(const sptr &smsService) const; void TestUpdateSimMessage(const sptr &smsService) const; void TestGetAllSimMessages(const sptr &smsService) const; void TestEnableCBRangeConfig(const sptr &smsService) const; void TestDisableCBRangeConfig(const sptr &smsService) const; void TestEnableCBConfig(const sptr &smsService) const; void TestDisableCBConfig(const sptr &smsService) const; void TestSetDefaultSmsSlotId(const sptr &smsService) const; void TestGetDefaultSmsSlotId(const sptr &smsService) const; void TestSplitMessage(const sptr &smsService) const; void TestGetSmsSegmentsInfo(const sptr &smsService) const; void TestIsImsSmsSupported(const sptr &smsService) const; void TestSetImsSmsConfig(const sptr &smsService) const; void TestGetImsShortMessageFormat(const sptr &smsService) const; void TestAddBlockPhone() const; void TestRemoveBlockPhone() const; void TestHasSmsCapability(const sptr &smsService) const; private: std::shared_ptr CreateDataAHelper() const; }; } // namespace Telephony } // namespace OHOS #endif