# Copyright (C) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") ROOT_DIR = "//foundation/filemanagement/storage_service/services" ohos_unittest("storage_manager_clt_test") { module_out_path = "filemanagement/storage_service/storage_manager" sources = [ "$ROOT_DIR/storage_manager/client/storage_manager_client.cpp", "$ROOT_DIR/storage_manager/client/test/get_self_permissions.cpp", "$ROOT_DIR/storage_manager/client/test/storage_manager_client_test.cpp", ] include_dirs = [ "$ROOT_DIR/storage_manager/include", "$ROOT_DIR/common/include", "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include", "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk", "//foundation/systemabilitymgr/samgr/utils/native/include", ] defines = [ "STORAGE_LOG_TAG = \"StorageManager\"", "LOG_DOMAIN = 0xD004300", ] deps = [ "//third_party/googletest:gtest_main" ] external_deps = [ "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", "samgr:samgr_proxy", "storage_service:storage_manager_sa_proxy", ] } group("storage_manager_client_test") { testonly = true deps = [ ":storage_manager_clt_test" ] }