# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") module_out_path = "graphic_2d/composer" group("systemtest") { testonly = true deps = [ ":nativeVsync_getPeriod_test_st", ":nativeVsync_requestFrame_test_st", ":nativeVsync_requestMultiCB_test_st", ":vsync_120to30_test_st", ":vsync_120to60_test_st", ":vsync_120to90_test_st", ":vsync_30to120_test_st", ":vsync_30to60_test_st", ":vsync_30to90_test_st", ":vsync_60to120_test_st", ":vsync_60to30_test_st", ":vsync_60to90_test_st", ":vsync_90to120_test_st", ":vsync_90to30_test_st", ":vsync_90to60_test_st", ":vsync_callbackeveryframe_test_st", ":vsync_limit_test_st", ":vsync_ltpo_test_st", ":vsync_multicallback_test_st", ":vsync_sample_test_st", ":vsync_setvsyncrate_test_st", ":vsync_test_st", ] } ## SystemTest vsync_test {{{ ohos_unittest("vsync_test_st") { module_out_path = module_out_path sources = [ "vsync_test.cpp" ] include_dirs = [ "//foundation/graphic/graphic_2d/interfaces/inner_api/common", "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include", "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync/test", "//utils/system/safwk/native/include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core", "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync:libvsync", "//foundation/graphic/graphic_2d/utils:socketpair", "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", ] } ## SystemTest vsync_test }}} ## SystemTest vsync_ltpo_test {{{ ohos_unittest("vsync_ltpo_test_st") { module_out_path = module_out_path sources = [ "vsync_ltpo_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_ltpo_test }}} ## SystemTest vsync_30to60_test {{{ ohos_unittest("vsync_30to60_test_st") { module_out_path = module_out_path sources = [ "vsync_30to60_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_30to60_test }}} ## SystemTest vsync_30to90_test {{{ ohos_unittest("vsync_30to90_test_st") { module_out_path = module_out_path sources = [ "vsync_30to90_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_30to90_test }}} ## SystemTest vsync_30to120_test {{{ ohos_unittest("vsync_30to120_test_st") { module_out_path = module_out_path sources = [ "vsync_30to120_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_30to120_test }}} ## SystemTest vsync_60to30_test {{{ ohos_unittest("vsync_60to30_test_st") { module_out_path = module_out_path sources = [ "vsync_60to30_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_60to30_test }}} ## SystemTest vsync_60to90_test {{{ ohos_unittest("vsync_60to90_test_st") { module_out_path = module_out_path sources = [ "vsync_60to90_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_60to90_test }}} ## SystemTest vsync_60to120_test {{{ ohos_unittest("vsync_60to120_test_st") { module_out_path = module_out_path sources = [ "vsync_60to120_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_60to120_test }}} ## SystemTest vsync_90to30_test {{{ ohos_unittest("vsync_90to30_test_st") { module_out_path = module_out_path sources = [ "vsync_90to30_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_90to30_test }}} ## SystemTest vsync_90to60_test {{{ ohos_unittest("vsync_90to60_test_st") { module_out_path = module_out_path sources = [ "vsync_90to60_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_90to60_test }}} ## SystemTest vsync_90to120_test {{{ ohos_unittest("vsync_90to120_test_st") { module_out_path = module_out_path sources = [ "vsync_90to120_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_90to120_test }}} ## SystemTest vsync_120to30_test {{{ ohos_unittest("vsync_120to30_test_st") { module_out_path = module_out_path sources = [ "vsync_120to30_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_120to30_test }}} ## SystemTest vsync_120to60_test {{{ ohos_unittest("vsync_120to60_test_st") { module_out_path = module_out_path sources = [ "vsync_120to60_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_120to60_test }}} ## SystemTest vsync_120to90_test {{{ ohos_unittest("vsync_120to90_test_st") { module_out_path = module_out_path sources = [ "vsync_120to90_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../include", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../../../../utils:socketpair", "../../../vsync:libvsync", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_120to90_test }}} ## SystemTest vsync_multicallback_test {{{ ohos_unittest("vsync_multicallback_test_st") { module_out_path = module_out_path sources = [ "vsync_multicallback_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../../../../../rosen/modules/composer/vsync/include", "../../../../../../rosen/modules/composer/vsync/test", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../..:libvsync", "../../../../../../utils:socketpair", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_multicallback_test }}} ## SystemTest vsync_limit_test {{{ ohos_unittest("vsync_limit_test_st") { module_out_path = module_out_path sources = [ "vsync_limit_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/composer" ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../native_vsync:libnative_vsync", "//third_party/googletest:gtest_main", ] } ## SystemTest vsync_limit_test }}} ## SystemTest nativeVsync_getPeriod_test {{{ ohos_unittest("nativeVsync_getPeriod_test_st") { module_out_path = module_out_path sources = [ "nativeVsync_getPeriod_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../../../../../interfaces/inner_api/composer", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../native_vsync:libnative_vsync", "//third_party/googletest:gtest_main", ] } ## SystemTest nativeVsync_getPeriod_test }}} ## SystemTest nativeVsync_requestFrame_test {{{ ohos_unittest("nativeVsync_requestFrame_test_st") { module_out_path = module_out_path sources = [ "nativeVsync_requestFrame_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/composer" ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../native_vsync:libnative_vsync", "//third_party/googletest:gtest_main", ] } ## SystemTest nativeVsync_requestFrame_test }}} ## SystemTest nativeVsync_requestMultiCB_test {{{ ohos_unittest("nativeVsync_requestMultiCB_test_st") { module_out_path = module_out_path sources = [ "nativeVsync_requestMultiCB_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/composer" ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../../../native_vsync:libnative_vsync", "//third_party/googletest:gtest_main", ] } ## SystemTest nativeVsync_requestMultiCB_test }}} ## SystemTest vsync_setvsyncrate_test {{{ ohos_unittest("vsync_setvsyncrate_test_st") { module_out_path = module_out_path sources = [ "vsync_setvsyncrate_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../../../../../rosen/modules/composer/vsync/include", "../../../../../../rosen/modules/composer/vsync/test", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../..:libvsync", "../../../../../../utils:socketpair", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_setvsyncrate_test }}} ## SystemTest vsync_callbackeveryframe_test {{{ ohos_unittest("vsync_callbackeveryframe_test_st") { module_out_path = module_out_path sources = [ "vsync_callbackeveryframe_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../../../../../rosen/modules/composer/vsync/include", "../../../../../../rosen/modules/composer/vsync/test", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../..:libvsync", "../../../../../../utils:socketpair", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_callbackeveryframe_test }}} ## SystemTest vsync_sample_test {{{ ohos_unittest("vsync_sample_test_st") { module_out_path = module_out_path sources = [ "vsync_sample_test.cpp" ] include_dirs = [ "../../../../../../interfaces/inner_api/common", "../../../../../../rosen/modules/composer/vsync/include", "../../../../../../rosen/modules/composer/vsync/test", ] cflags = [ "-Wall", "-Werror", "-g3", ] deps = [ "../..:libvsync", "../../../../../../utils:socketpair", "//third_party/googletest:gtest_main", ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "ipc:ipc_core", "samgr:samgr_proxy", ] } ## SystemTest vsync_sample_test }}}