14e56987cSopenharmony_ci# Copyright (c) 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_multi_thread_test") { 194e56987cSopenharmony_ci module_out_path = module_output_path 204e56987cSopenharmony_ci sources = [ 214e56987cSopenharmony_ci "../src/cm_test_common.cpp", 224e56987cSopenharmony_ci "src/cm_app_cert_multi_thread_test.cpp", 234e56987cSopenharmony_ci "src/cm_get_auth_list_multi_thread_test.cpp", 244e56987cSopenharmony_ci "src/cm_grant_multi_thread_test.cpp", 254e56987cSopenharmony_ci "src/cm_remove_grant_multi_thread_test.cpp", 264e56987cSopenharmony_ci ] 274e56987cSopenharmony_ci 284e56987cSopenharmony_ci include_dirs = [ "../include" ] 294e56987cSopenharmony_ci cflags_cc = [ 304e56987cSopenharmony_ci "-Wall", 314e56987cSopenharmony_ci "-Werror", 324e56987cSopenharmony_ci ] 334e56987cSopenharmony_ci cflags = cflags_cc 344e56987cSopenharmony_ci branch_protector_ret = "pac_ret" 354e56987cSopenharmony_ci sanitize = { 364e56987cSopenharmony_ci cfi = true 374e56987cSopenharmony_ci cfi_cross_dso = true 384e56987cSopenharmony_ci boundary_sanitize = true 394e56987cSopenharmony_ci debug = false 404e56987cSopenharmony_ci integer_overflow = true 414e56987cSopenharmony_ci ubsan = true 424e56987cSopenharmony_ci } 434e56987cSopenharmony_ci 444e56987cSopenharmony_ci deps = [ 454e56987cSopenharmony_ci "../../../frameworks/cert_manager_standard/main:cert_manager_standard_frameworks", 464e56987cSopenharmony_ci "../../../interfaces/innerkits/cert_manager_standard/main:cert_manager_sdk", 474e56987cSopenharmony_ci ] 484e56987cSopenharmony_ci defines = [ "_CM_LOG_ENABLE_" ] 494e56987cSopenharmony_ci external_deps = [ 504e56987cSopenharmony_ci "access_token:libaccesstoken_sdk", 514e56987cSopenharmony_ci "access_token:libnativetoken", 524e56987cSopenharmony_ci "access_token:libtoken_setproc", 534e56987cSopenharmony_ci "bounds_checking_function:libsec_static", 544e56987cSopenharmony_ci "c_utils:utils", 554e56987cSopenharmony_ci "googletest:gtest", 564e56987cSopenharmony_ci ] 574e56987cSopenharmony_ci} 58