summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2016-10-27 08:04:48 -0700
committerMark Salyzyn <salyzyn@google.com>2016-11-03 13:34:13 -0700
commit547e0dc45a6f2eca161b29b34a7f5ebbbc8d4b01 (patch)
treea00b6d307733777770fe668fd88a0da61a6635d4 /libcutils/socket_local_server_unix.cpp
parent5febc5131899402e983c319af9c38596ee9a56a2 (diff)
libcutils: add android_get_control_socket() test
android_get_control_socket() checks if the resulting file descriptor is valid, open and matches the socket bound name reference, which on purpose will fail if a symbolic link is in the path rather than using a fully qualified path. If there are any non-alpha and non-numeric characters in the name, they are replaced with _. Add unit test. Test: gTest libcutils_test --gtest_filter=SocketTest.android_get_control_socket Bug: 32450474 Change-Id: I27a6419012033ef8bd6ca04f3e479d01264d8c49
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions