• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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.
13
14import("//build/test.gni")
15
16module_output_path = "external_device_manager/extension_device_manager"
17
18ohos_unittest("driver_extension_context_test") {
19  module_out_path = module_output_path
20
21  include_dirs = [ "../../../services/native/driver_extension/include" ]
22
23  sources = [ "driver_extension_context_test.cpp" ]
24
25  cflags = []
26  if (target_cpu == "arm") {
27    cflags += [ "-DBINDER_IPC_32BIT" ]
28  }
29  deps = [ "../../../services/native/driver_extension:driver_extension" ]
30
31  external_deps = [
32    "ability_base:want",
33    "ability_base:zuri",
34    "ability_runtime:ability_context_native",
35    "ability_runtime:ability_manager",
36    "ability_runtime:abilitykit_native",
37    "ability_runtime:app_context",
38    "ability_runtime:napi_common",
39    "ability_runtime:runtime",
40    "background_task_mgr:bgtaskmgr_innerkits",
41    "c_utils:utils",
42    "eventhandler:libeventhandler",
43    "googletest:gmock_main",
44    "googletest:gtest_main",
45    "hilog:libhilog",
46    "hitrace:hitrace_meter",
47    "init:libbeget_proxy",
48    "ipc:ipc_core",
49    "napi:ace_napi",
50    "relational_store:native_dataability",
51    "relational_store:native_rdb",
52  ]
53}
54