commit | 2a06ae82997f8125d9f262a1ec6cf0a3e22ef307 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Aug 05 17:38:46 2020 -0700 |
committer | Yifan Hong <elsk@google.com> | Wed Aug 05 20:00:09 2020 -0700 |
tree | f67d654c420f43bcd043eb5448d78f12d8d99273 | |
parent | 7c95de759197cb153e8be26c57b2b33f95f1869e [diff] |
Fix AnimationParser remove_prefix test The test fails because TEST_STRING, a char[], is silently converted to a std::string, passed to remove_prefix, then the string is destroyed, but a pointer to the string is returned. Fix it by changing the signature of remove_prefix to use std::string_view to be more robust in handling raw char*. Test: run it Change-Id: I553c066907f09cf330c8b7a4659db5a1fee82cac