1# Copyright (c) 2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/test.gni") 15import("../fontmgr.gni") 16 17ohos_unittest("font_config_test") { 18 module_out_path = "font_manager/font_manager" 19 20 sources = [ 21 "unittest/src/font_config_test.cpp", 22 ] 23 24 sources += fontmgr_src 25 include_dirs = [ 26 "./unittest/include", 27 ] 28 29 include_dirs += fontmgr_include 30 31 external_deps = [ 32 "googletest:gtest", 33 "googletest:gtest_main", 34 "hisysevent:libhisysevent", 35 ] 36 37 external_deps += fontmgr_external_deps 38 39 deps = [ 40 "../../../service:font_service_ability" 41 ] 42 43 defines = [ "SUPPORT_GRAPHICS" ] 44} 45 46ohos_unittest("font_manager_module_test") { 47 module_out_path = "font_manager/font_manager" 48 49 resource_config_file = "ohos_test.xml" 50 51 sources = [ 52 "unittest/src/font_manager_test.cpp", 53 ] 54 55 sources += fontmgr_src 56 include_dirs = [ 57 "./unittest/include", 58 ] 59 60 include_dirs += fontmgr_include 61 62 external_deps = [ 63 "c_utils:utils", 64 "googletest:gtest", 65 "googletest:gtest_main", 66 "hisysevent:libhisysevent" 67 ] 68 69 external_deps += fontmgr_external_deps 70 71 deps = [ 72 "../../../service:font_service_ability", 73 ] 74 75 defines = [ "SUPPORT_GRAPHICS" ] 76} 77 78ohos_unittest("hisysevent_adapter_test") { 79 module_out_path = "font_manager/font_manager" 80 81 resource_config_file = "ohos_test.xml" 82 83 sources = [ 84 "unittest/src/hisysevent_adapter_test.cpp", 85 ] 86 87 sources += fontmgr_src 88 include_dirs = [ 89 "./unittest/include", 90 ] 91 92 include_dirs += fontmgr_include 93 94 external_deps = [ 95 "c_utils:utils", 96 "googletest:gtest", 97 "googletest:gtest_main", 98 "hisysevent:libhisysevent" 99 ] 100 101 external_deps += fontmgr_external_deps 102 103 deps = [ 104 "../../../service:font_service_ability", 105 ] 106 107 defines = [ "SUPPORT_GRAPHICS" ] 108} 109 110