Android: UserDataHost switches to throw RuntimeError
AssertionError-based tests are not guaranteed to work. This CL changes the assertion exception used in UserDataHost class to runtime exceptions to make it test-friendly. Items tested in the tests now throw IllegalStateException or IllegalArgumentException. Bug: 877918 Change-Id: I0f1d8c7d9b49a7b8c4020bdfaaf3e15479110b7d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1192484 Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Reviewed-by:Richard Coles <torne@chromium.org> Cr-Commit-Position: refs/heads/master@{#708871}
Showing
Please register or sign in to comment