Assert sensor creation in PlatformSensorAndProviderLinuxTest.
The test only checks the sensor pointer with EXPECT_TRUE() and then dereferences the pointer. On failure, this will blow through the EXPECT_TRUE() and crash the test program. Switch to ASSERT_TRUE() to fail without crashing. Change-Id: I18a8b9c2ea7e300b93a11cc6108f195a895bec04 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1733039Reviewed-by:Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Reviewed-by:
Tim Volodine <timvolodine@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#684353}
Showing
Please register or sign in to comment