mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
wifi(vts): Skip tests if feature not supported
am: fbe5aff5e4
Change-Id: I8c87bfff60c4964a5ab99da961f166a8e86ee81e
This commit is contained in:
@@ -234,6 +234,11 @@ TEST_F(WifiStaIfaceHidlTest, RoamingControl) {
|
||||
* status code.
|
||||
*/
|
||||
TEST_F(WifiStaIfaceHidlTest, EnableNDOffload) {
|
||||
if (!isCapabilitySupported(
|
||||
IWifiStaIface::StaIfaceCapabilityMask::ND_OFFLOAD)) {
|
||||
// No-op if nd offload is not supported.
|
||||
return;
|
||||
}
|
||||
EXPECT_EQ(WifiStatusCode::SUCCESS,
|
||||
HIDL_INVOKE(wifi_sta_iface_, enableNdOffload, true).code);
|
||||
}
|
||||
@@ -256,6 +261,11 @@ TEST_F(WifiStaIfaceHidlTest, SetScanningMacOui) {
|
||||
* packets will return a success status code.
|
||||
*/
|
||||
TEST_F(WifiStaIfaceHidlTest, PacketFateMonitoring) {
|
||||
if (!isCapabilitySupported(
|
||||
IWifiStaIface::StaIfaceCapabilityMask::DEBUG_PACKET_FATE)) {
|
||||
// No-op if packet fate monitor is not supported.
|
||||
return;
|
||||
}
|
||||
// Start packet fate monitoring.
|
||||
EXPECT_EQ(
|
||||
WifiStatusCode::SUCCESS,
|
||||
|
||||
Reference in New Issue
Block a user