14e56987cSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 24e56987cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 34e56987cSopenharmony_ci# you may not use this file except in compliance with the License. 44e56987cSopenharmony_ci# You may obtain a copy of the License at 54e56987cSopenharmony_ci# 64e56987cSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 74e56987cSopenharmony_ci# 84e56987cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 94e56987cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 104e56987cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 114e56987cSopenharmony_ci# See the License for the specific language governing permissions and 124e56987cSopenharmony_ci# limitations under the License. 134e56987cSopenharmony_ci 144e56987cSopenharmony_ciimport("//build/test.gni") 154e56987cSopenharmony_ci 164e56987cSopenharmony_cimodule_output_path = "cert_manager_standard/cert_manager_standard_test" 174e56987cSopenharmony_ci 184e56987cSopenharmony_ciohos_unittest("cm_inner_permission_test") { 194e56987cSopenharmony_ci module_out_path = module_output_path 204e56987cSopenharmony_ci sources = [ 214e56987cSopenharmony_ci "../src/cm_test_common.cpp", 224e56987cSopenharmony_ci "cm_inner_permission_test.cpp", 234e56987cSopenharmony_ci ] 244e56987cSopenharmony_ci 254e56987cSopenharmony_ci include_dirs = [ "../include" ] 264e56987cSopenharmony_ci cflags_cc = [ 274e56987cSopenharmony_ci "-Wall", 284e56987cSopenharmony_ci "-Werror", 294e56987cSopenharmony_ci ] 304e56987cSopenharmony_ci cflags = cflags_cc 314e56987cSopenharmony_ci branch_protector_ret = "pac_ret" 324e56987cSopenharmony_ci sanitize = { 334e56987cSopenharmony_ci cfi = true 344e56987cSopenharmony_ci cfi_cross_dso = true 354e56987cSopenharmony_ci boundary_sanitize = true 364e56987cSopenharmony_ci debug = false 374e56987cSopenharmony_ci integer_overflow = true 384e56987cSopenharmony_ci ubsan = true 394e56987cSopenharmony_ci } 404e56987cSopenharmony_ci 414e56987cSopenharmony_ci deps = [ 424e56987cSopenharmony_ci "../../../frameworks/cert_manager_standard/main:cert_manager_standard_frameworks", 434e56987cSopenharmony_ci "../../../interfaces/innerkits/cert_manager_standard/main:cert_manager_sdk", 444e56987cSopenharmony_ci ] 454e56987cSopenharmony_ci defines = [ "_CM_LOG_ENABLE_" ] 464e56987cSopenharmony_ci external_deps = [ 474e56987cSopenharmony_ci "access_token:libaccesstoken_sdk", 484e56987cSopenharmony_ci "access_token:libnativetoken", 494e56987cSopenharmony_ci "access_token:libtoken_setproc", 504e56987cSopenharmony_ci "bounds_checking_function:libsec_static", 514e56987cSopenharmony_ci "c_utils:utils", 524e56987cSopenharmony_ci "googletest:gtest", 534e56987cSopenharmony_ci ] 544e56987cSopenharmony_ci} 55