wifi(vts): Skip tests if feature not supported am: fbe5aff5e4
am: 405f2869bc
am: b6805fda2a
Change-Id: I99c1dc87f929df19f1e43cd6428a4c0153adaad6
This commit is contained in:
commit
571ff97f50
1 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue