platform_system_core/libcutils/tests
Elliott Hughes 9f49508f36 Rewrite get_sched_policy_name for safety.
This way you'll get a build time error if you make the usual mistake of
adding to the enum but not adding an entry to the array.

Also improve the unit tests, and fix get_sched_policy_name's incorrect
behavior on invalid inputs.

Bug: N/A
Test: ran tests
Change-Id: Iefcb1ec9ef66267837da7a576c8be3d0cfb16cd0
2018-04-25 14:55:48 -07: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 Rewrite get_sched_policy_name for safety. 2018-04-25 14:55:48 -07: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