未验证 提交 04e557ed 编写于 作者: M MingZhu 提交者: Gitee

update graphic/graphicnapitest/NativeWindowTest.cpp.

Signed-off-by: NMingZhu <limingzhu10@huawei.com>
上级 55989992
......@@ -87,7 +87,7 @@ void NativeWindowTest::SetUpTestCase()
.width = 0x100, // small
.height = 0x100, // small
.strideAlignment = 0x8,
.format = GRAPHIC_PIXEL_FMT_RGBA_8888,
.format = PIXEL_FMT_RGBA_8888,
.usage = BUFFER_USAGE_CPU_READ | BUFFER_USAGE_CPU_WRITE | BUFFER_USAGE_MEM_DMA,
.timeout = 0,
};
......@@ -206,11 +206,11 @@ HWTEST_F(NativeWindowTest, HandleOpt003, Function | MediumTest | Level2)
HWTEST_F(NativeWindowTest, HandleOpt004, Function | MediumTest | Level2)
{
int code = SET_FORMAT;
int32_t formatSet = GRAPHIC_PIXEL_FMT_RGBA_8888;
int32_t formatSet = PIXEL_FMT_RGBA_8888;
ASSERT_EQ(OH_NativeWindow_NativeWindowHandleOpt(nativeWindow, code, formatSet), OHOS::GSERROR_OK);
code = GET_FORMAT;
int32_t formatGet = GRAPHIC_PIXEL_FMT_CLUT8;
int32_t formatGet = PIXEL_FMT_CLUT8;
ASSERT_EQ(OH_NativeWindow_NativeWindowHandleOpt(nativeWindow, code, &formatGet), OHOS::GSERROR_OK);
ASSERT_EQ(formatSet, formatGet);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册