• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  ]
35
36  external_deps += fontmgr_external_deps
37
38  deps = [
39    "../../../service:font_service_ability"
40  ]
41
42  defines = [ "SUPPORT_GRAPHICS" ]
43}
44
45ohos_unittest("font_manager_module_test") {
46  module_out_path = "font_manager/font_manager"
47
48  resource_config_file = "ohos_test.xml"
49
50  sources = [
51    "unittest/src/font_manager_test.cpp",
52  ]
53
54  sources += fontmgr_src
55  include_dirs = [
56    "./unittest/include",
57  ]
58
59  include_dirs += fontmgr_include
60
61  external_deps = [
62    "googletest:gtest",
63    "googletest:gtest_main"
64  ]
65
66  external_deps += fontmgr_external_deps
67
68  deps = [
69    "../../../service:font_service_ability",
70  ]
71
72  defines = [ "SUPPORT_GRAPHICS" ]
73}
74
75