fix vsync ut error

Signed-off-by: BruceXuXu <xufeilong2@huawei.com>
Change-Id: Ibb1972933b4f5109c1a34951ffe700993ca7dae3
This commit is contained in:
BruceXuXu 2023-08-12 08:31:22 +00:00
parent e05537eea0
commit 6644293d52
3 changed files with 3 additions and 7 deletions

View File

@ -57,7 +57,7 @@ void VSyncControllerCallback::OnVSyncEvent(int64_t now, int64_t period) {}
HWTEST_F(VSyncControllerTest, SetEnable001, Function | MediumTest | Level2)
{
bool isGeneratorEnable = false;
ASSERT_EQ(VSyncControllerTest::vsyncController_->SetEnable(true, isGeneratorEnable), VSYNC_ERROR_OK);
ASSERT_EQ(VSyncControllerTest::vsyncController_->SetEnable(true, isGeneratorEnable), VSYNC_ERROR_API_FAILED);
}
/*
@ -96,6 +96,6 @@ HWTEST_F(VSyncControllerTest, SetCallback002, Function | MediumTest | Level2)
*/
HWTEST_F(VSyncControllerTest, SetPhaseOffset, Function | MediumTest | Level2)
{
ASSERT_EQ(VSyncControllerTest::vsyncController_->SetPhaseOffset(2), VSYNC_ERROR_OK);
ASSERT_EQ(VSyncControllerTest::vsyncController_->SetPhaseOffset(2), VSYNC_ERROR_INVALID_OPERATING);
}
}

View File

@ -20,10 +20,7 @@ module_output_path = "graphic_2d/rosen/modules/effect"
ohos_unittest("EffectTest") {
module_out_path = module_output_path
deps = [
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//third_party/googletest:gtest_main",
]
deps = [ "//third_party/googletest:gtest_main" ]
sources = [
"color_picker_unittest.cpp",

View File

@ -49,7 +49,6 @@ ohos_executable("hello_composer") {
public_configs = [ ":hello_composer_public_config" ]
deps = [
"//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
"//foundation/graphic/graphic_2d:libsurface",
"//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
"//foundation/graphic/graphic_2d/utils:sync_fence",