• Tarun Bansal's avatar
    Fix flaky data saver warmup browsertest · c752d8a2
    Tarun Bansal authored
    In local testing, there are two separate reasons for flakes:
    (i) Histogram tester does not return correct values even though
    the relevant code has already logged the histogram values
    correctly.
    (ii) The via header value is set too late by the unittest.
    
    The first problem is sort of solved by waiting for the histogram
    to populate. The second problem is solved by setting the via header
    value in the test constructor.
    
    Bug: 760294
    Change-Id: I9ae23e4b704f6eaa51fd9c37f76491008c6cb1c6
    Reviewed-on: https://chromium-review.googlesource.com/c/1289689Reviewed-by: default avatarClark DuVall <cduvall@chromium.org>
    Reviewed-by: default avatarTarun Bansal <tbansal@chromium.org>
    Commit-Queue: Tarun Bansal <tbansal@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#600967}
    c752d8a2
data_reduction_proxy_browsertest.cc 22.7 KB