Skip to content
Commit b7c14eb7 authored by Stefano Duo's avatar Stefano Duo
Browse files

TestUrlRequestCallback: assert internal states using matchers

Currently, TestUrlRequestCallback asserts state transitions through
boolean expressions. When these fail, they simply yell "true != false",
without surfacing the wrong underlying state transition (e.g.,
`next_state == ON_REDIRECT`).

Using assertThat & matchers avoids this problem.

Test: m & test run
Change-Id: Ia26dc0e6f2fe9b53a1f92638ab0b74e39b936d3d
parent 8161a69b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment