• 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.
13import("//build/test.gni")
14import("../../../../bluetooth_part.gni")
15import("../../../../castplus_cast_engine_part.gni")
16import("../../../../config.gni")
17import("../../../../efficiency_manager_part.gni")
18
19module_output_path = "multimedia_av_session/session"
20
21###############################################################################
22config("module_private_config") {
23  visibility = [ ":*" ]
24
25  include_dirs = [
26    "../../ipc/base/",
27    "../../ipc/proxy/",
28    "../../ipc/stub/",
29    "../../server/",
30    "../../server/migrate/",
31    "../../server/softbus/",
32    "../../server/remote/",
33    "../../../../interfaces/inner_api/native/session/include/",
34    "../../../../frameworks/native/session/include",
35    "../../adapter/",
36    "../../../../utils/include/",
37  ]
38}
39
40common_deps = [
41  "../../../../frameworks/common:avsession_common",
42  "../../../../frameworks/native/session:avsession_client",
43  "../../../../utils:avsession_utils",
44  "../../../session:avsession_item",
45  "../../../session:avsession_service",
46  "//third_party/bounds_checking_function:libsec_shared",
47  "//third_party/googletest:gtest_main",
48]
49
50common_external_deps = [
51  "ability_base:want",
52  "ability_runtime:wantagent_innerkits",
53  "access_token:libaccesstoken_sdk",
54  "access_token:libnativetoken",
55  "access_token:libtoken_setproc",
56  "audio_framework:audio_client",
57  "background_task_mgr:bgtaskmgr_innerkits",
58  "c_utils:utils",
59  "device_manager:devicemanagersdk",
60  "dsoftbus:softbus_client",
61  "hilog:libhilog",
62  "image_framework:image_native",
63  "input:libmmi-client",
64  "ipc:ipc_single",
65  "jsoncpp:jsoncpp",
66  "samgr:samgr_proxy",
67  "window_manager:libdm_lite",
68]
69
70ohos_unittest("ParamsConfigOperatorTest") {
71  module_out_path = module_output_path
72
73  sources = [ "params_config_operator_test.cpp" ]
74
75  configs = [ ":module_private_config" ]
76
77  cflags_cc = [ "--coverage" ]
78
79  ldflags = [ "--coverage" ]
80
81  deps = common_deps
82
83  external_deps = common_external_deps
84}
85
86ohos_unittest("PermissionCheckerTest") {
87  module_out_path = module_output_path
88
89  sources = [ "permission_checker_test.cpp" ]
90
91  configs = [ ":module_private_config" ]
92
93  cflags_cc = [ "--coverage" ]
94
95  ldflags = [ "--coverage" ]
96
97  deps = common_deps
98
99  external_deps = common_external_deps
100}
101
102ohos_unittest("CommandSendLimitTest") {
103  module_out_path = module_output_path
104
105  sources = [ "command_send_limit_test.cpp" ]
106
107  configs = [ ":module_private_config" ]
108
109  cflags_cc = [ "--coverage" ]
110
111  ldflags = [ "--coverage" ]
112
113  deps = common_deps
114
115  external_deps = common_external_deps
116}
117
118ohos_unittest("AVSessionServiceProxyTest") {
119  module_out_path = module_output_path
120
121  sources = [ "avsession_service_proxy_test.cpp" ]
122
123  configs = [ ":module_private_config" ]
124
125  cflags_cc = [ "--coverage" ]
126
127  ldflags = [ "--coverage" ]
128
129  deps = common_deps
130
131  external_deps = common_external_deps
132}
133
134ohos_unittest("AVSessionServiceStubPermissionTest") {
135  module_out_path = module_output_path
136
137  sources = [ "avsession_service_stub_permission_test.cpp" ]
138
139  configs = [ ":module_private_config" ]
140
141  cflags_cc = [ "--coverage" ]
142
143  ldflags = [ "--coverage" ]
144
145  deps = common_deps
146
147  external_deps = common_external_deps
148
149  external_deps += [ "ability_base:base" ]
150}
151
152ohos_unittest("AVSessionServiceStubTest") {
153  module_out_path = module_output_path
154
155  sources = [ "avsession_service_stub_test.cpp" ]
156
157  configs = [ ":module_private_config" ]
158
159  cflags_cc = [ "--coverage" ]
160
161  ldflags = [ "--coverage" ]
162
163  deps = common_deps
164
165  external_deps = common_external_deps
166
167  external_deps += [ "ability_base:base" ]
168}
169
170ohos_unittest("AVSessionProxyTest") {
171  module_out_path = module_output_path
172
173  sources = [ "avsession_proxy_test.cpp" ]
174
175  configs = [ ":module_private_config" ]
176
177  cflags_cc = [ "--coverage" ]
178
179  ldflags = [ "--coverage" ]
180
181  deps = common_deps
182
183  external_deps = common_external_deps
184}
185
186ohos_unittest("AbilityManagerAdapterDemoTest") {
187  module_out_path = module_output_path
188
189  sources = [ "ability_manager_adapter_test.cpp" ]
190
191  configs = [ ":module_private_config" ]
192
193  cflags_cc = [ "--coverage" ]
194
195  ldflags = [ "--coverage" ]
196
197  deps = common_deps
198
199  external_deps = common_external_deps
200}
201
202ohos_unittest("AVControllerCallbackStubTest") {
203  module_out_path = module_output_path
204
205  sources = [ "avcontroller_callback_stub_test.cpp" ]
206
207  configs = [ ":module_private_config" ]
208
209  cflags_cc = [ "--coverage" ]
210
211  ldflags = [ "--coverage" ]
212
213  deps = common_deps
214
215  external_deps = common_external_deps
216
217  external_deps += [ "ability_base:base" ]
218}
219
220ohos_unittest("AVSessionControllerStubTest") {
221  module_out_path = module_output_path
222
223  sources = [ "avsession_controller_stub_test.cpp" ]
224
225  configs = [ ":module_private_config" ]
226
227  cflags_cc = [ "--coverage" ]
228
229  ldflags = [ "--coverage" ]
230
231  deps = common_deps
232
233  external_deps = common_external_deps
234
235  external_deps += [ "ability_base:base" ]
236}
237
238ohos_unittest("AVSessionDumperTest") {
239  module_out_path = module_output_path
240
241  sources = [ "avsession_dumper_test.cpp" ]
242
243  configs = [ ":module_private_config" ]
244
245  cflags_cc = [ "--coverage" ]
246
247  ldflags = [ "--coverage" ]
248
249  deps = common_deps
250
251  external_deps = common_external_deps
252
253  external_deps += [ "ability_base:base" ]
254}
255
256ohos_unittest("SessionListenerStubTest") {
257  module_out_path = module_output_path
258
259  sources = [ "session_listener_stub_test.cpp" ]
260
261  configs = [ ":module_private_config" ]
262
263  cflags_cc = [ "--coverage" ]
264
265  ldflags = [ "--coverage" ]
266
267  deps = common_deps
268
269  external_deps = common_external_deps
270
271  external_deps += [ "ability_base:base" ]
272}
273
274ohos_unittest("AVSessionCallbackStubTest") {
275  module_out_path = module_output_path
276
277  sources = [ "avsession_callback_stub_test.cpp" ]
278
279  configs = [ ":module_private_config" ]
280
281  cflags_cc = [ "--coverage" ]
282
283  ldflags = [ "--coverage" ]
284
285  deps = common_deps
286
287  external_deps = common_external_deps
288
289  external_deps += [ "ability_base:base" ]
290}
291
292ohos_unittest("AVControllerCallbackProxyTest") {
293  module_out_path = module_output_path
294
295  sources = [ "avcontroller_callback_proxy_test.cpp" ]
296
297  configs = [ ":module_private_config" ]
298
299  cflags_cc = [ "--coverage" ]
300
301  ldflags = [ "--coverage" ]
302
303  deps = common_deps
304
305  external_deps = common_external_deps
306}
307
308ohos_unittest("AVSessionCallbackProxyTest") {
309  module_out_path = module_output_path
310
311  sources = [ "avsession_callback_proxy_test.cpp" ]
312
313  configs = [ ":module_private_config" ]
314
315  cflags_cc = [ "--coverage" ]
316
317  ldflags = [ "--coverage" ]
318
319  deps = common_deps
320
321  external_deps = common_external_deps
322}
323
324ohos_unittest("AVSessionControllerProxyTest") {
325  module_out_path = module_output_path
326
327  sources = [ "avsession_controller_proxy_test.cpp" ]
328
329  configs = [ ":module_private_config" ]
330
331  cflags_cc = [ "--coverage" ]
332
333  ldflags = [ "--coverage" ]
334
335  deps = common_deps
336
337  external_deps = common_external_deps
338}
339
340ohos_unittest("SessionListenerProxyTest") {
341  module_out_path = module_output_path
342
343  sources = [ "session_listener_proxy_test.cpp" ]
344
345  configs = [ ":module_private_config" ]
346
347  cflags_cc = [ "--coverage" ]
348
349  ldflags = [ "--coverage" ]
350
351  deps = common_deps
352
353  external_deps = common_external_deps
354}
355
356ohos_unittest("BundleStatusAdapterTest") {
357  module_out_path = module_output_path
358
359  sources = [ "bundle_status_adapter_test.cpp" ]
360
361  configs = [ ":module_private_config" ]
362
363  cflags_cc = [ "--coverage" ]
364
365  ldflags = [ "--coverage" ]
366
367  deps = common_deps
368
369  external_deps = common_external_deps
370}
371
372ohos_unittest("MigrateAVSessionTest") {
373  module_out_path = module_output_path
374
375  sources = [ "migrate_avsession_test.cpp" ]
376
377  cflags_cc = [ "--coverage" ]
378
379  ldflags = [ "--coverage" ]
380
381  configs = [ ":module_private_config" ]
382
383  deps = [
384    "../../../../frameworks/common:avsession_common",
385    "../../../../frameworks/native/session:avsession_client",
386    "../../../../utils:avsession_utils",
387    "../../../session:avsession_item",
388    "../../../session:avsession_server",
389    "../../../session:avsession_service",
390    "//third_party/bounds_checking_function:libsec_shared",
391    "//third_party/googletest:gtest_main",
392    "//third_party/jsoncpp:jsoncpp",
393  ]
394
395  external_deps = [
396    "ability_base:want",
397    "ability_runtime:wantagent_innerkits",
398    "access_token:libaccesstoken_sdk",
399    "access_token:libnativetoken_shared",
400    "access_token:libtokensetproc_shared",
401    "audio_framework:audio_client",
402    "background_task_mgr:bgtaskmgr_innerkits",
403    "c_utils:utils",
404    "device_manager:devicemanagersdk",
405    "dsoftbus:softbus_client",
406    "hilog:libhilog",
407    "input:libmmi-client",
408    "ipc:ipc_single",
409    "samgr:samgr_proxy",
410    "window_manager:libdm_lite",
411  ]
412
413  cflags = []
414
415  if (bluetooth_part_enable) {
416    cflags += [ "-DBLUETOOTH_ENABLE" ]
417    external_deps += [ "bluetooth:btframework" ]
418  }
419
420  if (efficiency_manager_enable_in_avsession) {
421    cflags += [ "-DEFFICIENCY_MANAGER_ENABLE" ]
422  }
423
424  if (multimedia_av_session_enable_trace_control) {
425    cflags += [ "-DENBABLE_AVSESSION_TRACE_CONTROL" ]
426    external_deps += [ "hitrace:hitrace_meter" ]
427  }
428
429  if (multimedia_av_session_enable_sysevent_control) {
430    cflags += [ "-DENABLE_AVSESSION_SYSEVENT_CONTROL" ]
431    external_deps += [ "hisysevent:libhisysevent" ]
432  }
433}
434
435ohos_unittest("SoftbusSessionManagerTest") {
436  module_out_path = module_output_path
437
438  sources = [ "softbus_session_manager_test.cpp" ]
439
440  cflags_cc = [ "--coverage" ]
441
442  ldflags = [ "--coverage" ]
443
444  configs = [ ":module_private_config" ]
445
446  deps = [
447    "../../../session:avsession_server",
448    "//third_party/bounds_checking_function:libsec_shared",
449    "//third_party/googletest:gtest_main",
450  ]
451
452  external_deps = [
453    "ability_base:want",
454    "ability_runtime:wantagent_innerkits",
455    "access_token:libaccesstoken_sdk",
456    "access_token:libnativetoken_shared",
457    "access_token:libtokensetproc_shared",
458    "audio_framework:audio_client",
459    "c_utils:utils",
460    "device_manager:devicemanagersdk",
461    "dsoftbus:softbus_client",
462    "hilog:libhilog",
463    "input:libmmi-client",
464    "ipc:ipc_single",
465    "samgr:samgr_proxy",
466    "window_manager:libdm_lite",
467  ]
468}
469
470ohos_unittest("AVSessionServiceTest") {
471  module_out_path = module_output_path
472
473  sources = [ "avsession_service_test.cpp" ]
474
475  configs = [ ":module_private_config" ]
476
477  deps = [
478    "../../../../frameworks/common:avsession_common",
479    "../../../../frameworks/native/session:avsession_client",
480    "../../../../services/session:avsession_item",
481    "../../../../services/session:avsession_service",
482    "../../../../utils:avsession_utils",
483    "//third_party/bounds_checking_function:libsec_shared",
484    "//third_party/googletest:gtest_main",
485  ]
486
487  external_deps = [
488    "ability_base:want",
489    "ability_runtime:wantagent_innerkits",
490    "access_token:libaccesstoken_sdk",
491    "access_token:libnativetoken_shared",
492    "access_token:libtokensetproc_shared",
493    "audio_framework:audio_client",
494    "background_task_mgr:bgtaskmgr_innerkits",
495    "c_utils:utils",
496    "device_manager:devicemanagersdk",
497    "dsoftbus:softbus_client",
498    "hilog:libhilog",
499    "image_framework:image_native",
500    "input:libmmi-client",
501    "ipc:ipc_single",
502    "samgr:samgr_proxy",
503    "window_manager:libdm_lite",
504  ]
505
506  cflags = []
507  if (castplus_cast_engine_enable) {
508    cflags += [ "-DCASTPLUS_CAST_ENGINE_ENABLE" ]
509    deps += [
510      "../../../../frameworks/native/session:avsession_cast_client",
511      "../../../../services/session:avsession_cast_item",
512      "../../../../services/session:avsession_router",
513    ]
514    external_deps += [
515      "CollaborationFwk:cfwk_allconnect_client",
516      "CollaborationFwk:collaborationfwk_client",
517      "cast_engine:cast_engine_client",
518    ]
519  }
520
521  if (bluetooth_part_enable) {
522    cflags += [ "-DBLUETOOTH_ENABLE" ]
523    external_deps += [ "bluetooth:btframework" ]
524  }
525}
526
527ohos_unittest("AppManagerAdapterTest") {
528  module_out_path = module_output_path
529
530  sources = [ "appmanager_adapter_test.cpp" ]
531
532  configs = [ ":module_private_config" ]
533
534  deps = [
535    "./../../../session:avsession_item",
536    "./../../../session:avsession_service",
537    "//third_party/bounds_checking_function:libsec_shared",
538    "//third_party/googletest:gtest_main",
539  ]
540
541  external_deps = [
542    "ability_base:want",
543    "ability_runtime:app_manager",
544    "ability_runtime:wantagent_innerkits",
545    "access_token:libaccesstoken_sdk",
546    "access_token:libtokensetproc_shared",
547    "audio_framework:audio_client",
548    "c_utils:utils",
549    "hilog:libhilog",
550    "hitrace:hitrace_meter",
551    "image_framework:image_native",
552    "input:libmmi-client",
553    "ipc:ipc_single",
554    "safwk:system_ability_fwk",
555    "samgr:samgr_proxy",
556    "window_manager:libdm_lite",
557  ]
558}
559
560ohos_unittest("AbilityConnectHelperTest") {
561  module_out_path = module_output_path
562
563  sources = [ "ability_connect_helper_test.cpp" ]
564
565  configs = [ ":module_private_config" ]
566
567  deps = [
568    "./../../../session:avsession_item",
569    "./../../../session:avsession_service",
570    "//third_party/bounds_checking_function:libsec_shared",
571    "//third_party/googletest:gtest_main",
572  ]
573
574  external_deps = [
575    "ability_base:want",
576    "ability_runtime:app_manager",
577    "ability_runtime:wantagent_innerkits",
578    "access_token:libaccesstoken_sdk",
579    "access_token:libtokensetproc_shared",
580    "audio_framework:audio_client",
581    "background_task_mgr:bgtaskmgr_innerkits",
582    "c_utils:utils",
583    "hilog:libhilog",
584    "hitrace:hitrace_meter",
585    "image_framework:image_native",
586    "input:libmmi-client",
587    "ipc:ipc_single",
588    "safwk:system_ability_fwk",
589    "samgr:samgr_proxy",
590    "window_manager:libdm_lite",
591  ]
592}
593
594ohos_unittest("BkGrAudioControllerTest") {
595  module_out_path = module_output_path
596
597  sources = [ "bkgr_audio_controller_test.cpp" ]
598
599  configs = [ ":module_private_config" ]
600
601  deps = [
602    "./../../../session:avsession_item",
603    "./../../../session:avsession_service",
604    "//third_party/bounds_checking_function:libsec_shared",
605    "//third_party/googletest:gtest_main",
606  ]
607
608  external_deps = [
609    "ability_base:want",
610    "ability_runtime:app_manager",
611    "ability_runtime:wantagent_innerkits",
612    "access_token:libaccesstoken_sdk",
613    "access_token:libtokensetproc_shared",
614    "audio_framework:audio_client",
615    "background_task_mgr:bgtaskmgr_innerkits",
616    "bundle_framework:appexecfwk_core",
617    "c_utils:utils",
618    "hilog:libhilog",
619    "hitrace:hitrace_meter",
620    "image_framework:image_native",
621    "input:libmmi-client",
622    "ipc:ipc_single",
623    "safwk:system_ability_fwk",
624    "samgr:samgr_proxy",
625    "window_manager:libdm_lite",
626  ]
627}
628
629ohos_unittest("AudioAdapterTest") {
630  module_out_path = module_output_path
631
632  sources = [ "audio_adapter_test.cpp" ]
633
634  configs = [ ":module_private_config" ]
635
636  deps = [
637    "../../../session:avsession_server",
638    "//third_party/bounds_checking_function:libsec_shared",
639    "//third_party/googletest:gtest_main",
640  ]
641
642  external_deps = [
643    "audio_framework:audio_client",
644    "c_utils:utils",
645    "hilog:libhilog",
646    "window_manager:libdm_lite",
647  ]
648}
649
650ohos_unittest("RemoteUtilsTest") {
651  module_out_path = module_output_path
652
653  sources = [ "remote_utils_test.cpp" ]
654
655  configs = [ ":module_private_config" ]
656
657  deps = [
658    "../../../session:avsession_server",
659    "//third_party/bounds_checking_function:libsec_shared",
660    "//third_party/googletest:gtest_main",
661  ]
662
663  external_deps = [
664    "ability_base:want",
665    "ability_runtime:wantagent_innerkits",
666    "audio_framework:audio_client",
667    "hilog:libhilog",
668    "input:libmmi-client",
669    "safwk:system_ability_fwk",
670    "window_manager:libdm_lite",
671  ]
672}
673
674ohos_unittest("SessionStackTest") {
675  module_out_path = module_output_path
676
677  sources = [ "session_stack_test.cpp" ]
678
679  configs = [ ":module_private_config" ]
680
681  deps = [
682    "../../../session:avsession_server",
683    "//third_party/bounds_checking_function:libsec_shared",
684    "//third_party/googletest:gtest_main",
685  ]
686
687  external_deps = [
688    "ability_base:want",
689    "ability_runtime:app_manager",
690    "ability_runtime:wantagent_innerkits",
691    "access_token:libaccesstoken_sdk",
692    "access_token:libtokensetproc_shared",
693    "audio_framework:audio_client",
694    "background_task_mgr:bgtaskmgr_innerkits",
695    "c_utils:utils",
696    "device_manager:devicemanagersdk",
697    "hilog:libhilog",
698    "hitrace:hitrace_meter",
699    "input:libmmi-client",
700    "ipc:ipc_single",
701    "safwk:system_ability_fwk",
702    "samgr:samgr_proxy",
703    "window_manager:libdm_lite",
704  ]
705
706  cflags = []
707
708  if (bluetooth_part_enable) {
709    cflags += [ "-DBLUETOOTH_ENABLE" ]
710    external_deps += [ "bluetooth:btframework" ]
711  }
712
713  if (efficiency_manager_enable_in_avsession) {
714    cflags += [ "-DEFFICIENCY_MANAGER_ENABLE" ]
715  }
716
717  if (multimedia_av_session_enable_trace_control) {
718    cflags += [ "-DENBABLE_AVSESSION_TRACE_CONTROL" ]
719    external_deps += [ "hitrace:hitrace_meter" ]
720  }
721
722  if (multimedia_av_session_enable_sysevent_control) {
723    cflags += [ "-DENABLE_AVSESSION_SYSEVENT_CONTROL" ]
724    external_deps += [ "hisysevent:libhisysevent" ]
725  }
726}
727
728ohos_unittest("AVRouterTest") {
729  module_out_path = module_output_path
730
731  sources = [ "avrouter_test.cpp" ]
732
733  configs = [ ":module_private_config" ]
734
735  deps = [
736    "../../../session:avsession_server",
737    "//third_party/bounds_checking_function:libsec_shared",
738    "//third_party/googletest:gtest_main",
739  ]
740
741  external_deps = [
742    "ability_base:want",
743    "ability_runtime:app_manager",
744    "ability_runtime:wantagent_innerkits",
745    "access_token:libaccesstoken_sdk",
746    "access_token:libtokenid_sdk",
747    "access_token:libtokensetproc_shared",
748    "audio_framework:audio_client",
749    "bundle_framework:appexecfwk_base",
750    "bundle_framework:appexecfwk_core",
751    "c_utils:utils",
752    "data_object:distributeddataobject_impl",
753    "device_manager:devicemanagersdk",
754    "hilog:libhilog",
755    "input:libmmi-client",
756    "ipc:ipc_single",
757    "safwk:system_ability_fwk",
758    "samgr:samgr_proxy",
759    "window_manager:libdm_lite",
760  ]
761
762  if (castplus_cast_engine_enable) {
763    cflags = [ "-DCASTPLUS_CAST_ENGINE_ENABLE" ]
764    deps += [ "../../../session:avsession_router" ]
765  }
766}
767
768if (castplus_cast_engine_enable) {
769  ohos_unittest("HwCastTest") {
770    module_out_path = module_output_path
771
772    sources = [ "hw_cast_test.cpp" ]
773
774    configs = [ ":module_private_config" ]
775
776    deps = [
777      "../../../session:avsession_server",
778      "./../../../../frameworks/common:avsession_common",
779      "./../../../../frameworks/native/session:avsession_cast_client",
780      "./../../../../utils:avsession_utils",
781      "./../../../session:avsession_cast_item",
782      "./../../../session:avsession_item",
783      "./../../../session:avsession_router",
784      "//third_party/bounds_checking_function:libsec_shared",
785      "//third_party/googletest:gtest_main",
786      "//third_party/openssl:libcrypto_shared",
787    ]
788
789    external_deps = [
790      "ability_base:want",
791      "ability_runtime:app_manager",
792      "ability_runtime:wantagent_innerkits",
793      "access_token:libaccesstoken_sdk",
794      "access_token:libtokenid_sdk",
795      "access_token:libtokensetproc_shared",
796      "audio_framework:audio_client",
797      "bundle_framework:appexecfwk_base",
798      "bundle_framework:appexecfwk_core",
799      "c_utils:utils",
800      "cast_engine:cast_engine_client",
801      "data_object:distributeddataobject_impl",
802      "device_manager:devicemanagersdk",
803      "hilog:libhilog",
804      "image_framework:image_native",
805      "input:libmmi-client",
806      "ipc:ipc_single",
807      "safwk:system_ability_fwk",
808      "samgr:samgr_proxy",
809      "window_manager:libdm_lite",
810    ]
811  }
812}
813
814if (castplus_cast_engine_enable) {
815  ohos_unittest("HwCastStreamPlayerTest") {
816    module_out_path = module_output_path
817
818    sources = [ "hw_cast_stream_player_test.cpp" ]
819
820    configs = [ ":module_private_config" ]
821
822    deps = [
823      "../../../../frameworks/common:avsession_common",
824      "../../../session:avsession_cast_item",
825      "../../../session:avsession_item",
826      "../../../session:avsession_router",
827      "//third_party/bounds_checking_function:libsec_shared",
828      "//third_party/googletest:gtest_main",
829    ]
830
831    external_deps = [
832      "ability_base:want",
833      "ability_runtime:app_manager",
834      "ability_runtime:wantagent_innerkits",
835      "access_token:libaccesstoken_sdk",
836      "access_token:libnativetoken_shared",
837      "access_token:libtokensetproc_shared",
838      "audio_framework:audio_client",
839      "bundle_framework:appexecfwk_base",
840      "bundle_framework:appexecfwk_core",
841      "c_utils:utils",
842      "cast_engine:cast_engine_client",
843      "data_object:distributeddataobject_impl",
844      "device_manager:devicemanagersdk",
845      "hilog:libhilog",
846      "image_framework:image_native",
847      "input:libmmi-client",
848      "ipc:ipc_single",
849      "safwk:system_ability_fwk",
850      "samgr:samgr_proxy",
851      "window_manager:libdm_lite",
852    ]
853  }
854}
855
856if (castplus_cast_engine_enable) {
857  ohos_unittest("AVSessionRadarTest") {
858    module_out_path = module_output_path
859
860    sources = [ "avsession_radar_test.cpp" ]
861
862    configs = [ ":module_private_config" ]
863
864    deps = [
865      "./../../../../utils:avsession_utils",
866      "//third_party/bounds_checking_function:libsec_shared",
867      "//third_party/googletest:gtest_main",
868      "//third_party/openssl:libcrypto_shared",
869    ]
870
871    external_deps = [
872      "bundle_framework:appexecfwk_base",
873      "bundle_framework:appexecfwk_core",
874      "c_utils:utils",
875      "device_manager:devicemanagersdk",
876      "hilog:libhilog",
877      "ipc:ipc_single",
878      "safwk:system_ability_fwk",
879      "samgr:samgr_proxy",
880      "window_manager:libdm_lite",
881    ]
882  }
883}
884
885###############################################################################
886group("av_session_server_unittest") {
887  testonly = true
888
889  deps = [
890    ":AVControllerCallbackProxyTest",
891    ":AVControllerCallbackStubTest",
892    ":AVRouterTest",
893    ":AVSessionCallbackProxyTest",
894    ":AVSessionCallbackStubTest",
895    ":AVSessionControllerProxyTest",
896    ":AVSessionControllerStubTest",
897    ":AVSessionDumperTest",
898    ":AVSessionProxyTest",
899    ":AVSessionServiceProxyTest",
900    ":AVSessionServiceStubPermissionTest",
901    ":AVSessionServiceStubTest",
902    ":AVSessionServiceTest",
903    ":AbilityConnectHelperTest",
904    ":AbilityManagerAdapterDemoTest",
905    ":AppManagerAdapterTest",
906    ":AudioAdapterTest",
907    ":BkGrAudioControllerTest",
908    ":BundleStatusAdapterTest",
909    ":CommandSendLimitTest",
910    ":MigrateAVSessionTest",
911    ":ParamsConfigOperatorTest",
912    ":PermissionCheckerTest",
913    ":RemoteUtilsTest",
914    ":SessionListenerProxyTest",
915    ":SessionListenerStubTest",
916    ":SessionStackTest",
917    ":SoftbusSessionManagerTest",
918  ]
919
920  if (castplus_cast_engine_enable) {
921    deps += [
922      ":AVSessionRadarTest",
923      ":HwCastStreamPlayerTest",
924      ":HwCastTest",
925    ]
926  }
927}
928###############################################################################
929