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/unittest" 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 = [ 30 "../../../services/native/driver_extension:driver_extension", 31 "//third_party/googletest:gmock_main", 32 "//third_party/googletest:gtest_main", 33 ] 34 35 external_deps = [ 36 "ability_base:want", 37 "ability_base:zuri", 38 "ability_runtime:ability_context_native", 39 "ability_runtime:ability_manager", 40 "ability_runtime:abilitykit_native", 41 "ability_runtime:app_context", 42 "ability_runtime:napi_common", 43 "ability_runtime:runtime", 44 "background_task_mgr:bgtaskmgr_innerkits", 45 "c_utils:utils", 46 "eventhandler:libeventhandler", 47 "hilog:libhilog", 48 "hitrace:hitrace_meter", 49 "init:libbeget_proxy", 50 "ipc:ipc_core", 51 "napi:ace_napi", 52 "relational_store:native_dataability", 53 "relational_store:native_rdb", 54 ] 55} 56