• 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/hdf_core/adapter/uhdf2/uhdf.gni")
16
17module_output_path = "hdf/wlan"
18
19###########################palTest###########################
20
21ohos_unittest("WlanHdiServiceTestC") {
22  module_out_path = module_output_path
23  sources = [
24    "wlan_callback_impl.c",
25    "wlan_hdi_hal_services_c_test.cpp",
26  ]
27
28  deps = [
29    "//drivers/peripheral/wlan/hdi_service:hdi_wlan_service",
30    "//third_party/googletest:gmock_main",
31    "//third_party/googletest:gtest_main",
32  ]
33
34  include_dirs = [
35    "include",
36    "//drivers/peripheral/wlan/interfaces/include",
37    "//drivers/peripheral/wlan/hdi_service",
38    "//drivers/peripheral/wlan/client/include",
39    "//drivers/peripheral/wlan/hal/include",
40  ]
41
42  if (is_standard_system) {
43    external_deps = [
44      "c_utils:utils",
45      "drivers_interface_wlan:libwlan_proxy_1.0",
46      "hdf_core:libhdf_utils",
47      "hiviewdfx_hilog_native:libhilog",
48    ]
49  } else {
50    external_deps = [ "hilog:libhilog" ]
51  }
52}
53
54###########################end###########################
55group("unittest") {
56  testonly = true
57  deps = [ ":WlanHdiServiceTestC" ]
58}
59