• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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
14if (defined(ohos_lite)) {
15  import("//build/lite/config/test.gni")
16} else {
17  import("//build/test.gni")
18  import("//drivers/adapter/uhdf2/uhdf.gni")
19}
20
21if (defined(ohos_lite)) {
22  unittest("hdf_peripheral_wlan_test_performance") {
23    output_extension = "bin"
24    output_dir = "$root_out_dir/test/unittest/hdf"
25    include_dirs = [
26      "//third_party/googletest/googletest/include",
27      "//third_party/bounds_checking_function/include",
28      "//drivers/framework/ability/sbuf/include",
29      "//drivers/framework/include/platform",
30      "//drivers/framework/include/core",
31      "//drivers/framework/include/osal",
32      "//drivers/adapter/uhdf/posix/include",
33      "//drivers/framework/include/utils",
34      "//drivers/framework/include/config",
35      "//drivers/framework/include",
36      "//drivers/peripheral/wlan/client/include",
37      "//drivers/peripheral/wlan/hal/include",
38      "//drivers/peripheral/wlan/interfaces/include",
39      "//drivers/framework/test/unittest/include",
40      "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
41    ]
42
43    sources = [ "//drivers/peripheral/wlan/test/performance/common/hdf_wlan_performance_test.cpp" ]
44    deps = [
45      "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
46      "//drivers/adapter/uhdf/manager:hdf_core",
47      "//drivers/adapter/uhdf/platform:hdf_platform",
48      "//drivers/adapter/uhdf/posix:hdf_posix_osal",
49      "//drivers/adapter/uhdf/test/unittest/common:hdf_test_common",
50      "//drivers/peripheral/wlan/client:hdi_wifi",
51      "//drivers/peripheral/wlan/hal:wifi_hal_interface",
52    ]
53    public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
54    cflags = [
55      "-Wall",
56      "-Wextra",
57      "-Werror",
58      "-fsigned-char",
59      "-fno-common",
60      "-fno-strict-aliasing",
61    ]
62  }
63}
64