Port syscall filtering unit tests to C++.
That way they can be run on Android Platform Continuous Testing,
which requires gtest for parsing of test output. Also fix some issues
in the tests:
-Use ASSERT instead of EXCEPT for pointers that are later
dereferenced.
-Add a few missing ASSERTs.
syscall_filter_unittest.cpp has no changes from
syscall_filter_unittest.c. Keep parallel targets for now, and once
Chrome OS is updated, remove C targets.
Bug: 30973585
Change-Id: I46a1474afa8850015da927ce8c7d9f8b8ce95b65
4 files changed