Introduce ASSERT_IF_ERROR, used test-side to wrap methods that return NSError*.
As part of the EG2 migration, app-side helpers that used to GREYAssert now return NSError*, which are asserted on in test-side code. ASSERT_IF_ERROR simplifies the modification required for test code that call these app-side helpers, while preserving the line number of the failure. This CL aligns the test code in these 4 CLs to use ASSERT_IF_ERROR: http://crrev.com/c/1562756 http://crrev.com/c/1553085 http://crrev.com/c/1558155 http://crrev.com/c/1559889 Bug: 922813 Change-Id: I2d82dd9cd6a9eab6913418d357649c1f13f3699f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574954 Commit-Queue: ericale <ericale@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#652855}
Showing
This diff is collapsed.
Please register or sign in to comment