2d523c012e
Restore the usage of WIFI-specific main function. The main function was inadvertantly disabled by moving it into a static library - which caused the default main to be used. Need a custom main since need to stop WIFI before tests start to enforce a clean starting point. Bug: 35276551 Test: confirms custom main routine is called Change-Id: I978827bc0f0f16d9ca4f159fbf42d0bc53f5df99
85 lines
2.2 KiB
Text
85 lines
2.2 KiB
Text
//
|
|
// Copyright (C) 2016 The Android Open Source Project
|
|
//
|
|
// 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.
|
|
//
|
|
|
|
cc_library_static {
|
|
name: "VtsHalWifiV1_0TargetTestUtil",
|
|
srcs: [
|
|
|
|
"wifi_hidl_call_util_selftest.cpp",
|
|
"wifi_hidl_test.cpp",
|
|
"wifi_hidl_test_utils.cpp"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"liblog",
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"libhidltransport",
|
|
"libnativehelper",
|
|
"libutils",
|
|
"android.hardware.wifi@1.0",
|
|
],
|
|
static_libs: ["VtsHalHidlTargetTestBase"],
|
|
}
|
|
|
|
cc_test {
|
|
name: "VtsHalWifiV1_0TargetTest",
|
|
defaults: ["hidl_defaults"],
|
|
srcs: [
|
|
"VtsHalWifiV1_0TargetTest.cpp",
|
|
"wifi_ap_iface_hidl_test.cpp",
|
|
"wifi_chip_hidl_test.cpp",
|
|
"wifi_p2p_iface_hidl_test.cpp",
|
|
"wifi_rtt_controller_hidl_test.cpp",
|
|
"wifi_sta_iface_hidl_test.cpp"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"liblog",
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"libhidltransport",
|
|
"libnativehelper",
|
|
"libutils",
|
|
"android.hardware.wifi@1.0",
|
|
],
|
|
static_libs: ["VtsHalWifiV1_0TargetTestUtil", "VtsHalHidlTargetTestBase"],
|
|
cflags: [
|
|
"-O0",
|
|
"-g",
|
|
],
|
|
}
|
|
|
|
cc_test {
|
|
name: "VtsHalWifiNanV1_0TargetTest",
|
|
defaults: ["hidl_defaults"],
|
|
srcs: [
|
|
"VtsHalWifiV1_0TargetTest.cpp",
|
|
"wifi_nan_iface_hidl_test.cpp"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"liblog",
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"libhidltransport",
|
|
"libnativehelper",
|
|
"libutils",
|
|
"android.hardware.wifi@1.0",
|
|
],
|
|
static_libs: ["VtsHalWifiV1_0TargetTestUtil", "VtsHalHidlTargetTestBase"],
|
|
cflags: [
|
|
"-O0",
|
|
"-g",
|
|
],
|
|
}
|