1# Copyright (C) 2023 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/test.gni") 15import("//foundation/bundlemanager/app_domain_verify/app_domain_verify.gni") 16 17config("module_private_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "./mock", 22 "${app_domain_verify_client_path}/include", 23 "${app_domain_verify_service_path}/include", 24 "${app_domain_verify_common_path}/include", 25 "${app_domain_verify_frameworks_common_path}/include", 26 "${app_domain_verify_frameworks_common_path}/include/utils", 27 "${app_domain_verify_frameworks_common_path}/include/httpsession", 28 "${app_domain_verify_frameworks_verifier_path}/include", 29 "${app_domain_verify_frameworks_extension_path}/include", 30 "${app_domain_verify_service_path}/include/agent/core", 31 "${app_domain_verify_service_path}/include/agent/zidl", 32 "${app_domain_verify_service_path}/include/agent/bms", 33 "${app_domain_verify_service_path}/include/manager/rdb", 34 "${app_domain_verify_service_path}/include/manager/core", 35 "${app_domain_verify_service_path}/include/manager/constant", 36 "${app_domain_verify_service_path}/include/manager/zidl", 37 ] 38 cflags = [ "-fno-exceptions" ] 39 cflags_cc = [ "-fno-exceptions" ] 40} 41 42module_output_path = "app_domain_verify/app_domain_verify" 43 44ohos_unittest("app_domain_verify_bean_parcel_test") { 45 module_out_path = module_output_path 46 47 sources = [ 48 "${app_domain_verify_common_path}/src/app_verify_base_info.cpp", 49 "${app_domain_verify_common_path}/src/bundle_verify_status_info.cpp", 50 "${app_domain_verify_common_path}/src/skill_uri.cpp", 51 "bean_parcel_test.cpp", 52 "mock/parcel.cpp", 53 ] 54 configs = [ ":module_private_config" ] 55 external_deps = [ 56 "c_utils:utils", 57 "hilog:libhilog", 58 "json:nlohmann_json_static", 59 ] 60 61 defines = [ "API_EXPORT=__attribute__((visibility (\"default\")))" ] 62 deps = [ 63 "//third_party/googletest:gmock_main", 64 "//third_party/googletest:gtest_main", 65 ] 66} 67