diff options
author | Etan Cohen <etancohen@google.com> | 2017-02-14 18:52:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-02-14 18:52:49 +0000 |
commit | 254c664716d102f2c1cecb23f6817af111271c54 (patch) | |
tree | e5c87fc192f5c890cdd7b8553334b48a1d062015 /tests | |
parent | 374f78d3841f7bf74543dc4d21db66d1d3472c3a (diff) | |
parent | e450fe1a611e4dcf05046a6aa0df0bc8300cba61 (diff) |
Merge "[HAL Device Manager] getSupportedIfaceTypes() mod to never return null"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/HalDeviceManagerTest.java | 12 |
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(); |