• 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
14import("//build/test.gni")
15import("//drivers/adapter/uhdf2/uhdf.gni")
16
17module_output_path = "hdf/wlan"
18
19###########################palTest###########################
20
21ohos_unittest("WlanHdiServiceTest") {
22  module_out_path = module_output_path
23  sources = [ "wlan_hdi_hal_services_test.cpp" ]
24
25  deps = [
26    "//drivers/peripheral/wlan/client:wifi_driver_client",
27    "//drivers/peripheral/wlan/hal:wifi_hal",
28    "//drivers/peripheral/wlan/hdi_service:wifi_hdi_device",
29    "//third_party/googletest:gmock_main",
30    "//third_party/googletest:gtest_main",
31  ]
32
33  include_dirs = [
34    "include",
35    "//drivers/peripheral/wlan/interfaces/include",
36    "//drivers/peripheral/wlan/hdi_service/services",
37    "//drivers/peripheral/wlan/client/include",
38    "//drivers/peripheral/wlan/hal/include",
39    "//drivers/peripheral/wlan/hdi_service/include",
40  ]
41
42  if (is_standard_system) {
43    external_deps = [
44      "device_driver_framework:libhdf_host",
45      "device_driver_framework:libhdf_ipc_adapter",
46      "device_driver_framework:libhdf_utils",
47      "device_driver_framework:libhdi",
48      "hiviewdfx_hilog_native:libhilog",
49      "utils_base:utils",
50    ]
51  } else {
52    external_deps = [ "hilog:libhilog" ]
53  }
54  external_deps += [ "ipc:ipc_single" ]
55}
56
57ohos_unittest("WlanHdiServiceTestC") {
58  module_out_path = module_output_path
59  sources = [ "wlan_hdi_hal_services_c_test.cpp" ]
60
61  deps = [
62    "//drivers/peripheral/wlan/client:wifi_driver_client",
63    "//drivers/peripheral/wlan/hal:wifi_hal",
64    "//drivers/peripheral/wlan/hdi_service:wifi_hdi_c_device",
65    "//third_party/googletest:gmock_main",
66    "//third_party/googletest:gtest_main",
67  ]
68
69  include_dirs = [
70    "include",
71    "//drivers/peripheral/wlan/interfaces/include",
72    "//drivers/peripheral/wlan/hdi_service/services",
73    "//drivers/peripheral/wlan/client/include",
74    "//drivers/peripheral/wlan/hal/include",
75    "//drivers/peripheral/wlan/hdi_service/include",
76  ]
77
78  if (is_standard_system) {
79    external_deps = [
80      "device_driver_framework:libhdf_host",
81      "device_driver_framework:libhdf_ipc_adapter",
82      "device_driver_framework:libhdf_utils",
83      "device_driver_framework:libhdi",
84      "hiviewdfx_hilog_native:libhilog",
85      "utils_base:utils",
86    ]
87  } else {
88    external_deps = [ "hilog:libhilog" ]
89  }
90  external_deps += [ "ipc:ipc_single" ]
91}
92
93###########################end###########################
94group("unittest") {
95  testonly = true
96  deps = [
97    ":WlanHdiServiceTest",
98    ":WlanHdiServiceTestC",
99  ]
100}
101