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

Issue 240893004: Mock timer for Telemetry unit tests (Closed)

Created:
6 years, 8 months ago by Dominik Grewe
Modified:
6 years, 8 months ago
Reviewers:
tonyg, Sami
CC:
chromium-reviews, telemetry+watch_chromium.org
Visibility:
Public.

Description

Mock timer for Telemetry unit tests Add a mock timer for Telemetry unit tests to avoid relying on real timers. BUG=364317 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266009

Patch Set 1 #

Patch Set 2 : Re-upload #

Patch Set 3 : mock timer for WaitForJavaScriptExpression #

Patch Set 4 : hide time.sleep and time.time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -30 lines) Patch
M tools/telemetry/telemetry/page/actions/gesture_action_unittest.py View 1 2 3 1 chunk +21 lines, -13 lines 0 comments Download
M tools/telemetry/telemetry/page/actions/wait_unittest.py View 1 2 3 2 chunks +35 lines, -17 lines 0 comments Download
M tools/telemetry/telemetry/unittest/simple_mock.py View 1 2 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Dominik Grewe
I've not changed WaitActionTest.testWaitActionTimeout to use the mock timer, because it would require plumbing all ...
6 years, 8 months ago (2014-04-17 14:30:51 UTC) #1
Sami
What to do with testWaitActionTimeout really depends on what we want it to test: if ...
6 years, 8 months ago (2014-04-17 15:43:22 UTC) #2
tonyg
I'm pretty much okay with whatever we decide here, but I just want to point ...
6 years, 8 months ago (2014-04-17 16:18:25 UTC) #3
Dominik Grewe
On 2014/04/17 16:18:25, tonyg wrote: > I'm pretty much okay with whatever we decide here, ...
6 years, 8 months ago (2014-04-17 16:44:53 UTC) #4
Dominik Grewe
I've added the mock timer to the timeout test. Is this what you had in ...
6 years, 8 months ago (2014-04-22 17:45:52 UTC) #5
tonyg
Sorry for the delay, I've been OOO. I like this approach but don't think the ...
6 years, 8 months ago (2014-04-22 18:17:06 UTC) #6
Dominik Grewe
On 2014/04/22 18:17:06, tonyg wrote: > Sorry for the delay, I've been OOO. > > ...
6 years, 8 months ago (2014-04-23 09:56:25 UTC) #7
tonyg
lgtm
6 years, 8 months ago (2014-04-24 03:55:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/240893004/80001
6 years, 8 months ago (2014-04-24 03:55:57 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 05:18:37 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel tryserver.chromium on win_chromium_x64_rel
6 years, 8 months ago (2014-04-24 05:18:37 UTC) #11
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 8 months ago (2014-04-24 09:25:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/240893004/80001
6 years, 8 months ago (2014-04-24 09:25:40 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 11:29:48 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-24 11:29:49 UTC) #15
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 8 months ago (2014-04-24 11:53:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/240893004/80001
6 years, 8 months ago (2014-04-24 11:53:21 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 14:18:31 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-24 14:18:31 UTC) #19
tonyg
The CQ bit was checked by tonyg@chromium.org
6 years, 8 months ago (2014-04-24 14:22:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/240893004/80001
6 years, 8 months ago (2014-04-24 14:23:01 UTC) #21
commit-bot: I haz the power
6 years, 8 months ago (2014-04-24 22:24:29 UTC) #22
Message was sent while issue was closed.
Change committed as 266009

Powered by Google App Engine
This is Rietveld 408576698