Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0ddc70e authored by Roshan Pius's avatar Roshan Pius Committed by android-build-merger
Browse files

wifi(vts): Skip tests if feature not supported am: d01fcb40

am: 8ad2eb8e

Change-Id: I1d0fd898c2976877a70561ead9183666712cf54a
parents b9492b5f 8ad2eb8e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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,