Chromium Code Reviews

Issue 2903012: Output some error text if one of these Wait functions should timeout.... (Closed)

Created:
10 years, 5 months ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
Paweł Hajdan Jr.
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Output some error text if one of these Wait functions should timeout. R=phajdan.jr BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52286

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Stats (+32 lines, -7 lines)
M chrome/test/ui/ui_test.cc View 7 chunks +32 lines, -7 lines 1 comment

Messages

Total messages: 3 (0 generated)
darin (slow to review)
10 years, 5 months ago (2010-07-13 21:57:10 UTC) #1
Paweł Hajdan Jr.
LGTM! http://codereview.chromium.org/2903012/diff/1/2 File chrome/test/ui/ui_test.cc (right): http://codereview.chromium.org/2903012/diff/1/2#newcode635 chrome/test/ui/ui_test.cc:635: ADD_FAILURE() << "Timeout reached in WaitForDownloadShelfVisibilityChange"; You might ...
10 years, 5 months ago (2010-07-14 00:16:58 UTC) #2
darin (slow to review)
10 years, 5 months ago (2010-07-14 06:04:14 UTC) #3
On Tue, Jul 13, 2010 at 5:16 PM, <phajdan.jr@chromium.org> wrote:

> LGTM!
>
>
> http://codereview.chromium.org/2903012/diff/1/2
> File chrome/test/ui/ui_test.cc (right):
>
> http://codereview.chromium.org/2903012/diff/1/2#newcode635
> chrome/test/ui/ui_test.cc:635: ADD_FAILURE() << "Timeout reached in
> WaitForDownloadShelfVisibilityChange";
> You might want to add another log message in the other failure case.
> Like "Browser crashed in WaitFor...". Similar comment applies to other
> places in this file.


I thought about that, but those all have an EXPECT_TRUE line, which
would at least generate some output.  My goal was to make it easy
to determine from test output that a Wait* function timed out.  As is,
a timeout is just a silent failure, which means that we only notice the
after-effects of a timeout :-(

-Darin


>
>
> http://codereview.chromium.org/2903012/show
>

Powered by Google App Engine