• 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")
15import("//foundation/filemanagement/storage_service/storage_service_aafwk.gni")
16
17ohos_unittest("notification_test") {
18  module_out_path = "filemanagement/storage_service/storage_manager"
19
20  sources = [
21    "${storage_manager_path}/volume/src/notification.cpp",
22    "notification_test.cpp",
23  ]
24
25  include_dirs = [
26    "${storage_interface_path}/innerkits/storage_manager/native",
27    "${storage_service_common_path}/include",
28    "${storage_daemon_path}/include",
29    "${storage_manager_path}/include",
30    "${storage_service_path}/utils/include",
31    "include",
32  ]
33
34  defines = [
35    "STORAGE_LOG_TAG = \"StorageManager\"",
36    "LOG_DOMAIN = 0xD004300",
37  ]
38
39  deps = [ "//third_party/googletest:gtest_main" ]
40
41  external_deps = [
42    "ability_base:base",
43    "ability_base:want",
44    "c_utils:utils",
45    "common_event_service:cesfwk_innerkits",
46    "hilog:libhilog",
47    "ipc:ipc_core",
48    "safwk:system_ability_fwk",
49    "samgr:samgr_proxy",
50    "storage_service:storage_manager_sa_proxy",
51  ]
52}
53
54ohos_unittest("volume_manager_service_test") {
55  module_out_path = "filemanagement/storage_service/storage_manager"
56
57  sources = [
58    "${storage_manager_path}/disk/src/disk_manager_service.cpp",
59    "${storage_manager_path}/storage_daemon_communication/src/storage_daemon_communication.cpp",
60    "${storage_manager_path}/volume/src/notification.cpp",
61    "${storage_manager_path}/volume/src/volume_manager_service.cpp",
62    "volume_manager_service_test.cpp",
63  ]
64
65  include_dirs = [
66    "${storage_interface_path}/innerkits/storage_manager/native",
67    "${storage_service_common_path}/include",
68    "${storage_daemon_path}/include",
69    "${storage_manager_path}/include",
70    "${storage_interface_path}/innerkits/storage_manager/native",
71    "${storage_service_path}/utils/include",
72    "include",
73  ]
74
75  defines = [
76    "STORAGE_LOG_TAG = \"StorageManager\"",
77    "LOG_DOMAIN = 0xD004300",
78  ]
79
80  deps = [ "//third_party/googletest:gtest_main" ]
81
82  external_deps = [
83    "ability_base:base",
84    "ability_base:want",
85    "c_utils:utils",
86    "common_event_service:cesfwk_innerkits",
87    "hilog:libhilog",
88    "ipc:ipc_core",
89    "safwk:system_ability_fwk",
90    "samgr:samgr_proxy",
91    "storage_service:storage_manager_sa_proxy",
92  ]
93}
94
95group("storage_manager_volume_test") {
96  testonly = true
97  deps = [
98    ":notification_test",
99    ":volume_manager_service_test",
100  ]
101}
102