DescriptionTemporary workaround to get tests that reference singletons either directly or indirectly to pass.
With the recent Singleton refactoring, these tests started exposing some inherent problems with singletons, namely that one test can reference a state set by a different test, which can cause all sorts of flakiness.
Furthermore, some of these tests could reference the registry which may have some user specific settings that could cause the tests to fail
To work around these issues, I'm adding a few utility classes for tests (registry virtualization) and exposing a method to reset singletons before a test is run.
TEST=Fixes flakiness and a few tests that could fail on the waterfall.
BUG=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68701
Patch Set 1 #
Total comments: 1
Patch Set 2 : '' #
Messages
Total messages: 5 (0 generated)
|