1# Copyright (C) 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. 13import("//test/xts/tools/build/suite.gni") 14 15module_output_path = "dcts/distributeddatamgr" 16 17############################################################################################### 18config("module_private_config") { 19 visibility = [ ":*" ] 20 include_dirs = [ 21 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include/permission", 22 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include/account", 23 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include", 24 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include/broadcaster", 25 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/include/utils", 26 "//foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/include", 27 "//foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src", 28 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/app_distributeddata/include", 29 "//commonlibrary/c_utils/base/include", 30 "//utils/system/safwk/native/ include", 31 "../include", 32 "../../../../interfaces/innerkits/distributeddata", 33 "//third_party/json/single_include", 34 "//base/powermgr/power_manager/interfaces/innerkits/native/include", 35 "../../common", 36 "../../../common", 37 ] 38} 39 40ohos_moduletest_suite("DctsdisDataTest") { 41 module_out_path = module_output_path 42 43 sources = [ 44 "../../../common/shm_utils.cpp", 45 "./disdata_func_test.cpp", 46 ] 47 48 configs = [ ":module_private_config" ] 49 50 deps = [ 51 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter:distributeddata_adapter", 52 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata:distributeddata_inner", 53 "//third_party/googletest:gtest_main", 54 ] 55 56 external_deps = [ 57 "c_utils:utils", 58 "hiviewdfx_hilog_native:libhilog", 59 "ipc:ipc_core", 60 ] 61 subsystem_name = "distributeddatamgr" 62 part_name = "kv_store" 63} 64########################################################################################### 65