diff options
| author | Lorenzo Colitti <lorenzo@google.com> | 2019-01-28 19:15:35 +0900 |
|---|---|---|
| committer | Lorenzo Colitti <lorenzo@google.com> | 2019-01-30 02:00:35 +0900 |
| commit | 1bb4969e57b7b2145c8954edf6adfb7a9c91f09a (patch) | |
| tree | b7fb6fdc761bc70ce128c403dd675107287961d2 /annotations/generate_annotated_java_files.py | |
| parent | 35353cb07f4652815a11cd3d065214f15a194253 (diff) | |
Test passing wrong SocketAddress types to bind, connect, sendto.
The SocketAddress versions of Os.bind(), Os.connect(), and
Os.sendto() are tested by checkSendToSocketAddress and
checkUnixDomainSocket, but these tests do not check what errors
are generated if the wrong address family SocketAddress is
passed to these functions.
Also test that bind, connect, and sendto throw the expected
UnsupportedOperationException when passed an unknown subclass of
SocketAddress.
Bug: 123062477
Test: atest CtsLibcoreTestCases:libcore.io.OsTest
Change-Id: Iadf9f10e26bbc650c5e1b9d03f32c5dafb6f21b4
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
