summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/HalDeviceManagerTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/HalDeviceManagerTest.java b/tests/wifitests/src/com/android/server/wifi/HalDeviceManagerTest.java
index 0a1850cc1..4635f843b 100644
--- a/tests/wifitests/src/com/android/server/wifi/HalDeviceManagerTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/HalDeviceManagerTest.java
@@ -988,6 +988,18 @@ public class HalDeviceManagerTest {
assertEquals(correctResults, results);
}
+ /**
+ * Validate that when no chip info is found an empty list is returned.
+ */
+ @Test
+ public void testGetSupportedIfaceTypesError() throws Exception {
+ // try API
+ Set<Integer> results = mDut.getSupportedIfaceTypes();
+
+ // verify results
+ assertEquals(0, results.size());
+ }
+
// utilities
private void dumpDut(String prefix) {
StringWriter sw = new StringWriter();