summaryrefslogtreecommitdiff
path: root/src/android/net/util/NetworkStackUtils.java
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2019-06-03 16:03:35 +0900
committerRemi NGUYEN VAN <reminv@google.com>2019-06-10 15:53:30 +0900
commit1718475e7d7ff234d9c219561b67cd1877f5f41e (patch)
tree4369ed59fcfae9201205fabd65e2230b12b1340d /src/android/net/util/NetworkStackUtils.java
parent67be1d71aa5d45763746ebb46881ce29ae4c4b7d (diff)
Add host-driven tests for the NetworkStack
Add a first test to verify that the NetworkStack can be installed and rolled back. The test will only pass on a device built with the same key configuration as the test. It will not pass on production devices for example. The test also uses the NetworkStack in the tree, so it does not test mismatches between the version of the NetworkStack and that of the system. On devices where adb root is available, the test performs the following: - Install the NetworkStack APK with --staged and --enable-rollback - Reboot the framework - Check that the network stack is registered - Request a rollback of the network stack - Reboot the framework - Check that the network stack is registered again When adb root is not available, the test performs a reboot instead of a framework restart. The test then takes 2m25s instead of 25s. Test: atest NetworkStackHostTests Bug: 133025642 Change-Id: Ief84d3718a8970606b2f69206d75b4147b5d2e76
Diffstat (limited to 'src/android/net/util/NetworkStackUtils.java')
0 files changed, 0 insertions, 0 deletions