Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Issue 2577863002: Change HttpServerPropertiesManager::pref_task_runner_ to use TestMockTimeTaskRunner in unittests (Closed)

Created:
4 years ago by Zhongyi Shi
Modified:
4 years ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change HttpServerPropertiesManager::pref_task_runner_ to use TestMockTimeTaskRunner in unittests so that we are able to verify tasks posted with delay in the future. Now all the tests that used to ExpectPrefUpdate() will need to call pref_task_runner_->FastForwardUntilNoTasksRemain() so that all the pref tasks complete running. Note running the pref(net)_task_runner might result in new tasks posted to net(pref)_task_runner. BUG=670519 Committed: https://crrev.com/56fd0975bd8aded8e004fd4d52fc80e2fd51898c Cr-Commit-Position: refs/heads/master@{#439374}

Patch Set 1 #

Patch Set 2 : update with upstream #

Patch Set 3 : Merge branch 'Fix_All_Use_Pref_Test_Task_Runner' into Fix_All_Pref_tests #

Patch Set 4 : rebase with upstream checked in #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -32 lines) Patch
M net/http/http_server_properties_manager_unittest.cc View 1 2 3 25 chunks +151 lines, -32 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (11 generated)
Zhongyi Shi
This cl changes the pref_task_runner in HttpServerPropertiesManager to use TestMockTimeTaskRunner in unittests. Test only change. ...
4 years ago (2016-12-14 23:42:46 UTC) #4
Ryan Hamilton
Please mention HttpServerPropertiesManager in the CL description and CL title. LGTM
4 years ago (2016-12-15 01:28:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2577863002/120001
4 years ago (2016-12-18 16:36:36 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years ago (2016-12-18 17:17:33 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-18 17:19:37 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/56fd0975bd8aded8e004fd4d52fc80e2fd51898c
Cr-Commit-Position: refs/heads/master@{#439374}

Powered by Google App Engine
This is Rietveld 408576698