mirror of
https://gitee.com/openharmony/xts_hats
synced 2024-11-27 09:00:57 +00:00
Add hdi test suites -display
Signed-off-by: wangchao582 <wangchao582@huawei.com>
This commit is contained in:
parent
b2cd6f5606
commit
8658259053
@ -3642,6 +3642,26 @@ HWTEST_F(DisplayBufferMtAdditional, testDisplayBufferInvalidateCache020, Functio
|
||||
AfterCache(bHandle);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.number : SUB_Driver_Display_Buffer_FreeMem_0100
|
||||
* @tc.name : testDisplayBufferFreeMem001
|
||||
* @tc.desc : Reliability of function(FreeMem)
|
||||
*/
|
||||
HWTEST_F(DisplayBufferMtAdditional, testDisplayBufferFreeMem001, Function | MediumTest | Level1)
|
||||
{
|
||||
BufferHandle *bHandle = nullptr;
|
||||
AllocInfo info;
|
||||
info.width = 1024;
|
||||
info.height = 1024;
|
||||
info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_CPU_WRITE;
|
||||
info.format = PIXEL_FMT_BGRA_8888;
|
||||
|
||||
g_dispbuf->AllocMem(info, bHandle);
|
||||
g_dispbuf->FreeMem(*bHandle);
|
||||
void *buffer = g_dispbuf->Mmap(*bHandle);
|
||||
EXPECT_EQ(reinterpret_cast<void *>(0xffffffff), buffer);
|
||||
}
|
||||
|
||||
} // namespace TEST
|
||||
} // namespace Display
|
||||
} // namespace HDI
|
||||
|
Loading…
Reference in New Issue
Block a user