• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2024-2025 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/dfs_service/distributedfile.gni")
16
17ohos_unittest("distributed_file_daemon_proxy_test") {
18  branch_protector_ret = "pac_ret"
19  sanitize = {
20    integer_overflow = true
21    cfi = true
22    cfi_cross_dso = true
23    debug = false
24    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
25  }
26
27  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
28
29  sources = [
30    "${distributedfile_path}/test/mock/message_parcel_mock.cpp",
31    "distributed_file_daemon_proxy_test.cpp",
32  ]
33
34  include_dirs = [
35    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
36    "${distributedfile_path}/frameworks/native/distributed_file_inner/include/asset",
37    "${distributedfile_path}/services/distributedfiledaemon/test/mock/include",
38    "${distributedfile_path}/test/mock",
39    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
40    "include",
41    "${services_path}/distributedfiledaemon/include/",
42    "${services_path}/distributedfiledaemon/include/ipc",
43  ]
44
45  deps = [
46    "${services_path}/distributedfiledaemon:distributed_file_daemon_kit_inner",
47    "${services_path}/distributedfiledaemon:libdistributedfiledaemon",
48    "${utils_path}:libdistributedfileutils",
49  ]
50
51  external_deps = [
52    "app_file_service:remote_file_share_native",
53    "c_utils:utils",
54    "device_manager:devicemanagersdk",
55    "googletest:gmock_main",
56    "googletest:gtest_main",
57    "hilog:libhilog",
58    "ipc:ipc_core",
59  ]
60
61  defines = [
62    "private=public",
63    "LOG_TAG=\"distributedfile_daemon\"",
64  ]
65
66  use_exceptions = true
67  part_name = "dfs_service"
68  subsystem_name = "filemanagement"
69}
70
71ohos_unittest("distributed_file_daemon_proxy_sup_test") {
72  branch_protector_ret = "pac_ret"
73  sanitize = {
74    integer_overflow = true
75    cfi = true
76    cfi_cross_dso = true
77    debug = false
78    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
79  }
80
81  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
82
83  sources = [
84    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/ipc_wrapper.cpp",
85    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_proxy.cpp",
86    "distributed_file_daemon_proxy_sup_test.cpp",
87  ]
88
89  include_dirs = [
90    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
91    "${distributedfile_path}/test/mock",
92    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
93    "include",
94    "${services_path}/distributedfiledaemon/include/",
95    "${services_path}/distributedfiledaemon/include/ipc",
96  ]
97
98  deps = [ "${utils_path}:libdistributedfileutils" ]
99
100  external_deps = [
101    "app_file_service:remote_file_share_native",
102    "c_utils:utils",
103    "device_manager:devicemanagersdk",
104    "googletest:gmock_main",
105    "googletest:gtest_main",
106    "hilog:libhilog",
107    "ipc:ipc_core",
108    "samgr:samgr_proxy",
109  ]
110
111  defines = [
112    "private=public",
113    "LOG_TAG=\"distributedfile_daemon\"",
114  ]
115
116  use_exceptions = true
117  part_name = "dfs_service"
118  subsystem_name = "filemanagement"
119}
120
121ohos_unittest("file_trans_listener_stub_test") {
122  branch_protector_ret = "pac_ret"
123  sanitize = {
124    integer_overflow = true
125    cfi = true
126    cfi_cross_dso = true
127    debug = false
128    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
129  }
130
131  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
132
133  sources = [
134    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/file_trans_listener_stub.cpp",
135    "${distributedfile_path}/test/mock/message_parcel_mock.cpp",
136    "file_trans_listener_stub_test.cpp",
137  ]
138
139  include_dirs = [
140    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
141    "${distributedfile_path}/test/mock",
142  ]
143
144  deps = [ "${utils_path}:libdistributedfileutils" ]
145
146  external_deps = [
147    "c_utils:utils",
148    "device_manager:devicemanagersdk",
149    "googletest:gmock_main",
150    "googletest:gtest_main",
151    "hilog:libhilog",
152    "ipc:ipc_core",
153  ]
154
155  defines = [
156    "private=public",
157    "LOG_TAG=\"distributedfile_daemon\"",
158  ]
159
160  use_exceptions = true
161  part_name = "dfs_service"
162  subsystem_name = "filemanagement"
163}
164
165ohos_unittest("asset_recv_callback_stub_test") {
166  branch_protector_ret = "pac_ret"
167  sanitize = {
168    integer_overflow = true
169    cfi = true
170    cfi_cross_dso = true
171    debug = false
172    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
173  }
174
175  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
176
177  sources = [
178    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp",
179    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_recv_callback_stub.cpp",
180    "asset/asset_recv_callback_stub_test.cpp",
181  ]
182
183  include_dirs = [
184    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
185    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
186    "include",
187    "${services_path}/distributedfiledaemon/include/",
188    "${services_path}/distributedfiledaemon/include/ipc",
189  ]
190
191  deps = [ "${utils_path}:libdistributedfileutils" ]
192
193  external_deps = [
194    "c_utils:utils",
195    "device_manager:devicemanagersdk",
196    "googletest:gmock_main",
197    "googletest:gtest_main",
198    "hilog:libhilog",
199    "ipc:ipc_core",
200  ]
201
202  defines = [
203    "private=public",
204    "LOG_TAG=\"distributedfile_daemon\"",
205  ]
206
207  use_exceptions = true
208  part_name = "dfs_service"
209  subsystem_name = "filemanagement"
210}
211
212ohos_unittest("asset_send_callback_stub_test") {
213  branch_protector_ret = "pac_ret"
214  sanitize = {
215    integer_overflow = true
216    cfi = true
217    cfi_cross_dso = true
218    debug = false
219    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
220  }
221
222  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
223
224  sources = [
225    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_obj.cpp",
226    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/asset/asset_send_callback_stub.cpp",
227    "asset/asset_send_callback_stub_test.cpp",
228  ]
229
230  include_dirs = [
231    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
232    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
233    "${distributedfile_path}/test/unittests/ipc",
234    "include",
235    "${services_path}/distributedfiledaemon/include/",
236    "${services_path}/distributedfiledaemon/include/ipc",
237  ]
238
239  deps = [ "${utils_path}:libdistributedfileutils" ]
240
241  external_deps = [
242    "c_utils:utils",
243    "device_manager:devicemanagersdk",
244    "googletest:gmock_main",
245    "googletest:gtest_main",
246    "hilog:libhilog",
247    "ipc:ipc_core",
248  ]
249
250  defines = [
251    "private=public",
252    "LOG_TAG=\"distributedfile_daemon\"",
253  ]
254
255  use_exceptions = true
256  part_name = "dfs_service"
257  subsystem_name = "filemanagement"
258}
259
260ohos_unittest("file_copy_manager_test") {
261  branch_protector_ret = "pac_ret"
262  sanitize = {
263    integer_overflow = true
264    cfi = true
265    cfi_cross_dso = true
266    debug = false
267    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
268  }
269
270  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
271
272  sources = [
273    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_manager_impl.cpp",
274    "copy/file_copy_manager_test.cpp",
275  ]
276
277  include_dirs = [
278    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
279    "${distributedfile_path}/frameworks/native/distributed_file_inner/include/copy",
280    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy",
281    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
282    "include",
283    "${services_path}/distributedfiledaemon/include/",
284    "${services_path}/distributedfiledaemon/include/ipc",
285  ]
286
287  deps = [
288    "${utils_path}:libdistributedfileutils",
289    "${services_path}/distributedfiledaemon:distributed_file_daemon_kit_inner",
290  ]
291
292  external_deps = [
293    "access_token:libaccesstoken_sdk",
294    "app_file_service:fileuri_native",
295    "app_file_service:remote_file_share_native",
296    "app_file_service:sandbox_helper_native",
297    "bundle_framework:appexecfwk_base",
298    "bundle_framework:appexecfwk_core",
299    "c_utils:utils",
300    "data_share:datashare_consumer",
301    "device_manager:devicemanagersdk",
302    "googletest:gmock_main",
303    "googletest:gtest_main",
304    "hilog:libhilog",
305    "ipc:ipc_core",
306    "libuv:uv",
307    "samgr:samgr_proxy",
308  ]
309
310  defines = [
311    "private=public",
312    "LOG_TAG=\"distributedfile_daemon\"",
313  ]
314
315  use_exceptions = true
316  part_name = "dfs_service"
317  subsystem_name = "filemanagement"
318}
319
320ohos_unittest("remote_file_copy_manager_test") {
321  branch_protector_ret = "pac_ret"
322  sanitize = {
323    integer_overflow = true
324    cfi = true
325    cfi_cross_dso = true
326    debug = false
327    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
328  }
329
330  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
331
332  sources = [
333    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/ipc_wrapper.cpp",
334    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_manager_impl.cpp",
335    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_proxy.cpp",
336    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/file_trans_listener_stub.cpp",
337    "copy/remote_file_copy_manager_test.cpp",
338  ]
339
340  include_dirs = [
341    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
342    "${distributedfile_path}/frameworks/native/distributed_file_inner/include/copy",
343    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy",
344    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
345    "include",
346    "${services_path}/distributedfiledaemon/include/",
347    "${services_path}/distributedfiledaemon/include/ipc",
348  ]
349
350  deps = [
351    "${utils_path}:libdistributedfileutils",
352    "${services_path}/distributedfiledaemon:distributed_file_daemon_kit_inner",
353    "${services_path}/distributedfiledaemon:libdistributedfiledaemon"
354  ]
355
356  external_deps = [
357    "access_token:libtokenid_sdk",
358    "app_file_service:fileuri_native",
359    "app_file_service:remote_file_share_native",
360    "app_file_service:sandbox_helper_native",
361    "bundle_framework:appexecfwk_base",
362    "bundle_framework:appexecfwk_core",
363    "c_utils:utils",
364    "data_share:datashare_consumer",
365    "device_manager:devicemanagersdk",
366    "googletest:gmock_main",
367    "googletest:gtest_main",
368    "hilog:libhilog",
369    "ipc:ipc_core",
370    "libuv:uv",
371    "samgr:samgr_proxy",
372  ]
373
374  defines = [
375    "private=public",
376    "LOG_TAG=\"distributedfile_daemon\"",
377  ]
378
379  use_exceptions = true
380  part_name = "dfs_service"
381  subsystem_name = "filemanagement"
382}
383
384ohos_unittest("trans_listener_test") {
385  branch_protector_ret = "pac_ret"
386  sanitize = {
387    integer_overflow = true
388    cfi = true
389    cfi_cross_dso = true
390    debug = false
391    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
392  }
393
394  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
395
396  sources = [
397    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/distributed_file_fd_guard.cpp",
398    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/file_copy_listener.cpp",
399    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/file_copy_manager.cpp",
400    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/file_size_utils.cpp",
401    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/ipc_wrapper.cpp",
402    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/trans_listener.cpp",
403    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_manager_impl.cpp",
404    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_proxy.cpp",
405    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/file_trans_listener_stub.cpp",
406    "copy/trans_listener_test.cpp",
407  ]
408
409  include_dirs = [
410    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
411    "${distributedfile_path}/frameworks/native/distributed_file_inner/include/copy",
412    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy",
413    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
414    "include",
415    "${services_path}/distributedfiledaemon/include/",
416    "${services_path}/distributedfiledaemon/include/ipc",
417  ]
418
419  deps = [ "${utils_path}:libdistributedfileutils" ]
420
421  external_deps = [
422    "access_token:libtokenid_sdk",
423    "app_file_service:fileuri_native",
424    "app_file_service:remote_file_share_native",
425    "app_file_service:sandbox_helper_native",
426    "bundle_framework:appexecfwk_base",
427    "bundle_framework:appexecfwk_core",
428    "c_utils:utils",
429    "data_share:datashare_consumer",
430    "device_manager:devicemanagersdk",
431    "googletest:gmock_main",
432    "googletest:gtest_main",
433    "hilog:libhilog",
434    "ipc:ipc_core",
435    "libuv:uv",
436    "samgr:samgr_proxy",
437  ]
438
439  defines = [
440    "private=public",
441    "LOG_TAG=\"distributedfile_daemon\"",
442  ]
443
444  use_exceptions = true
445  part_name = "dfs_service"
446  subsystem_name = "filemanagement"
447}
448
449ohos_unittest("file_size_utils_test") {
450  branch_protector_ret = "pac_ret"
451  sanitize = {
452    integer_overflow = true
453    cfi = true
454    cfi_cross_dso = true
455    debug = false
456    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
457  }
458
459  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
460
461  sources = [
462    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/distributed_file_fd_guard.cpp",
463    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/file_copy_listener.cpp",
464    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/file_copy_manager.cpp",
465    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/file_size_utils.cpp",
466    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/ipc_wrapper.cpp",
467    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/trans_listener.cpp",
468    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_manager_impl.cpp",
469    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_proxy.cpp",
470    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/file_trans_listener_stub.cpp",
471    "copy/file_size_utils_test.cpp",
472  ]
473
474  include_dirs = [
475    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
476    "${distributedfile_path}/frameworks/native/distributed_file_inner/include/copy",
477    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
478    "include",
479    "${services_path}/distributedfiledaemon/include/",
480    "${services_path}/distributedfiledaemon/include/ipc",
481  ]
482
483  deps = [ "${utils_path}:libdistributedfileutils" ]
484
485  external_deps = [
486    "access_token:libtokenid_sdk",
487    "app_file_service:fileuri_native",
488    "app_file_service:remote_file_share_native",
489    "app_file_service:sandbox_helper_native",
490    "bundle_framework:appexecfwk_base",
491    "bundle_framework:appexecfwk_core",
492    "c_utils:utils",
493    "data_share:datashare_consumer",
494    "device_manager:devicemanagersdk",
495    "googletest:gmock_main",
496    "googletest:gtest_main",
497    "hilog:libhilog",
498    "ipc:ipc_core",
499    "libuv:uv",
500    "samgr:samgr_proxy",
501  ]
502
503  defines = [
504    "private=public",
505    "LOG_TAG=\"distributedfile_daemon\"",
506  ]
507
508  use_exceptions = true
509  part_name = "dfs_service"
510  subsystem_name = "filemanagement"
511}
512
513ohos_unittest("file_copy_listener_test") {
514  branch_protector_ret = "pac_ret"
515  sanitize = {
516    integer_overflow = true
517    cfi = true
518    cfi_cross_dso = true
519    debug = false
520    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
521  }
522
523  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
524
525  sources = [
526    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/file_copy_listener.cpp",
527    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/file_size_utils.cpp",
528    "copy/file_copy_listener_test.cpp",
529  ]
530
531  include_dirs = [
532    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
533    "${distributedfile_path}/frameworks/native/distributed_file_inner/include/copy",
534    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy",
535    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
536    "include",
537    "${services_path}/distributedfiledaemon/include/",
538    "${services_path}/distributedfiledaemon/include/ipc",
539  ]
540
541  deps = [ "${utils_path}:libdistributedfileutils" ]
542
543  external_deps = [
544    "ability_base:zuri",
545    "app_file_service:fileuri_native",
546    "c_utils:utils",
547    "googletest:gmock_main",
548    "googletest:gtest_main",
549    "hilog:libhilog",
550  ]
551
552  defines = [
553    "private=public",
554    "LOG_TAG=\"distributedfile_daemon\"",
555  ]
556
557  use_exceptions = true
558  part_name = "dfs_service"
559  subsystem_name = "filemanagement"
560}
561
562ohos_unittest("file_mount_manager_test") {
563  branch_protector_ret = "pac_ret"
564  sanitize = {
565    integer_overflow = true
566    cfi = true
567    cfi_cross_dso = true
568    debug = false
569    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
570  }
571
572  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
573
574  sources = [
575    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/file_mount_manager.cpp",
576    "file_mount_manager_test.cpp",
577  ]
578
579  include_dirs = [
580    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
581    "${distributedfile_path}/services/distributedfiledaemon/test/mock/include",
582    "${distributedfile_path}/test/mock",
583    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
584    "include",
585    "${services_path}/distributedfiledaemon/include/",
586    "${services_path}/distributedfiledaemon/include/ipc",
587  ]
588
589  deps = [
590    "${services_path}/distributedfiledaemon:distributed_file_daemon_kit_inner",
591    "${services_path}/distributedfiledaemon:libdistributedfiledaemon",
592    "${utils_path}:libdistributedfileutils",
593  ]
594
595  external_deps = [
596    "app_file_service:remote_file_share_native",
597    "c_utils:utils",
598    "device_manager:devicemanagersdk",
599    "googletest:gmock_main",
600    "googletest:gtest_main",
601    "hilog:libhilog",
602    "ipc:ipc_core",
603  ]
604
605  defines = [
606    "private=public",
607    "LOG_TAG=\"distributedfile_daemon\"",
608  ]
609
610  use_exceptions = true
611  part_name = "dfs_service"
612  subsystem_name = "filemanagement"
613}
614
615ohos_unittest("distributed_file_fd_guard_test") {
616  branch_protector_ret = "pac_ret"
617  sanitize = {
618    integer_overflow = true
619    cfi = true
620    cfi_cross_dso = true
621    debug = false
622    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
623  }
624
625  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
626
627  sources = [
628    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/distributed_file_fd_guard.cpp",
629    "copy/distributed_file_fd_guard_test.cpp",
630  ]
631
632  include_dirs = [
633    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
634    "${distributedfile_path}/frameworks/native/distributed_file_inner/include/copy",
635    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
636    "include",
637    "${services_path}/distributedfiledaemon/include/",
638    "${services_path}/distributedfiledaemon/include/ipc",
639  ]
640
641  deps = [ "${utils_path}:libdistributedfileutils" ]
642
643  external_deps = [
644    "c_utils:utils",
645    "hilog:libhilog",
646  ]
647
648  defines = [
649    "private=public",
650    "LOG_TAG=\"distributedfile_daemon\"",
651  ]
652
653  use_exceptions = true
654  part_name = "dfs_service"
655  subsystem_name = "filemanagement"
656}
657
658ohos_unittest("ipc_wrapper_test") {
659  branch_protector_ret = "pac_ret"
660  sanitize = {
661    integer_overflow = true
662    cfi = true
663    cfi_cross_dso = true
664    debug = false
665    blocklist = "${distributedfile_path}/cfi_blocklist.txt"
666  }
667
668  module_out_path = "dfs_service/dfs_service_daemon/distributedfiledaemon"
669
670  sources = [
671    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/copy/ipc_wrapper.cpp",
672    "${distributedfile_path}/test/mock/message_parcel_mock.cpp",
673    "copy/ipc_wrapper_test.cpp",
674  ]
675
676  include_dirs = [
677    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
678    "${distributedfile_path}/frameworks/native/distributed_file_inner/include/copy",
679    "${distributedfile_path}/test/mock",
680    "${distributedfile_path}/test/unittests/distributed_file_daemon/include",
681    "include",
682    "${services_path}/distributedfiledaemon/include/",
683    "${services_path}/distributedfiledaemon/include/ipc",
684  ]
685
686  deps = [ "${utils_path}:libdistributedfileutils" ]
687
688  external_deps = [
689    "access_token:libtokenid_sdk",
690    "app_file_service:fileuri_native",
691    "app_file_service:remote_file_share_native",
692    "app_file_service:sandbox_helper_native",
693    "bundle_framework:appexecfwk_base",
694    "bundle_framework:appexecfwk_core",
695    "c_utils:utils",
696    "data_share:datashare_consumer",
697    "device_manager:devicemanagersdk",
698    "googletest:gmock_main",
699    "googletest:gtest_main",
700    "hilog:libhilog",
701    "ipc:ipc_core",
702    "libuv:uv",
703    "samgr:samgr_proxy",
704  ]
705
706  defines = [
707    "private=public",
708    "LOG_TAG=\"distributedfile_daemon\"",
709  ]
710
711  use_exceptions = true
712  part_name = "dfs_service"
713  subsystem_name = "filemanagement"
714}
715
716group("distributed_file_inner") {
717  testonly = true
718
719  deps = [
720    ":asset_recv_callback_stub_test",
721    ":asset_send_callback_stub_test",
722    ":distributed_file_daemon_proxy_sup_test",
723    ":distributed_file_daemon_proxy_test",
724    ":distributed_file_fd_guard_test",
725    ":file_copy_listener_test",
726    ":file_copy_manager_test",
727    ":file_mount_manager_test",
728    ":file_size_utils_test",
729    ":file_trans_listener_stub_test",
730    ":ipc_wrapper_test",
731    ":remote_file_copy_manager_test",
732    ":trans_listener_test",
733  ]
734}
735