diff options
| author | Mark Salyzyn <salyzyn@google.com> | 2018-01-18 07:59:38 -0800 | 
|---|---|---|
| committer | Mark Salyzyn <salyzyn@google.com> | 2018-01-26 09:50:57 -0800 | 
| commit | 276758dab8e24b29be0abb1b6bdadd7c897e8701 (patch) | |
| tree | 2ad6303d8fb04df29bccb66e698081b313f9b2d8 /libutils/Unicode.cpp | |
| parent | bb4d172f702744ae492000c68a4d43e7d1f478c5 (diff) | |
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
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions
