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

Issue 355024: Addin a time-out to view base tests to prevent them from... (Closed)

Created:
11 years, 1 month ago by jcampan
Modified:
9 years, 7 months ago
Reviewers:
sky, Paweł Hajdan Jr.
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Addin a time-out to view base tests to prevent them from potentially hanging the interactive ui tests. BUG=None TEST=Run the interactive ui tests. R=sky Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30972

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -5 lines) Patch
M chrome/test/interactive_ui/view_event_test_base.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/interactive_ui/view_event_test_base.cc View 1 2 5 chunks +31 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jcampan
11 years, 1 month ago (2009-11-04 17:28:56 UTC) #1
Paweł Hajdan Jr.
Drive-by. It would be nice to have a more general timeout, for all UI tests. ...
11 years, 1 month ago (2009-11-04 17:34:19 UTC) #2
sky
http://codereview.chromium.org/355024/diff/1002/2002 File chrome/test/interactive_ui/view_event_test_base.cc (right): http://codereview.chromium.org/355024/diff/1002/2002#newcode122 Line 122: NewRunnableMethod(this, &ViewEventTestBase::TimedOut), kTimeoutInMS); Shouldn't this timer get canceled ...
11 years, 1 month ago (2009-11-04 17:48:06 UTC) #3
jcampan
http://codereview.chromium.org/355024/diff/1002/2002 File chrome/test/interactive_ui/view_event_test_base.cc (right): http://codereview.chromium.org/355024/diff/1002/2002#newcode122 Line 122: NewRunnableMethod(this, &ViewEventTestBase::TimedOut), kTimeoutInMS); On 2009/11/04 17:48:06, sky wrote: ...
11 years, 1 month ago (2009-11-04 18:06:12 UTC) #4
sky
11 years, 1 month ago (2009-11-04 18:17:15 UTC) #5
On 2009/11/04 18:06:12, jcampan wrote:
> http://codereview.chromium.org/355024/diff/1002/2002
> File chrome/test/interactive_ui/view_event_test_base.cc (right):
> 
> http://codereview.chromium.org/355024/diff/1002/2002#newcode122
> Line 122: NewRunnableMethod(this, &ViewEventTestBase::TimedOut),
kTimeoutInMS);
> On 2009/11/04 17:48:06, sky wrote:
> > Shouldn't this timer get canceled if the test completes?
> 
> I guess when the MessageLoop goes away, the pending time-out task is not
> executed. Anyway, I added a method factory and cancel the task on Done().

I wasn't sure if this is the case. It seems like all view event tests share the
same message loop, which means without the method factory you could end up with
a bunch of pending tasks for deleted objects.

LGTM

  -Scott

Powered by Google App Engine
This is Rietveld 408576698