AW UMA: use EXPECT_* instead of ASSERT_*
No change to logic. Use the EXPECT_* macros over the ASSERT_* macros. This is helpful when there are multiple failed assertions in one unittest, because both failed assertions can be seen. At the moment, this is only visible when running in verbose mode (-v). But this is still marginally better for the devs who are aware of this option, with no downside for everyone else. Fixed: 1020778 Test: Manually modify test so 2 consecutive expectations will fail, then Test: run_android_webview_unittests --gtest_filter=AwMetricsServiceClientTest.* -v Test: Observe both failed expectations are in the log Change-Id: I6d0267340fafb9c514c7d1b013c10c954316e645 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1898171Reviewed-by:Robbie McElrath <rmcelrath@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#712250}
Showing
Please register or sign in to comment