1 /* 2 * Copyright (C) 2025 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 #define private public 16 #define protected public 17 18 #include "pdp_profile_rdb_helper.h" 19 #include "telephony_data_helper.h" 20 #include "gtest/gtest.h" 21 22 namespace OHOS { 23 namespace Telephony { 24 using namespace testing::ext; 25 26 class PdpHelperTest : public testing::Test { 27 public: 28 static void SetUpTestCase(); 29 static void TearDownTestCase(); 30 void SetUp(); 31 void TearDown(); 32 }; 33 34 SetUpTestCase()35void PdpHelperTest::SetUpTestCase() {} 36 TearDownTestCase()37void PdpHelperTest::TearDownTestCase() {} 38 SetUp()39void PdpHelperTest::SetUp() {} 40 TearDown()41void PdpHelperTest::TearDown() {} 42 43 HWTEST_F(PdpHelperTest, PdpHelperTest001, Function | MediumTest | Level1) 44 { 45 int32_t slotId = 0; 46 auto pdpProfileRdbHelper = std::make_shared<PdpProfileRdbHelper>(); 47 std::shared_ptr<DataShare::DataShareHelper> dataShareHelper = pdpProfileRdbHelper->CreatePdpProfileDataHelper(); 48 pdpProfileRdbHelper->notifyInitApnConfigs(slotId); 49 EXPECT_EQ(dataShareHelper, nullptr); 50 } 51 52 } 53 }