diff options
| author | Elliott Hughes <enh@google.com> | 2018-04-25 14:52:50 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2018-04-25 14:55:48 -0700 |
| commit | 9f49508f368204657414ec0f2852f2a7abb5b4c5 (patch) | |
| tree | acc3a55ec97c42678f59cb0568b5d1cfad3664af /trusty/coverage/coverage_test.cpp | |
| parent | 419ba9e2aadbfed3862d95265ce141d016c7ca69 (diff) | |
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
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
