Chromium Code Reviews

Issue 2447013007: Fixing flaky DtmfSenderTest by using fake clock. (Closed)

Created:
4 years, 1 month ago by Taylor Brandstetter
Modified:
4 years, 1 month ago
Reviewers:
honghaiz3, skvlad
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fixing flaky DtmfSenderTest by using fake clock. This test was expecting tones to be sent at specific times, with a 100ms margin of error, causing slower bots or bots with less precise timing to fail the test occasionally. BUG=webrtc:4219, webrtc:5657 Committed: https://crrev.com/e7fc7d5c02038372e8b327baed4cb7931c197f67 Cr-Commit-Position: refs/heads/master@{#14828}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Replace WAIT with SIMULATED_WAIT in a couple places. #

Unified diffs Side-by-side diffs Stats (+23 lines, -16 lines)
M webrtc/api/dtmfsender_unittest.cc View 10 chunks +23 lines, -16 lines 0 comments

Messages

Total messages: 12 (5 generated)
honghaiz3
https://codereview.webrtc.org/2447013007/diff/1/webrtc/api/dtmfsender_unittest.cc File webrtc/api/dtmfsender_unittest.cc (right): https://codereview.webrtc.org/2447013007/diff/1/webrtc/api/dtmfsender_unittest.cc#newcode33 webrtc/api/dtmfsender_unittest.cc:33: // to each test based on the tones sent, ...
4 years, 1 month ago (2016-10-28 17:23:26 UTC) #2
skvlad
lgtm
4 years, 1 month ago (2016-10-28 19:21:44 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/2447013007/diff/1/webrtc/api/dtmfsender_unittest.cc File webrtc/api/dtmfsender_unittest.cc (right): https://codereview.webrtc.org/2447013007/diff/1/webrtc/api/dtmfsender_unittest.cc#newcode33 webrtc/api/dtmfsender_unittest.cc:33: // to each test based on the tones sent, ...
4 years, 1 month ago (2016-10-28 20:31:23 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.webrtc.org/2447013007/20001
4 years, 1 month ago (2016-10-28 20:31:34 UTC) #8
honghaiz3
lgtm
4 years, 1 month ago (2016-10-28 20:37:56 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-28 20:53:11 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 20:53:25 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e7fc7d5c02038372e8b327baed4cb7931c197f67
Cr-Commit-Position: refs/heads/master@{#14828}

Powered by Google App Engine