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/ability/form_fwk/form_fwk.gni") 16 17module_output_path = "form_fwk/interfaces" 18 19ohos_benchmarktest("BenchmarkTestForFormManager") { 20 module_out_path = module_output_path 21 sources = [ "form_manager_test.cpp" ] 22 include_dirs = [ 23 24 ] 25 26 cflags = [] 27 if (target_cpu == "arm") { 28 cflags += [ "-DBINDER_IPC_32BIT" ] 29 } 30 31 deps = [ 32 "${form_fwk_path}:fmskit_native", 33 "${form_fwk_path}:form_manager", 34 "${form_fwk_path}/test/resource/benchmark/form_test_bundle:formTestWidget1", 35 "${form_fwk_path}/test/resource/benchmark/ohos_test:copy_ohos_test", 36 ] 37 38 external_deps = [ 39 "ability_base:want", 40 "access_token:libaccesstoken_sdk", 41 "access_token:libnativetoken", 42 "access_token:libtoken_setproc", 43 "bundle_framework:appexecfwk_base", 44 "cJSON:cjson", 45 "c_utils:utils", 46 "hilog:libhilog", 47 "ipc:ipc_core", 48 "selinux_adapter:librestorecon", 49 "benchmark:benchmark", 50 "googletest:gtest_main", 51 ] 52} 53 54group("benchmarktest") { 55 testonly = true 56 deps = [] 57 58 deps += [ 59 # deps file 60 ":BenchmarkTestForFormManager", 61 ] 62} 63