Fix flakyness in DeviceStatusCollectorTest
DeviceStatusCollector collects resource usage stats every 2 minutes. The ActivityTimesKeptUntilSubmittedSuccessfully test compared two full instances of DeviceStatusReportRequest. In one run of the test, the test failed because the resource usage collection happened right in between. This CL compares activity times only (aka what the test is interested in) and removes the full status comparison. Also fixes an uninteresting mock function call and moves some functions from public to protected. BUG=chromium:743061 TEST=out/Release/browser_tests --gtest_filter=DeviceStatusCollectorTest.* Change-Id: I39d65260794326cae90d57ec583ff28e2d9a9092 Reviewed-on: https://chromium-review.googlesource.com/573901Reviewed-by:Drew Wilson <atwilson@chromium.org> Commit-Queue: Lutz Justen <ljusten@chromium.org> Cr-Commit-Position: refs/heads/master@{#487034}
Showing
Please register or sign in to comment