add UT test.

Signed-off-by: wangwenjun <wangwenjun33@huawei.com>
This commit is contained in:
wangwenjun
2022-05-09 16:21:18 +08:00
parent c0c5faae44
commit 489d4d758c
@@ -12,7 +12,8 @@
# limitations under the License.
import("//build/test.gni")
import("//foundation/distributedhardware/distributedscreen/distributedscreen.gni")
import(
"//foundation/distributedhardware/distributedscreen/distributedscreen.gni")
module_out_path = "distributed_screen/source_trans_test"
@@ -42,27 +43,25 @@ config("module_private_config") {
ohos_unittest("ScreenSinkTest") {
module_out_path = module_out_path
sources = [
"${interfaces_path}/innerkits/native_cpp/test/unittest/screensinktest/src/dscreen_sink_handler_test.cpp",
]
sources = [ "${interfaces_path}/innerkits/native_cpp/test/unittest/screensinktest/src/dscreen_sink_handler_test.cpp" ]
configs = [ ":module_private_config" ]
deps = [
"${fwk_utils_path}:distributedhardwareutils",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//foundation/distributedhardware/distributedscreen/interfaces/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk",
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest_main",
"${fwk_utils_path}:distributedhardwareutils",
"//utils/native/base:utils",
"//foundation/distributedhardware/distributedscreen/interfaces/innerkits/native_cpp/screen_sink:distributed_screen_sink_sdk",
"//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
]
external_deps = [
"dsoftbus_standard:softbus_client",
"hiviewdfx_hilog_native:libhilog",
"multimedia_media_standard:media_client",
"ipc:ipc_core",
"multimedia_media_standard:media_client",
"safwk:system_ability_fwk",
"samgr_standard:samgr_proxy",
]