commit | b7c14eb74a2c524715846ff3c12cb84713237c4d | [log] [tgz] |
---|---|---|
author | Stefano Duo <stefanoduo@google.com> | Fri Feb 24 13:50:20 2023 +0000 |
committer | Stefano Duo <stefanoduo@google.com> | Fri Feb 24 13:57:05 2023 +0000 |
tree | 7e2cb0ef125b6c0fa5f3e959221a356a0e1ec6af | |
parent | 8161a69b65d2b1889d1a417acdc341f8f557cf17 [diff] |
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