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

Commit ef48ac19 authored by Nate Jiang's avatar Nate Jiang Committed by Automerger Merge Worker
Browse files

Merge "Skip test when NAN or RTT feature not supported" into rvc-dev am: c70e5e08

Change-Id: I6809f5dade657730ab21de8ce0b33a365c77b47b
parents 7708ff20 c70e5e08
Loading
Loading
Loading
Loading
+17 −8
Original line number Diff line number Diff line
@@ -23,14 +23,14 @@ cc_library_static {
        "wifi_hidl_test_utils.cpp",
    ],
    export_include_dirs: [
        "."
        ".",
    ],
    shared_libs: [
        "libnativehelper",
    ],
    static_libs: [
        "android.hardware.wifi@1.0",
        "libwifi-system-iface"
        "libwifi-system-iface",
    ],
}

@@ -49,9 +49,12 @@ cc_test {
        "android.hardware.wifi@1.1",
        "android.hardware.wifi@1.2",
        "android.hardware.wifi@1.3",
        "libwifi-system-iface"
        "libwifi-system-iface",
    ],
    test_suites: [
        "general-tests",
        "vts",
    ],
    test_suites: ["general-tests", "vts"],
}

// These tests are split out so that they can be conditioned on presence of the
@@ -66,9 +69,12 @@ cc_test {
    static_libs: [
        "VtsHalWifiV1_0TargetTestUtil",
        "android.hardware.wifi@1.0",
        "libwifi-system-iface"
        "libwifi-system-iface",
    ],
    test_suites: [
        "general-tests",
        "vts",
    ],
    test_suites: ["general-tests", "vts"],
}

// These tests are split out so that they can be conditioned on presence of
@@ -83,7 +89,10 @@ cc_test {
    static_libs: [
        "VtsHalWifiV1_0TargetTestUtil",
        "android.hardware.wifi@1.0",
        "libwifi-system-iface"
        "libwifi-system-iface",
    ],
    test_suites: [
        "general-tests",
        "vts",
    ],
    test_suites: ["general-tests", "vts"],
}
+3 −0
Original line number Diff line number Diff line
@@ -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/IWifiRttController.h>
#include <gtest/gtest.h>
@@ -38,6 +39,8 @@ using ::android::hardware::wifi::V1_0::WifiStatusCode;
class WifiRttControllerHidlTest : public ::testing::TestWithParam<std::string> {
   public:
    virtual void SetUp() override {
        if (!::testing::deviceSupportsFeature("android.hardware.wifi.rtt"))
            GTEST_SKIP() << "Skipping this test since RTT is not supported.";
        // Make sure test starts with a clean state
        stopWifi(GetInstanceName());
    }
+7 −3
Original line number Diff line number Diff line
@@ -18,14 +18,18 @@ cc_test {
    name: "VtsHalWifiV1_1TargetTest",
    defaults: ["VtsHalTargetTestDefaults"],
    srcs: [
        "wifi_chip_hidl_test.cpp"],
        "wifi_chip_hidl_test.cpp",
    ],
    static_libs: [
        "VtsHalWifiV1_0TargetTestUtil",
        "android.hardware.wifi@1.0",
        "android.hardware.wifi@1.1",
        "android.hardware.wifi@1.2",
        "android.hardware.wifi@1.3",
        "libwifi-system-iface"
        "libwifi-system-iface",
    ],
    test_suites: [
        "general-tests",
        "vts",
    ],
    test_suites: ["general-tests", "vts"],
}
+10 −5
Original line number Diff line number Diff line
@@ -27,10 +27,13 @@ cc_test {
        "android.hardware.wifi@1.1",
        "android.hardware.wifi@1.2",
        "android.hardware.wifi@1.3",
        "libwifi-system-iface"
        "libwifi-system-iface",
    ],
    disable_framework: true,
    test_suites: ["general-tests", "vts"],
    test_suites: [
        "general-tests",
        "vts",
    ],
}

cc_test {
@@ -44,8 +47,10 @@ cc_test {
        "android.hardware.wifi@1.0",
        "android.hardware.wifi@1.1",
        "android.hardware.wifi@1.2",
        "libwifi-system-iface"
        "libwifi-system-iface",
    ],
    test_suites: [
        "general-tests",
        "vts",
    ],
    disable_framework: true,
    test_suites: ["general-tests", "vts"],
}
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

#include <android-base/logging.h>

#include <VtsCoreUtil.h>
#include <android/hardware/wifi/1.2/IWifi.h>
#include <android/hardware/wifi/1.2/IWifiNanIface.h>
#include <android/hardware/wifi/1.2/IWifiNanIfaceEventCallback.h>
@@ -50,6 +51,8 @@ android::sp<android::hardware::wifi::V1_2::IWifiNanIface> getWifiNanIface_1_2(
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 to start with a clean state
        stopWifi(GetInstanceName());

Loading