1# Copyright (c) 2022 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") 15import("//foundation/distributedhardware/device_manager/device_manager.gni") 16 17module_output_path = "device_manager/devicemanager" 18 19ohos_benchmarktest("DeviceManagerFaTest") { 20 module_out_path = module_output_path 21 sources = [ "device_manager_fa_test.cpp" ] 22 23 include_dirs = [ 24 "${common_path}/include", 25 "${innerkits_path}/native_cpp/include/notify", 26 "${services_path}/include/dependency/softbus", 27 "//foundation/distributedhardware/distributedhardwarefwk/common/utils/include", 28 "//foundation/communication/dsoftbus/interfaces/kits/discovery", 29 "//foundation/communication/ipc/interfaces/innerkits/c/ipc/include", 30 "//foundation/communication/dsoftbus/interfaces/kits/bus_center", 31 "//foundation/communication/dsoftbus/interfaces/kits/common", 32 "//foundation/communication/dsoftbus/interfaces/kits/transport", 33 "//foundation/communication/dsoftbus/interfaces/inner_kits/transport", 34 ] 35 36 cflags = [] 37 if (target_cpu == "arm") { 38 cflags += [ "-DBINDER_IPC_32BIT" ] 39 } 40 41 deps = [ 42 "${common_path}/include/show_confirm_dialog/dialog_ui/js:dialog_js_files_etc", 43 "${innerkits_path}/native_cpp:devicemanagersdk", 44 "//foundation/arkui/napi:ace_napi", 45 "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk", 46 "//third_party/benchmark:benchmark", 47 "//third_party/bounds_checking_function:libsec_shared", 48 "//third_party/googletest:gtest_main", 49 ] 50} 51 52group("benchmarktest") { 53 testonly = true 54 deps = [] 55 56 deps += [ 57 # deps file 58 ":DeviceManagerFaTest", 59 ] 60} 61