mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-30 10:41:29 +00:00
fix vsync ut error
Signed-off-by: BruceXuXu <xufeilong2@huawei.com> Change-Id: Ibb1972933b4f5109c1a34951ffe700993ca7dae3
This commit is contained in:
parent
e05537eea0
commit
6644293d52
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user