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

Issue 257044: This is a second attempt at submitting this changelist. The original one was... (Closed)

Created:
11 years, 2 months ago by Markus (顧孟勤)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, darin (slow to review), tim (not reviewing)
Visibility:
Public.

Description

This is a second attempt at submitting this changelist. The original one was http://codereview.chromium.org/196053 It turns out, since none of our tests abstract time correctly, unittests are very sensitive to subtle changes in timing. This made some of the valgrind tests on Linux fail, and unfortunately, neither my desktop nor the trybots could reproduce the problem reliably. As far as I can tell, all the (design) bugs are in the unittests. The browser is actually fine. Tweaked the code a little more. Will resubmit and carefully monitor the buildbots. Original change description follows: When converting between units of time or data types of different precision, we have to be careful to consistently round in the same direction. Timeout checks usually check if Now() is less or equal to a deadline in order to determine if a timeout has occurred. This correctly handles the case where actual sleep times are equal or longer than requested sleep times. But if we round down when setting the sleep delay, this can result in unnecessary and expensive looping. Make sure, we always round up when converting to a format with less precision. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28801

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -17 lines) Patch
M base/time.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M base/time.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M base/timer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 2 3 1 chunk +3 lines, -1 line 0 comments Download
M net/socket/client_socket_pool_base_unittest.cc View 1 2 5 chunks +58 lines, -11 lines 0 comments Download
M net/socket/socket_test_util.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M net/socket/tcp_client_socket_pool_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M webkit/glue/webkitclient_impl.cc View 1 2 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Markus (顧孟勤)
The try bots are inconclusive, but in other than lots of random flakiness which seems ...
11 years, 2 months ago (2009-10-09 23:38:51 UTC) #1
Evan Martin
I don't like the magic sleeps. Why are they needed? http://codereview.chromium.org/257044/diff/4001/4002 File base/time.h (right): http://codereview.chromium.org/257044/diff/4001/4002#newcode74 ...
11 years, 2 months ago (2009-10-10 01:43:50 UTC) #2
Paweł Hajdan Jr.
11 years, 2 months ago (2009-10-10 09:03:21 UTC) #3
+eroman for net tests changes

http://codereview.chromium.org/257044/diff/4001/4009
File chrome/test/automation/automation_proxy_uitest.cc (right):

http://codereview.chromium.org/257044/diff/4001/4009#newcode904
Line 904: // Freezes randomly causing the entire ui test to hang
If you're disabling a test, please file a bug and add the link to the comment.

Powered by Google App Engine
This is Rietveld 408576698