# Copyright (C) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") SUBSYSTEM_DIR = "//foundation/communication/wifi" module_output_path = "wifi_standard/crpc_test" config("module_private_config") { visibility = [ ":*" ] include_dirs = [ "//utils/native/base/include", "$SUBSYSTEM_DIR/tests/wifi_standard/ipc_framework/cRPC/unittest", ] } ohos_unittest("crpc_unittest") { module_out_path = module_output_path sources = [ "$SUBSYSTEM_DIR/services/wifi_standard/ipc_framework/cRPC/src/context.c", "$SUBSYSTEM_DIR/services/wifi_standard/ipc_framework/cRPC/src/hash_table.c", "$SUBSYSTEM_DIR/services/wifi_standard/ipc_framework/cRPC/src/net.c", "$SUBSYSTEM_DIR/services/wifi_standard/ipc_framework/cRPC/src/serial.c", "context_test.cpp", "hash_table_test.cpp", "net_test.cpp", "rpc_test_main.cpp", "serial_test.cpp", ] include_dirs = [ "$SUBSYSTEM_DIR/services/wifi_standard/ipc_framework/cRPC/include", "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", ] deps = [ "//utils/native/base:utils" ] ldflags = [ "-fPIC", "-Wl,--wrap=write", "-Wl,--wrap=read", "--coverage", ] external_deps = [ "hiviewdfx_hilog_native:libhilog" ] configs = [ ":module_private_config" ] part_name = "wifi_standard" subsystem_name = "communication" testonly = true } group("unittest") { testonly = true deps = [ ":crpc_unittest" ] }