# Copyright (C) 2024 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/request/request/request_aafwk.gni")
import("//build/ohos.gni")
import("//build/test.gni")
ohos_unittest("innerTest") {
module_out_path = "request/request/request"
include_dirs = [
"include",
"../../../../frameworks/js/napi/request/include",
"../../../../frameworks/native/request/include",
"../../../../common/include",
"../../../../interfaces/inner_kits/request_action/include",
"../../../../common/sys_event/include",
]
sources = [
"../../../../frameworks/native/request/src/parcel_helper.cpp",
"../../../../frameworks/native/request/src/request.cpp",
"../../../../frameworks/native/request/src/request_common_utils.cpp",
"../../../../frameworks/native/request/src/request_manager.cpp",
"../../../../frameworks/native/request/src/request_manager_impl.cpp",
"../../../../frameworks/native/request/src/request_running_task_count.cpp",
"../../../../frameworks/native/request/src/request_service_proxy.cpp",
"../../../../frameworks/native/request/src/response_message_receiver.cpp",
"../../../../frameworks/native/request/src/runcount_notify_stub.cpp",
"../../../../frameworks/native/request_action/src/path_control.cpp",
"../../../../frameworks/native/request_action/src/request_action.cpp",
"../../../../frameworks/native/request_action/src/task_builder.cpp",
"src/path_control_test.cpp",
"src/request_action_test.cpp",
"src/task_builder_test.cpp",
]
deps = [ "../../../../common/sys_event:request_sysevent" ]
external_deps = [
"ability_base:base",
"ability_base:want",
"ability_base:zuri",
"ability_runtime:ability_manager",
"ability_runtime:abilitykit_native",
"ability_runtime:app_context",
"ability_runtime:app_manager",
"ability_runtime:data_ability_helper",
"ability_runtime:extensionkit_native",
"access_token:libaccesstoken_sdk",
"access_token:libnativetoken",
"access_token:libtoken_setproc",
"access_token:libtokenid_sdk",
"app_file_service:fileuri_native",
"c_utils:utils",
"common_event_service:cesfwk_innerkits",
"curl:curl_shared",
"distributed_notification_service:ans_innerkits",
"eventhandler:libeventhandler",
"ffrt:libffrt",
"hilog:libhilog",
"hisysevent:libhisysevent",
"init:libbegetutil",
"ipc:ipc_single",
"netmanager_base:net_conn_manager_if",
"netmanager_base:net_security_config_if",
"openssl:libcrypto_shared",
"openssl:libssl_shared",
"relational_store:native_appdatafwk",
"relational_store:native_dataability",
"relational_store:native_rdb",
"safwk:system_ability_fwk",
"samgr:samgr_proxy",
"storage_service:storage_manager_acl",
]
}
group("unittest") {
testonly = true
deps = [ ":innerTest" ]
deps += []
}