summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorBram Bonné <brambonne@google.com>2020-01-23 17:39:31 +0100
committerBram Bonné <brambonne@google.com>2020-01-24 16:22:13 +0100
commita38d89760a7ff02c0aa7db13d8ec2086913fedef (patch)
treeb082379642921dcca102d8d422ac98ab3e5c5505 /annotations/generate_annotated_java_files.py
parent9a47fe8e52510ddadf2e54fc9a59c023e8865e56 (diff)
Updates tests to handle MAC address restrictions.
Non-system apps targeting the latest SDK will no longer have access to the MAC addresses of network interfaces. This change updates NetworkInterfaceTest to include tests for the new behavior, and to check that apps targeting SDK 29 can still rely on the old behavior. In addition, testGetNetworkInterfaces() is updated to handle cases where the "ip" command is not available (because of bind() on NETLINK_ROUTE sockets not being allowed). It compares its results to those returned by getifaddrs() instead. Bug: 141455849 Test: atest NetworkInterfaceTest Change-Id: I74f558ec9a14c71405bf56305547c9c10117bf33
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions