mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
wifi: skip nan vts tests if nan is not supported
Bug: 155372909 Test: atest VtsHalWifiNanV1_0TargetTest Change-Id: I20c90509395788a72999cd6029573502004d1815
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <android-base/logging.h>
|
||||
|
||||
#include <VtsCoreUtil.h>
|
||||
#include <android/hardware/wifi/1.0/IWifi.h>
|
||||
#include <android/hardware/wifi/1.0/IWifiChip.h>
|
||||
#include <gtest/gtest.h>
|
||||
@@ -41,6 +42,9 @@ using ::android::hardware::wifi::V1_0::WifiStatusCode;
|
||||
class WifiChipHidlNanTest : public ::testing::TestWithParam<std::string> {
|
||||
public:
|
||||
virtual void SetUp() override {
|
||||
if (!::testing::deviceSupportsFeature("android.hardware.wifi.aware"))
|
||||
GTEST_SKIP() << "Skipping this test since NAN is not supported.";
|
||||
|
||||
// Make sure test starts with a clean state
|
||||
stopWifi(GetInstanceName());
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <android-base/logging.h>
|
||||
|
||||
#include <VtsCoreUtil.h>
|
||||
#include <android/hardware/wifi/1.0/IWifi.h>
|
||||
#include <android/hardware/wifi/1.0/IWifiNanIface.h>
|
||||
#include <android/hardware/wifi/1.0/IWifiNanIfaceEventCallback.h>
|
||||
@@ -44,6 +45,9 @@ using ::android::hardware::wifi::V1_0::IWifi;
|
||||
class WifiNanIfaceHidlTest : public ::testing::TestWithParam<std::string> {
|
||||
public:
|
||||
virtual void SetUp() override {
|
||||
if (!::testing::deviceSupportsFeature("android.hardware.wifi.aware"))
|
||||
GTEST_SKIP() << "Skipping this test since NAN is not supported.";
|
||||
|
||||
// Make sure test starts with a clean state
|
||||
stopWifi(GetInstanceName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user