• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020-2022 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/lite/config/component/lite_component.gni")
15import("//build/lite/config/test.gni")
16
17unittest("security_test") {
18  output_extension = "bin"
19  output_dir = "$root_out_dir/test/unittest/security"
20  sources = [ "src/acts_pms_check_test.cpp" ]
21
22  include_dirs = [
23    "src",
24    "include",
25    "//utils/native/lite/include",
26    "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr/",
27    "//foundation/distributedschedule/samgr_lite/interfaces/kits/communication/broadcast/",
28    "//base/security/permission/interfaces/innerkits/permission_lite",
29    "//base/security/permission/interfaces/kits/permission_lite",
30    "//base/security/permission/services/permission_lite/pms_base/include",
31    "//base/security/permission/services/permission_lite/pms/include",
32    "//base/security/permission/services/permission_lite/ipc_auth/include",
33    "//third_party/bounds_checking_function/include",
34  ]
35
36  deps = [
37    "//base/security/permission/services/permission_lite/ipc_auth:ipc_auth_target",
38    "//base/security/permission/services/permission_lite/pms:pms_target",
39    "//base/security/permission/services/permission_lite/pms_base:pms_base",
40    "//base/security/permission/services/permission_lite/pms_client:pms_client",
41    "//build/lite/config/component/cJSON:cjson_shared",
42    "//foundation/appexecfwk/appexecfwk_lite/frameworks/bundle_lite:bundle",
43    "//foundation/distributedschedule/samgr_lite/communication/broadcast",
44    "//foundation/distributedschedule/samgr_lite/samgr:samgr",
45    "//third_party/bounds_checking_function:libsec_shared",
46  ]
47}
48
49group("unittest") {
50  deps = [ ":security_test" ]
51}
52