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")
16import("../../../build/config.gni")
17
18if (os_level != "mini") {
19  unittest("security_test") {
20    output_extension = "bin"
21    output_dir = "$root_out_dir/test/unittest/security"
22    sources = [ "src/acts_pms_check_test.cpp" ]
23
24    include_dirs = [
25      "src",
26      "${permission_lite_path}/interfaces/innerkits",
27      "${permission_lite_path}/interfaces/kits",
28      "../../pms_base/include",
29      "../../pms/include",
30      "../../ipc_auth/include",
31    ]
32
33    deps = [
34      "${samgr_lite_path}/communication/broadcast",
35      "${samgr_lite_path}/samgr:samgr",
36      "../../ipc_auth:ipc_auth_target",
37      "../../pms:pms_target",
38      "../../pms_base:pms_base",
39      "../../pms_client:pms_client",
40      "//third_party/bounds_checking_function:libsec_shared",
41    ]
42  }
43
44  group("unittest") {
45    deps = [ ":security_test" ]
46  }
47} else {
48  group("unittest") {
49  }
50}
51