• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
13
14import("//build/test.gni")
15
16ROOT_DIR = "//foundation/filemanagement/storage_service/services"
17
18ohos_unittest("storage_manager_clt_test") {
19  module_out_path = "filemanagement/storage_service/storage_manager"
20
21  sources = [
22    "$ROOT_DIR/storage_manager/client/storage_manager_client.cpp",
23    "$ROOT_DIR/storage_manager/client/test/get_self_permissions.cpp",
24    "$ROOT_DIR/storage_manager/client/test/storage_manager_client_test.cpp",
25  ]
26
27  include_dirs = [
28    "$ROOT_DIR/storage_manager/include",
29    "$ROOT_DIR/common/include",
30    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
31    "//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk",
32    "//foundation/systemabilitymgr/samgr/utils/native/include",
33  ]
34
35  defines = [
36    "STORAGE_LOG_TAG = \"StorageManager\"",
37    "LOG_DOMAIN = 0xD004300",
38  ]
39
40  deps = [ "//third_party/googletest:gtest_main" ]
41
42  external_deps = [
43    "access_token:libaccesstoken_sdk",
44    "access_token:libnativetoken",
45    "access_token:libtoken_setproc",
46    "c_utils:utils",
47    "hiviewdfx_hilog_native:libhilog",
48    "ipc:ipc_core",
49    "samgr:samgr_proxy",
50    "storage_service:storage_manager_sa_proxy",
51  ]
52}
53
54group("storage_manager_client_test") {
55  testonly = true
56  deps = [ ":storage_manager_clt_test" ]
57}
58