1/* 2 * Copyright (C) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16#include "gtest/gtest.h" 17#include "sms_mms_common.h" 18 19namespace OHOS { 20namespace Telephony { 21using namespace testing::ext; 22 23class SmsMmsCommonTest : public testing::Test { 24public: 25 static void SetUpTestCase(); 26 static void TearDownTestCase(); 27 void SetUp(); 28 void TearDown(); 29}; 30void SmsMmsCommonTest::SetUpTestCase() {} 31 32void SmsMmsCommonTest::TearDownTestCase() {} 33 34void SmsMmsCommonTest::SetUp() {} 35 36void SmsMmsCommonTest::TearDown() {} 37 38/** 39 * @tc.number Telephony_SmsMmsCommonTest_SendBroadcast_0001 40 * @tc.name Test SendBroadcast 41 * @tc.desc Function test 42 */ 43HWTEST_F(SmsMmsCommonTest, SendBroadcast_0001, Function | MediumTest | Level1) 44{ 45 std::string sendStatus = ""; 46 uint16_t dataBaseId = 0; 47 DelayedSingleton<SmsMmsCommon>::GetInstance()->SendBroadcast(dataBaseId, 48 SmsMmsCommonData::SMS_MMS_SENT_RESULT_NOTIFY, sendStatus, 49 SmsMmsCommonData::SMS_MMS_INFO_MMS_TYPE); 50} 51} // namespace Telephony 52} // namespace OHOS