[Cronet] Catch IllegalArgumentException when assertions are disabled
commitea113f4396e08dacb9c560afe958efa9847c56a6
authorxunjieli <xunjieli@chromium.org>
Fri, 11 Sep 2015 18:30:25 +0000 (11 11:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 11 Sep 2015 18:31:41 +0000 (11 18:31 +0000)
tree1185e8b11ff574ebf1d928f46340f678c5c25105
parentc20cb51de91a809685d0378723d11a9242916aa5
[Cronet] Catch IllegalArgumentException when assertions are disabled

If assertions are disabled, testInvalidLoadState will not
catch an assertion error. This CL adds an additional catch statement for
IllegalArgumentException, which should be thrown in case of invalid inputs.

Review URL: https://codereview.chromium.org/1337083003

Cr-Commit-Position: refs/heads/master@{#348444}
components/cronet/android/test/javatests/src/org/chromium/net/GetStatusTest.java