• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "${access_token_path}/interfaces/innerkits/token_setproc/include",
24    "${access_token_path}/interfaces/innerkits/nativetoken/include",
25    "${access_token_path}/interfaces/innerkits/accesstoken/include",
26  ]
27
28  cflags = []
29  if (target_cpu == "arm") {
30    cflags += [ "-DBINDER_IPC_32BIT" ]
31  }
32
33  deps = [
34    "${form_fwk_path}:fmskit_native",
35    "${form_fwk_path}:form_manager",
36    "${form_fwk_path}/test/resource/benchmark/form_test_bundle:formTestWidget1",
37    "${form_fwk_path}/test/resource/benchmark/ohos_test:copy_ohos_test",
38    "//third_party/benchmark:benchmark",
39    "//third_party/googletest:gtest_main",
40  ]
41
42  external_deps = [
43    "ability_base:want",
44    "access_token:libaccesstoken_sdk",
45    "access_token:libnativetoken",
46    "access_token:libtoken_setproc",
47    "bundle_framework:appexecfwk_base",
48    "c_utils:utils",
49    "hilog:libhilog",
50    "ipc:ipc_core",
51  ]
52}
53
54group("benchmarktest") {
55  testonly = true
56  deps = []
57
58  deps += [
59    # deps file
60    ":BenchmarkTestForFormManager",
61  ]
62}
63