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

Issue 9045: The base unittests were succeeding for the isolated... (Closed)

Created:
12 years, 1 month ago by Mike Belshe
Modified:
9 years, 5 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

The base unittests were succeeding for the isolated tests, but failed when all tests were run because some tests run without a message loop. The observer_list_threadsafe allowed AddObserver to run with null message loops. But, if you call Notify after doing so, then the notify call would attempt to use the registered "null" ptr to a message loop. This crashed, of course. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=4459

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M base/observer_list_threadsafe.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Mike Belshe
TBR=jar Fix unittests.
12 years, 1 month ago (2008-11-03 18:15:01 UTC) #1
jar (doing other things)
12 years, 1 month ago (2008-11-03 19:44:24 UTC) #2
LGTM  with a TODO(mbeleshe) to clean up interaction so that contract violations
(not having a message loop) will be identified in chrome (even if the unit tests
can, when they need to, get away without).

Powered by Google App Engine
This is Rietveld 408576698