summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkCapabilitiesTest.java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2022-02-14 09:05:27 +0900
committerXiao Ma <xiaom@google.com>2022-03-17 13:42:34 +0000
commit333d5e52f5ab262405c96e7aab05e2552fbc52b0 (patch)
treeec503d75fa873763ff0b8ad6d95cd51e0b142dc3 /tests/common/java/android/net/NetworkCapabilitiesTest.java
parent1c2f79705fc54d914aafbb318fa4e7fd7fb327fb (diff)
Add a method to create a TAP interface without bringing it up.
In S, the behaviour of createTunInterface and createTapInterface changed so that they bring up the interface before returning it. This makes it difficult to test code that brings interfaces up itself, such as IpClient or EthernetManager, because the tests cannot predict whether that code will see the interface up or not. This leads to flaky tests and can even make it impossible to reliably test some behaviour. Add a method that allows the caller to specify whether to bring up the interface or not. Test: new codepath tested by other CL in topic Test: existing codepaths already well-covered Change-Id: I0f7698f4dad132f201db4203e65a78c6af564ab2
Diffstat (limited to 'tests/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions