Have mash_browser_tests recreate BackgroundServiceManager per test
Currently one BackgroundServiceManager is created per batch of browser_tests. This ends up leaving the UI and Ash process running between tests. This is especially problematic for tests with PRE_test where state is expected to not be preserved into the following test. This change delays the initialization of a BackgroundServiceManager until the child test process has connected to the MojoTestState. Subsequent tests will tear down the previous BackgroundServiceManager before creating the new one. This also tears down the UI and Ash processes as desired. TEST=mash_browser_tests BUG=678687 Review-Url: https://codereview.chromium.org/2858103002 Cr-Commit-Position: refs/heads/master@{#473897}
Showing
Please register or sign in to comment