• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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/ohos.gni")
14import("//build/test.gni")
15import("//foundation/ability/ability_runtime/ability_runtime.gni")
16
17module_output_path =
18    "ability_runtime/ability_runtime/ability_start_window_option_test"
19
20ohos_unittest("ability_start_window_option_test") {
21  module_out_path = module_output_path
22
23  include_dirs = [
24    "${ability_runtime_innerkits_path}/app_manager/include/appmgr",
25    "${ability_runtime_test_path}/mock/frameworks_kits_ability_native_test/include",
26    "${ability_runtime_test_path}/mock/common/include",
27  ]
28
29  sources = [ "ability_start_window_option_test.cpp" ]
30
31  configs = []
32
33  deps = [
34    "${ability_runtime_innerkits_path}/ability_manager:ability_manager",
35    "${ability_runtime_innerkits_path}/ability_manager:start_window_option",
36    "${ability_runtime_innerkits_path}/app_manager:app_manager",
37    "${ability_runtime_innerkits_path}/deps_wrapper:ability_deps_wrapper",
38    "${ability_runtime_innerkits_path}/runtime:runtime",
39    "${ability_runtime_native_path}/appkit:app_context",
40    "${ability_runtime_native_path}/appkit:appkit_manager_helper",
41  ]
42
43  external_deps = [
44    "ability_base:want",
45    "ability_base:zuri",
46    "ability_runtime:ability_manager",
47    "access_token:libaccesstoken_sdk",
48    "bundle_framework:appexecfwk_base",
49    "bundle_framework:appexecfwk_core",
50    "c_utils:utils",
51    "common_event_service:cesfwk_innerkits",
52    "ffrt:libffrt",
53    "googletest:gtest_main",
54    "hilog:libhilog",
55    "ipc:ipc_core",
56    "kv_store:distributeddata_inner",
57  ]
58}
59
60group("unittest") {
61  testonly = true
62  deps = [ ":ability_start_window_option_test" ]
63}
64