Signed-off-by: z30042987 <zhouminghui8@huawei.com>
This commit is contained in:
z30042987 2023-08-24 17:20:48 +08:00
parent ea630f978e
commit fe82f2d5c4

View File

@ -138,10 +138,7 @@ HWTEST_F(ScreenSessionManagerTest, VirtualScreen, Function | SmallTest | Level3)
auto result1 = ssm_->SetVirtualScreenSurface(VIRTUAL_SCREEN_ID, nullptr);
ASSERT_EQ(DMError::DM_ERROR_RENDER_SERVICE_FAILED, result1);
sptr<IConsumerSurface> surface = OHOS::IConsumerSurface::Create();
auto result2 = ssm_->SetVir
tualScreenSurface(VIRTUAL_SCREEN_ID, surface->GetProducer());
auto result2 = ssm_->SetVirtualScreenSurface(VIRTUAL_SCREEN_ID, surface->GetProducer());
if (DMError::DM_ERROR_RENDER_SERVICE_FAILED == result2) {
ASSERT_EQ(DMError::DM_ERROR_RENDER_SERVICE_FAILED, result2);
}
@ -155,7 +152,6 @@ HWTEST_F(ScreenSessionManagerTest, VirtualScreen, Function | SmallTest | Level3)
* @tc.desc: GetScreenSession virtual screen
* @tc.type: FUNC
*/
HWTEST_F(ScreenSessionManagerTest, GetScreenSession, Function | SmallTest | Level3)
{
sptr<IDisplayManagerAgent> displayManagerAgent = new DisplayManagerAgentDefault();