diff --git a/graphic/graphicnapitest/NativeWindowTest.cpp b/graphic/graphicnapitest/NativeWindowTest.cpp index d63830286fd383045db0a6b625ad16f5c40aefe4..626a07e193e1a393615f2410010930d2139513e1 100644 --- a/graphic/graphicnapitest/NativeWindowTest.cpp +++ b/graphic/graphicnapitest/NativeWindowTest.cpp @@ -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); }