DescriptionFor unit tests, track additions to AtExitManager and warn.
While trying to bullet proof a unit test, I had trouble getting very far when
running all tests in shuffle mode. Tracked that back to a few other tests doing
stuff that accessed Singleton()s outside of a test-scoped
ShadowingAtExitManager. Seemed to me that should be an invariant around any
unit test, so created this towards that end, hopefully helping stabilize out
unit_tests a bit more.
BUG=133403
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=144488
Reverted in https://chromiumcodereview.appspot.com/10834010/ - it was just causing noise, and really isn't the right answer. The right answer is to debug and finish up http://codereview.chromium.org/10735063/
Patch Set 1 #
Total comments: 2
Patch Set 2 : Use a TestEventListener instead. #Patch Set 3 : Cause an error; for trybot run. Ignore. #
Total comments: 4
Patch Set 4 : Clean up, still an intermediate state to see what happens on the try bot. #Patch Set 5 : Back off to a warning. #
Total comments: 10
Patch Set 6 : Clean up API, messaging, switches #Patch Set 7 : Fix compile #
Total comments: 8
Patch Set 8 : Additional fixes. #
Total comments: 2
Patch Set 9 : Fix sort order #Patch Set 10 : Fix presubmit warnings; #
Messages
Total messages: 14 (0 generated)
|