1f5921b11Sopenharmony_ci# Copyright (c) 2020-2022 Huawei Device Co., Ltd.
2f5921b11Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3f5921b11Sopenharmony_ci# you may not use this file except in compliance with the License.
4f5921b11Sopenharmony_ci# You may obtain a copy of the License at
5f5921b11Sopenharmony_ci#
6f5921b11Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7f5921b11Sopenharmony_ci#
8f5921b11Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9f5921b11Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10f5921b11Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11f5921b11Sopenharmony_ci# See the License for the specific language governing permissions and
12f5921b11Sopenharmony_ci# limitations under the License.
13f5921b11Sopenharmony_ci
14f5921b11Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
15f5921b11Sopenharmony_ciimport("//build/lite/config/test.gni")
16f5921b11Sopenharmony_ciimport("../../../build/config.gni")
17f5921b11Sopenharmony_ci
18f5921b11Sopenharmony_ciif (os_level != "mini") {
19f5921b11Sopenharmony_ci  unittest("security_test") {
20f5921b11Sopenharmony_ci    output_extension = "bin"
21f5921b11Sopenharmony_ci    output_dir = "$root_out_dir/test/unittest/security"
22f5921b11Sopenharmony_ci    sources = [ "src/acts_pms_check_test.cpp" ]
23f5921b11Sopenharmony_ci
24f5921b11Sopenharmony_ci    include_dirs = [
25f5921b11Sopenharmony_ci      "src",
26f5921b11Sopenharmony_ci      "${permission_lite_path}/interfaces/innerkits",
27f5921b11Sopenharmony_ci      "${permission_lite_path}/interfaces/kits",
28f5921b11Sopenharmony_ci      "../../pms_base/include",
29f5921b11Sopenharmony_ci      "../../pms/include",
30f5921b11Sopenharmony_ci      "../../ipc_auth/include",
31f5921b11Sopenharmony_ci    ]
32f5921b11Sopenharmony_ci
33f5921b11Sopenharmony_ci    deps = [
34f5921b11Sopenharmony_ci      "${samgr_lite_path}/communication/broadcast",
35f5921b11Sopenharmony_ci      "${samgr_lite_path}/samgr:samgr",
36f5921b11Sopenharmony_ci      "../../ipc_auth:ipc_auth_target",
37f5921b11Sopenharmony_ci      "../../pms:pms_target",
38f5921b11Sopenharmony_ci      "../../pms_base:pms_base",
39f5921b11Sopenharmony_ci      "../../pms_client:pms_client",
40f5921b11Sopenharmony_ci      "//third_party/bounds_checking_function:libsec_shared",
41f5921b11Sopenharmony_ci    ]
42f5921b11Sopenharmony_ci  }
43f5921b11Sopenharmony_ci
44f5921b11Sopenharmony_ci  group("unittest") {
45f5921b11Sopenharmony_ci    deps = [ ":security_test" ]
46f5921b11Sopenharmony_ci  }
47f5921b11Sopenharmony_ci} else {
48f5921b11Sopenharmony_ci  group("unittest") {
49f5921b11Sopenharmony_ci  }
50f5921b11Sopenharmony_ci}
51