platform_system_core/libcutils/tests
Mark Salyzyn 276758dab8 libcutils: test: increase use of ashmem_valid(fd)
There may be evidence of ashmem_valid(fd) reporting that the file
descriptor is an ashmem node.  Increase testing of ashmem_valid(fd),
reporting that the node _is_ ashmem, to inspire confidence in the
positive result.  Scan all file descriptors in the system, and for
those that pass ashmem_valid, get a non-zero size reference back.

Some clang-format-isms applied.

Test: libcutils-test --gtest_filter=AshmemTest.*
Bug: 72021458
Change-Id: I77d746b57a89a6afa1b829dddfdc4dd319f6b684
2018-01-26 09:50:57 -08:00
..
Android.bp libcutils: fs_config internal table alias test 2017-05-04 11:41:17 -07:00
android_get_control_file_test.cpp libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
android_get_control_socket_test.cpp libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
AndroidTest.xml Add test config to libcutils_test 2017-03-31 17:12:18 -07:00
AshmemTest.cpp libcutils: test: increase use of ashmem_valid(fd) 2018-01-26 09:50:57 -08:00
fs_config.cpp Add std::string StartsWith*/EndsWith* overloads. 2017-12-20 09:42:22 -08:00
MemsetTest.cpp Make allocations use unique_ptr. 2015-10-14 14:03:29 -07:00
multiuser_test.cpp Better, consistent definition of AID_SHARED_GID. 2017-11-13 16:49:26 -07:00
PropertiesTest.cpp libcutils: Use strnlen for default property values 2016-12-22 09:21:06 -08:00
sched_policy_test.cpp libcutils: add sched_policy test 2016-08-03 23:31:50 +00:00
sockets_test.cpp libcutils: fix socket type in SocketsTest.TestGetLocalPort 2017-02-22 10:58:38 -08:00
test_str_parms.cpp Move all libcutils tests into the gtests. 2015-04-02 14:25:55 -07:00
trace-dev_test.cpp Move libcutils source to C++. 2017-11-10 13:18:10 -08:00