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

Issue 851703002: Add TestMockTimeTaskRunner in base/test. (Closed)

Created:
5 years, 11 months ago by engedy
Modified:
5 years, 11 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, oshima+watch_chromium.org, kalyank, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add TestMockTimeTaskRunner in base/test. Multiple implementations of this functionality exist with slight modifications. This CL consolidates them. Note: This is a reland of https://codereview.chromium.org/823143004/, which was reverted due to memory leaks, which are now fixed. BUG=329911 TBR=phajdan.jr@chromium.org,thestig@chromium.org,stevenjb@chromium.org # Reland. Committed: https://crrev.com/10b484333c5719b0c1f687fa9ad160dbccb812d4 Cr-Commit-Position: refs/heads/master@{#311343}

Patch Set 1 : Original CL. #

Patch Set 2 : Memory leaks fixed. #

Total comments: 3

Patch Set 3 : Added comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+445 lines, -477 lines) Patch
M ash/system/chromeos/session/logout_confirmation_controller_unittest.cc View 11 chunks +15 lines, -151 lines 0 comments Download
M base/base.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M base/test/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A base/test/test_mock_time_task_runner.h View 1 1 chunk +122 lines, -0 lines 0 comments Download
A base/test/test_mock_time_task_runner.cc View 1 chunk +157 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/session_length_limiter_unittest.cc View 15 chunks +19 lines, -121 lines 0 comments Download
M chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc View 1 2 71 chunks +128 lines, -205 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
engedy
@Bartosz, I accidentally introduced a cyclic dependency of reference counted pointers, which is now fixed. ...
5 years, 11 months ago (2015-01-13 12:50:01 UTC) #2
engedy
On 2015/01/13 12:50:01, engedy wrote: > @Bartosz, I accidentally introduced a cyclic dependency of reference ...
5 years, 11 months ago (2015-01-13 14:21:20 UTC) #4
stevenjb
rubber-stamp ash/, c/b/chromeos owner lgtm
5 years, 11 months ago (2015-01-13 16:55:42 UTC) #5
engedy
Thanks, Steven! @Pawel, could you PTAL at the single line change in test_mock_time_task_runner.h?
5 years, 11 months ago (2015-01-13 17:06:20 UTC) #6
bartfab (slow)
https://codereview.chromium.org/851703002/diff/30001/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc File chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc (right): https://codereview.chromium.org/851703002/diff/30001/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc#newcode63 chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc:63: base::TestMockTimeTaskRunner* mock_time_task_runner); You should specify that |mock_time_task_runner| needs to ...
5 years, 11 months ago (2015-01-13 18:15:46 UTC) #7
engedy
https://codereview.chromium.org/851703002/diff/30001/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc File chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc (right): https://codereview.chromium.org/851703002/diff/30001/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc#newcode63 chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc:63: base::TestMockTimeTaskRunner* mock_time_task_runner); On 2015/01/13 18:15:46, bartfab wrote: > You ...
5 years, 11 months ago (2015-01-13 18:25:56 UTC) #8
bartfab (slow)
lgtm https://codereview.chromium.org/851703002/diff/30001/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc File chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc (right): https://codereview.chromium.org/851703002/diff/30001/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc#newcode63 chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc:63: base::TestMockTimeTaskRunner* mock_time_task_runner); On 2015/01/13 18:25:56, engedy wrote: > ...
5 years, 11 months ago (2015-01-13 18:29:35 UTC) #9
Lei Zhang
lgtm stamp
5 years, 11 months ago (2015-01-13 19:54:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/851703002/50001
5 years, 11 months ago (2015-01-13 20:00:47 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:50001)
5 years, 11 months ago (2015-01-13 22:10:15 UTC) #13
commit-bot: I haz the power
5 years, 11 months ago (2015-01-13 22:11:16 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/10b484333c5719b0c1f687fa9ad160dbccb812d4
Cr-Commit-Position: refs/heads/master@{#311343}

Powered by Google App Engine
This is Rietveld 408576698