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 |
||
|---|---|---|
| .. | ||
| Android.bp | ||
| android_get_control_file_test.cpp | ||
| android_get_control_socket_test.cpp | ||
| AndroidTest.xml | ||
| AshmemTest.cpp | ||
| fs_config.cpp | ||
| MemsetTest.cpp | ||
| multiuser_test.cpp | ||
| PropertiesTest.cpp | ||
| sched_policy_test.cpp | ||
| sockets_test.cpp | ||
| test_str_parms.cpp | ||
| trace-dev_test.cpp | ||