diff options
author | Tobias Thierer <tobiast@google.com> | 2020-09-08 17:32:13 +0100 |
---|---|---|
committer | Tobias Thierer <tobiast@google.com> | 2020-09-08 19:59:05 +0100 |
commit | e121ca0a629580422fb4ca6af998f19e5b22f033 (patch) | |
tree | bbbeef8ddf3cba558a6266d3d7e228c1a86471f1 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 056630f142a730fe852155033e84a107ddbef5c1 (diff) |
HexDumpTest: provide test coverage
While debugging bug 160801497, I discovered that HexDump would throw
unusual exception types (RuntimeException, StringIndexOutOfBoundsException)
when given a String with non-hex characters or odd length.
Further investigation found that HexDumpTest provided minimal coverage,
and one of its test methods no longer passes.
This CL fixes the broken test, and adds more coverage. The unusual
exception types thrown on invalid hex strings are now formalized in the
test.
Test: atest FrameworksCoreTests:com.android.internal.util.HexDumpTest
Change-Id: I1dc24f803c303e3457b856d62088e09c046e31e3
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions