# Copyright (c) 2025 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//base/web/webview/web_aafwk.gni")
import("//build/test.gni")
module_output_path = "webview/Multimedia"
ohos_unittest("native_common_test") {
module_out_path = module_output_path
sources = [
"napi_native_mediaplayer_handler_impl_test.cpp",
"../../../interfaces/kits/nativecommon/napi_native_mediaplayer_handler_impl.cpp",
]
include_dirs = [
"../../../interfaces/native",
"../../../ohos_adapter/ohos_resource_adapter/include",
"../../../ohos_adapter/system_properties_adapter/include",
"../../../interfaces/kits/nativecommon",
]
use_exceptions = true
deps = [
"../../../ohos_adapter:nweb_ohos_adapter",
"../../../ohos_nweb:libnweb",
"../../../interfaces/native:ohweb",
"../../../ohos_glue:ohos_base_glue_source",
]
external_deps = [
"ability_base:extractortool",
"ability_runtime:app_context",
"bundle_framework:appexecfwk_base",
"bundle_framework:appexecfwk_core",
"c_utils:utils",
"common_event_service:cesfwk_innerkits",
"googletest:gmock_main",
"googletest:gtest_main",
"hilog:libhilog",
"image_framework:image",
"image_framework:image_native",
"init:libbegetutil",
"ipc:ipc_core",
"protobuf:protobuf_lite",
"samgr:samgr_proxy",
"window_manager:libwm",
]
}
group("unittest") {
testonly = true
deps = [ ":native_common_test" ]
}