# Copyright (c) 2021 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("//build/test.gni")

module_output_path = "ability_runtime/ability_test"

INNERKITS_PATH = "//foundation/aafwk/standard/interfaces/innerkits"

###############################################################################
config("module_private_config") {
  visibility = [ ":*" ]
  include_dirs = [
    "//base/global/i18n_standard/frameworks/intl/include",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/include/appmgr",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include/bundlemgr",
    "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk_L2/content",
    "//EOSP/communication/libsoftbus/../../../foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include",
    "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk_L2/content",
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/mock/include",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/test/mock/include",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager/include",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
    "//foundation/aafwk/standard/services/abilitymgr/include",
    "//utils/system/safwk/native/include",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/include",
    "//foundation/aafwk/standard/frameworks/kits/fmskit/native/include",
    "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include",
    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include",
    "//foundation/distributeddatamgr/distributeddatamgr/interfaces/innerkits/app_distributeddata/include",
    "//foundation/aafwk/standard/frameworks/kits/ability/native/include",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include",
    "//foundation/aafwk/standard/services/common/include",

    "//foundation/aafwk/standard/common/task_dispatcher/include/dispatcher",
    "//foundation/aafwk/standard/common/task_dispatcher/include/task",
    "//foundation/aafwk/standard/common/task_dispatcher/include/threading",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/include/task",
  ]
  cflags = []
  if (target_cpu == "arm") {
    cflags += [ "-DBINDER_IPC_32BIT" ]
  }
  defines = [
    "APP_LOG_TAG = \"AbilityUnitTest\"",
    "LOG_DOMAIN = 0xD002201",
  ]
}

config("module_ability_context_config") {
  visibility = [ ":*" ]
  include_dirs = [
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/include/appmgr",
    "//EOSP/communication/libsoftbus/../../../foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include",
    "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content",
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/mock/include",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/test/mock/include",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager/include",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
    "//third_party/googletest/googlemock/include",
    "//foundation/aafwk/standard/frameworks/kits/ability/native/include",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/include",
    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
    "//foundation/multimodalinput/input/interfaces/native/innerkits/event/include",
    "//foundation/aafwk/standard/interfaces/innerkits/base/include",
    "//third_party/libuv/include",
    "//foundation/aafwk/standard/interfaces/innerkits/base/include/ohos/aafwk/base",
    "//base/global/resmgr_standard/interfaces/innerkits/include",
  ]
  cflags = []
  if (target_cpu == "arm") {
    cflags += [ "-DBINDER_IPC_32BIT" ]
  }
  defines = [
    "APP_LOG_TAG = \"AbilityUnitTest\"",
    "LOG_DOMAIN = 0xD002201",
  ]
}

ohos_unittest("ability_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ability_record_mgr.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/configuration.cpp",
    "unittest/ability_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/base:base",
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/graphic/standard:libwmclient",
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

ohos_unittest("ability_lifecycle_test") {
  module_out_path = module_output_path
  sources = [
    "../src/ability_lifecycle.cpp",
    "unittest/ability_lifecycle_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/base:base",
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("ability_lifecycle_executor_test") {
  module_out_path = module_output_path
  sources = [
    "../src/ability_lifecycle_executor.cpp",
    "unittest/ability_lifecycle_executor_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("ability_context_for_task_dispacher_test") {
  module_out_path = module_output_path
  sources = [ "unittest/ability_context_for_task_dispacher_test.cpp" ]

  include_dirs = [ "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include" ]

  configs = [ ":module_ability_context_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("ability_context_interface_test") {
  module_out_path = module_output_path
  sources = [
    "mock/include/mock_ability_manager_client_interface1.cpp",
    "mock/include/mock_resourceManager_interface1.cpp",
    "unittest/ability_context_interface1_test.cpp",
  ]

  configs = [ ":module_ability_context_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("ability_context_test") {
  module_out_path = module_output_path
  sources = [
    "mock/include/mock_ability_manager_clientex.cpp",
    "mock/include/mock_ability_manager_service.cpp",
    "mock/include/mock_bundle_manager.cpp",
    "mock/include/sys_mgr_client_mock.cpp",
    "unittest/ability_context_test.cpp",
  ]

  include_dirs = [
    "//foundation/aafwk/standard/interfaces/kits/napi/aafwk/inner/napi_common",
    "//foundation/ace/napi/interfaces/kits",
  ]

  configs = [ ":module_ability_context_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/kits/napi/aafwk/inner/napi_common:napi_common",
    "//foundation/ace/napi:ace_napi",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("page_ability_impl_test") {
  module_out_path = module_output_path
  sources = [
    "../src/page_ability_impl.cpp",
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/mock/include/mock_replace_ability_impl.cpp",
    "unittest/page_ability_impl_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/multimodalinput/input/frameworks/proxy:libmmi-common",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("service_ability_impl_test") {
  module_out_path = module_output_path
  sources = [
    "../src/page_ability_impl.cpp",
    "unittest/service_ability_impl_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("scene_created_test") {
  module_out_path = module_output_path

  include_dirs = [ "//foundation/windowmanager/interfaces/innerkits/wm" ]

  configs = [ ":module_ability_context_config" ]

  sources = [ "unittest/scene_created_test.cpp" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("data_ability_helper_test") {
  module_out_path = module_output_path
  include_dirs = [ "//foundation/aafwk/standard/services/abilitymgr/include" ]

  sources = [ "unittest/data_ability_helper_test.cpp" ]

  configs = [ ":module_ability_context_config" ]

  deps = [
    "${INNERKITS_PATH}/base:base",
    "${INNERKITS_PATH}/want:want",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

ohos_unittest("data_ability_operation_test") {
  module_out_path = module_output_path
  sources = [ "unittest/data_ability_operation_test.cpp" ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

ohos_unittest("ability_impl_active_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "unittest/ability_impl_active_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("ability_impl_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "unittest/ability_impl_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/i18n_standard/frameworks/intl:intl_util",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager:app_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/multimodalinput/input/frameworks/proxy:libmmi-common",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

ohos_unittest("ability_thread_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/mock/include/mock_data_ability_impl.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_container.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_deal.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/configuration.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/process_info.cpp",
    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include/uri.h",
    "mock/include/mock_ability_manager_client.cpp",
    "mock/include/sys_mgr_client_mock.cpp",
    "unittest/ability_thread_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/graphic/standard:libwmclient",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

ohos_unittest("form_provider_client_test") {
  module_out_path = module_output_path
  include_dirs = [
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base/include",
    "//foundation/appexecfwk/appexecfwk_lite/interfaces/kits/bundle_lite",
  ]

  sources = [
    "mock/include/mock_form_supply_callback.cpp",
    "unittest/form_provider_client_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk:libpermissionsdk_standard",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager:app_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/graphic/standard:libwmclient",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "form_runtime:form_manager",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("data_ability_impl_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/mock/include/mock_replace_ability_impl.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_container.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_deal.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/configuration.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/process_info.cpp",
    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include/uri.h",
    "unittest/data_ability_impl_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/base:base",
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/graphic/standard:libwmclient",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

ohos_unittest("data_ability_impl_file_secondpart_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/mock/include/mock_replace_ability_impl.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_container.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_deal.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/configuration.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/process_info.cpp",
    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include/uri.h",
    "unittest/data_ability_impl_file_secondpart_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/base:base",
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/graphic/standard:libwmclient",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

ohos_unittest("data_ability_impl_file_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/mock/include/mock_replace_ability_impl.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_container.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_deal.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/configuration.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/process_info.cpp",
    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include/uri.h",
    "unittest/data_ability_impl_file_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/base:base",
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/graphic/standard:libwmclient",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

ohos_unittest("ability_thread_dataability_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/mock/include/mock_data_ability_impl.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_container.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/context_deal.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/configuration.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/process_info.cpp",
    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include/uri.h",
    "mock/include/mock_ability_manager_client.cpp",
    "mock/include/sys_mgr_client_mock.cpp",
    "unittest/ability_thread_dataability_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:dummy_classes",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/graphic/standard:libwmclient",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

config("data_uri_utils_test_config") {
  visibility = [ ":*" ]
  include_dirs =
      [ "//foundation/aafwk/standard/frameworks/kits/ability/native/include/" ]
  cflags = []
  if (target_cpu == "arm") {
    cflags += [ "-DBINDER_IPC_32BIT" ]
  }
  defines = [
    "APP_LOG_TAG = \"AbilityUnitTest\"",
    "LOG_DOMAIN = 0xD002201",
  ]
}
ohos_unittest("data_uri_utils_test") {
  module_out_path = module_output_path

  configs = [
    ":module_private_config",
    ":data_uri_utils_test_config",
  ]

  sources = [
    "//foundation/aafwk/standard/frameworks/kits/ability/native/src/data_uri_utils.cpp",
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/unittest/data_uri_utils_test.cpp",
    "//foundation/distributedschedule/dmsfwk/utils/native/source/uri.cpp",
  ]

  deps = [
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("pac_map_test") {
  module_out_path = module_output_path
  sources = [ "//foundation/aafwk/standard/frameworks/kits/ability/native/test/unittest/pac_map_test.cpp" ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("ability_permission_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/ability/native/test/unittest/ability_permission_test.cpp",
    "mock/include/mock_ability_manager_service.cpp",
    "mock/include/mock_bundle_manager.cpp",
    "mock/include/sys_mgr_client_mock.cpp",
  ]

  configs = [ ":module_ability_context_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("task_handler_client_test") {
  module_out_path = module_output_path
  sources = [ "//foundation/aafwk/standard/frameworks/kits/ability/native/test/unittest/task_handler_client_test.cpp" ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("ability_thread_for_ability_on_configuration_update") {
  module_out_path = module_output_path

  sources = [ "//foundation/aafwk/standard/frameworks/kits/ability/native/test/unittest/ability_thread_for_ability_on_configuration_update.cpp" ]

  configs = [ ":module_private_config" ]

  deps = [
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("data_ability_result_test") {
  module_out_path = module_output_path
  sources = [ "//foundation/aafwk/standard/frameworks/kits/ability/native/test/unittest/data_ability_result_test.cpp" ]

  configs = [ ":module_private_config" ]

  deps = [
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//third_party/googletest:gtest_main",
  ]

  external_deps = [
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("form_host_client_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ability_record_mgr.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/configuration.cpp",
    "//foundation/aafwk/standard/services/abilitymgr/src/ability_start_setting.cpp",
    "mock/include/mock_bundle_manager_form.cpp",
    "unittest/form_host_client_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager:app_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//foundation/graphic/standard:libwmclient",
    "//third_party/googletest:gmock_main",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "form_runtime:fmskit_native",
    "form_runtime:form_manager",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
  ]
}

ohos_unittest("continuation_test") {
  module_out_path = module_output_path
  sources = [
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/app_loader.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/application_context.cpp",
    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/src/ohos_application.cpp",
    "//foundation/aafwk/standard/interfaces/innerkits/app_manager/src/appmgr/configuration.cpp",
    "unittest/continuation_test.cpp",
  ]

  configs = [ ":module_private_config" ]

  deps = [
    "${INNERKITS_PATH}/want:want",
    "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
    "//foundation/aafwk/standard/common/task_dispatcher:appkit_dispatcher_td",
    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
    "//foundation/aafwk/standard/frameworks/kits/appkit:app_context",
    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager:ability_manager",
    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
    "//foundation/appexecfwk/standard/common:libappexecfwk_common",
    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
    "//third_party/googletest:gtest_main",
    "//utils/native/base:utils",
  ]

  external_deps = [
    "ability_runtime:runtime",
    "hiviewdfx_hilog_native:libhilog",
    "ipc:ipc_core",
    "multimodalinput_base:libmmi-client",
    "native_appdatamgr:native_appdatafwk",
    "native_appdatamgr:native_dataability",
    "native_appdatamgr:native_rdb",
  ]
}

###############################################################################

group("unittest") {
  testonly = true
  deps = []

  deps += [
    ":ability_context_test",
    ":ability_impl_test",
    ":ability_lifecycle_executor_test",
    ":ability_lifecycle_test",
    ":ability_permission_test",
    ":ability_test",
    ":ability_thread_dataability_test",
    ":ability_thread_test",
    ":continuation_test",
    ":data_ability_helper_test",
    ":data_ability_impl_file_secondpart_test",
    ":data_ability_impl_file_test",
    ":data_ability_impl_test",
    ":data_ability_operation_test",
    ":data_ability_result_test",
    ":data_uri_utils_test",
    ":form_host_client_test",
    ":form_provider_client_test",
    ":pac_map_test",
    ":page_ability_impl_test",
    ":service_ability_impl_test",
    ":task_handler_client_test",
  ]
}
###############################################################################
