• zhongyi's avatar
    Change the HttpServerPropertiesManager::net_task_runner_ to use a... · 65aa8f65
    zhongyi authored
    Change the HttpServerPropertiesManager::net_task_runner_ to use a TestMockTimeTaskRunner in unittests so that
    we are able to verify tasks posted with delay in the future.
    
    Now all the tests that were ExpectCacheUpdate or ExpectScheduleUpdatePrefsOnNetworkThread
    will need to call net_test_task_runner_>FastForwardUntilNoTasksRemain() so that all
    the tasks complete running.
    
    BUG=670519
    
    Review-Url: https://codereview.chromium.org/2563273002
    Cr-Commit-Position: refs/heads/master@{#437980}
    65aa8f65
http_server_properties_manager_unittest.cc 54.8 KB