[reland] network: de-flake NetworkQualityEstimator throttling test
This test has is flaky when run on devices that have a real wifi or cellular connection, because in that situation, the call to SimulateNetworkChange() can cause an arbitrary number of real calls to GetCurrentSignalStrengthWithThrottling(). This change de-flakes the test in that situation by: 1) Delaying constructing the HistogramTester, to avoid counting those calls, and 2) Advancing the fake time the test uses at the start of the test, so that the NetworkQualityEstimator under test is never in its timeout period when the test starts This change does not re-enable the test on Android yet, since it seems to be still flaky there for unclear reasons. Bug: 1133439,1130720 Change-Id: I152f43f9c66ccef29060c48201fb7b4e8868fafe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2476812Reviewed-by:Tarun Bansal <tbansal@chromium.org> Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#817719} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485194 Cr-Commit-Position: refs/heads/master@{#818533}
Showing
Please register or sign in to comment