From 56f116d7cd3a3ea0bb533f007b7fb349aa2791b6 Mon Sep 17 00:00:00 2001 From: gaoqiang_strong Date: Mon, 25 Jul 2022 18:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=BD=AF=E6=80=BB=E7=BA=BF?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=A4=B1=E8=B4=A5=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gaoqiang_strong --- .../src/screen_data_channel_impl_test.cpp | 16 ---------- .../src/screen_source_trans_test.cpp | 29 ------------------- .../unittest/src/softbus_adapter_test.cpp | 22 -------------- 3 files changed, 67 deletions(-) diff --git a/services/screentransport/test/unittest/screendatachannel/src/screen_data_channel_impl_test.cpp b/services/screentransport/test/unittest/screendatachannel/src/screen_data_channel_impl_test.cpp index 2b103279..e03fbde9 100644 --- a/services/screentransport/test/unittest/screendatachannel/src/screen_data_channel_impl_test.cpp +++ b/services/screentransport/test/unittest/screendatachannel/src/screen_data_channel_impl_test.cpp @@ -48,22 +48,6 @@ HWTEST_F(ScreenDataChannelImplTest, CreateSession_001, TestSize.Level1) EXPECT_EQ(ERR_DH_SCREEN_TRANS_NULL_VALUE, ret); } -/** - * @tc.name: release_session_test_001 - * @tc.desc: Verify the ReleaseSession function. - * @tc.type: FUNC - * @tc.require: Issue Number - */ -HWTEST_F(ScreenDataChannelImplTest, release_session_test_001, TestSize.Level1) -{ - std::shared_ptr listener = - std::make_shared(); - - dataChannelImpl_->CreateSession(listener); - int32_t ret = dataChannelImpl_->ReleaseSession(); - EXPECT_EQ(DH_SUCCESS, ret); -} - /** * @tc.name: release_session_test_002 * @tc.desc: Verify the ReleaseSession function. diff --git a/services/screentransport/test/unittest/screensourcetrans/src/screen_source_trans_test.cpp b/services/screentransport/test/unittest/screensourcetrans/src/screen_source_trans_test.cpp index f0a5f3ae..b697883f 100644 --- a/services/screentransport/test/unittest/screensourcetrans/src/screen_source_trans_test.cpp +++ b/services/screentransport/test/unittest/screensourcetrans/src/screen_source_trans_test.cpp @@ -48,35 +48,6 @@ HWTEST_F(ScreenSourceTransTest, SetUp_001, TestSize.Level1) EXPECT_EQ(ERR_DH_SCREEN_TRANS_NULL_VALUE, actual); } -/** - * @tc.name: SetUp_002 - * @tc.desc: Verify the SetUp function. - * @tc.type: FUNC - * @tc.require: Issue Number - */ -HWTEST_F(ScreenSourceTransTest, SetUp_002, TestSize.Level1) -{ - VideoParam localParam; - localParam.codecType_ = VIDEO_CODEC_TYPE_VIDEO_H264; - localParam.videoFormat_ = VIDEO_DATA_FORMAT_YUVI420; - localParam.videoWidth_ = DSCREEN_MAX_VIDEO_DATA_WIDTH; - localParam.videoHeight_ = DSCREEN_MAX_VIDEO_DATA_HEIGHT; - localParam.screenWidth_ = DSCREEN_MAX_SCREEN_DATA_WIDTH; - localParam.screenHeight_ = DSCREEN_MAX_SCREEN_DATA_HEIGHT; - VideoParam remoteParam; - remoteParam.codecType_ = VIDEO_CODEC_TYPE_VIDEO_H264; - remoteParam.videoFormat_ = VIDEO_DATA_FORMAT_YUVI420; - remoteParam.videoWidth_ = DSCREEN_MAX_VIDEO_DATA_WIDTH; - remoteParam.videoHeight_ = DSCREEN_MAX_VIDEO_DATA_HEIGHT; - remoteParam.screenWidth_ = DSCREEN_MAX_SCREEN_DATA_WIDTH; - remoteParam.screenHeight_ = DSCREEN_MAX_SCREEN_DATA_HEIGHT; - std::string peerDevId = "hello"; - - int32_t actual = trans->SetUp(localParam, remoteParam, peerDevId); - - EXPECT_EQ(DH_SUCCESS, actual); -} - /** * @tc.name: Release_001 * @tc.desc: Verify the Release function. diff --git a/services/softbusadapter/test/unittest/src/softbus_adapter_test.cpp b/services/softbusadapter/test/unittest/src/softbus_adapter_test.cpp index f8a389f3..689d5d11 100644 --- a/services/softbusadapter/test/unittest/src/softbus_adapter_test.cpp +++ b/services/softbusadapter/test/unittest/src/softbus_adapter_test.cpp @@ -81,28 +81,6 @@ HWTEST_F(SoftbusAdapterTest, UnRegisterSoftbusListener_001, TestSize.Level1) EXPECT_EQ(DH_SUCCESS, actual); } -/** - * @tc.name: CreateSoftbusSessionServer_001 - * @tc.desc: Verify the CreateSoftbusSessionServer function. - * @tc.type: FUNC - * @tc.require: Issue Number - */ -HWTEST_F(SoftbusAdapterTest, CreateSoftbusSessionServer_001, TestSize.Level1) -{ - std::string pkgname = PKG_NAME; - std::string sessionName = DATA_SESSION_NAME; - std::string peerDevId = "testDevId"; - - int32_t actual = softbusAdapter.CreateSoftbusSessionServer(pkgname, sessionName, peerDevId); - EXPECT_EQ(DH_SUCCESS, actual); - - actual = softbusAdapter.RemoveSoftbusSessionServer(pkgname, sessionName, peerDevId); - EXPECT_EQ(DH_SUCCESS, actual); - - actual = softbusAdapter.RemoveSoftbusSessionServer(pkgname, sessionName, peerDevId); - EXPECT_EQ(ERR_DH_SCREEN_TRANS_ILLEGAL_OPERATION, actual); -} - /** * @tc.name: RemoveSoftbusSessionServer_001 * @tc.desc: Verify the RemoveSoftbusSessionServer function. -- Gitee