166f3657fSopenharmony_ci# Copyright (c) 2022-2024 Huawei Device Co., Ltd. 266f3657fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 366f3657fSopenharmony_ci# you may not use this file except in compliance with the License. 466f3657fSopenharmony_ci# You may obtain a copy of the License at 566f3657fSopenharmony_ci# 666f3657fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 766f3657fSopenharmony_ci# 866f3657fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 966f3657fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1066f3657fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1166f3657fSopenharmony_ci# See the License for the specific language governing permissions and 1266f3657fSopenharmony_ci# limitations under the License. 1366f3657fSopenharmony_ci 1466f3657fSopenharmony_ciimport("//build/test.gni") 1566f3657fSopenharmony_ciimport( 1666f3657fSopenharmony_ci "//foundation/distributedhardware/distributed_screen/distributedscreen.gni") 1766f3657fSopenharmony_ci 1866f3657fSopenharmony_cimodule_out_path = "distributed_screen/services/utils_test" 1966f3657fSopenharmony_ci 2066f3657fSopenharmony_ciconfig("module_private_config") { 2166f3657fSopenharmony_ci visibility = [ ":*" ] 2266f3657fSopenharmony_ci 2366f3657fSopenharmony_ci include_dirs = [ 2466f3657fSopenharmony_ci "include", 2566f3657fSopenharmony_ci "${common_path}/include", 2666f3657fSopenharmony_ci "${services_path}/common/databuffer/include", 2766f3657fSopenharmony_ci "${services_path}/common/utils/include", 2866f3657fSopenharmony_ci ] 2966f3657fSopenharmony_ci} 3066f3657fSopenharmony_ci 3166f3657fSopenharmony_ci## UnitTest utils_test 3266f3657fSopenharmony_ciohos_unittest("UtilsTest") { 3366f3657fSopenharmony_ci sanitize = { 3466f3657fSopenharmony_ci cfi = true 3566f3657fSopenharmony_ci cfi_cross_dso = true 3666f3657fSopenharmony_ci debug = false 3766f3657fSopenharmony_ci } 3866f3657fSopenharmony_ci module_out_path = module_out_path 3966f3657fSopenharmony_ci 4066f3657fSopenharmony_ci sources = [ 4166f3657fSopenharmony_ci "${services_path}/common/test/unittest/utils/dscreen_fwkkit_test.cpp", 4266f3657fSopenharmony_ci "${services_path}/common/test/unittest/utils/dscreen_hidumper_test.cpp", 4366f3657fSopenharmony_ci "${services_path}/common/test/unittest/utils/dscreen_maprelation_test.cpp", 4466f3657fSopenharmony_ci "${services_path}/common/test/unittest/utils/video_param_test.cpp", 4566f3657fSopenharmony_ci ] 4666f3657fSopenharmony_ci 4766f3657fSopenharmony_ci configs = [ 4866f3657fSopenharmony_ci ":module_private_config", 4966f3657fSopenharmony_ci "${common_path}/test/unittest/resource:dscreen_unittest_public_config", 5066f3657fSopenharmony_ci ] 5166f3657fSopenharmony_ci 5266f3657fSopenharmony_ci deps = 5366f3657fSopenharmony_ci [ "${services_path}/screenservice/sinkservice:distributed_screen_sink" ] 5466f3657fSopenharmony_ci 5566f3657fSopenharmony_ci external_deps = [ 5666f3657fSopenharmony_ci "distributed_hardware_fwk:distributed_av_sender", 5766f3657fSopenharmony_ci "distributed_hardware_fwk:distributedhardwareutils", 5866f3657fSopenharmony_ci "distributed_hardware_fwk:libdhfwk_sdk", 5966f3657fSopenharmony_ci "googletest:gmock", 6066f3657fSopenharmony_ci "googletest:gtest_main", 6166f3657fSopenharmony_ci "json:nlohmann_json_static", 6266f3657fSopenharmony_ci ] 6366f3657fSopenharmony_ci} 6466f3657fSopenharmony_ci 6566f3657fSopenharmony_cigroup("utils_test") { 6666f3657fSopenharmony_ci testonly = true 6766f3657fSopenharmony_ci deps = [ ":UtilsTest" ] 6866f3657fSopenharmony_ci} 69