• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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
16ohos_unittest("storage_manager_proxy_test") {
17  module_out_path = "filemanagement/storage_service/storage_manager"
18
19  sources = [
20    "//foundation/filemanagement/storage_service/services/storage_manager/disk/src/disk_manager_service.cpp",
21    "//foundation/filemanagement/storage_service/services/storage_manager/ipc/src/storage_manager_proxy.cpp",
22    "//foundation/filemanagement/storage_service/services/storage_manager/storage_daemon_communication/src/storage_daemon_communication.cpp",
23    "//foundation/filemanagement/storage_service/services/storage_manager/volume/src/notification.cpp",
24    "//foundation/filemanagement/storage_service/services/storage_manager/volume/src/volume_manager_service.cpp",
25    "storage_manager_proxy_test.cpp",
26  ]
27
28  include_dirs = [
29    "//foundation/aafwk/standard/interfaces/innerkits/base/include/ohos/aafwk/base",
30    "//foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native",
31    "//foundation/filemanagement/storage_service/services/common/include",
32    "//foundation/filemanagement/storage_service/services/storage_daemon/include",
33    "//foundation/filemanagement/storage_service/services/storage_manager/include",
34    "//foundation/filemanagement/storage_service/utils/include",
35    "include",
36    "//third_party/googletest/googlemock/include/gmock",
37    "//utils/system/safwk/native/include",
38    "//utils/native/base/include",
39  ]
40
41  defines = [
42    "STORAGE_LOG_TAG = \"StorageManager\"",
43    "LOG_DOMAIN = 0xD004300",
44  ]
45
46  deps = [
47    "//third_party/googletest:gmock_main",
48    "//third_party/googletest:gtest_main",
49  ]
50
51  external_deps = [
52    "ability_base:base",
53    "ability_base:want",
54    "ces_standard:cesfwk_innerkits",
55    "hiviewdfx_hilog_native:libhilog",
56    "ipc:ipc_core",
57    "safwk:system_ability_fwk",
58    "samgr_standard:samgr_proxy",
59    "storage_service:storage_manager_sa_proxy",
60  ]
61}
62
63group("storage_manager_ipc_test") {
64  testonly = true
65  deps = [ ":storage_manager_proxy_test" ]
66}
67