Override noise provider in HeavyAd tests where there is no heavy ad
crrrev.com/c/1846313 added noise to the network threshold for heavy ads. This change did not override the noise provider in AdsPageLoadMetricsObserverTest.HeavyAdWithUserGesture_NotConsideredHeavy, This does not break the test because we never consider the ad to be heavy. However, if there was a regression that caused an ad with a user gesture to be considered heavy, this test becomes non-determinstic as the noise may cause us to not label it as heavy. This CL mocks the noise provider to 0 to ensure we are testing the user gesture logic correctly. This similar behavior was seen in two other tests which are also updated. Change-Id: I7f085800b6ae189a5082c207460defd68b371638 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849130 Commit-Queue: John Delaney <johnidel@chromium.org> Reviewed-by:Charlie Harrison <csharrison@chromium.org> Cr-Commit-Position: refs/heads/master@{#706672}
Showing
Please register or sign in to comment