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

Unified Diff: chrome/test/base/mash_browser_tests_main.cc

Issue 2903533003: One BackgroundServerManager per MojoTestState (Closed)
Patch Set: new failure Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/base/mojo_test_connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/mash_browser_tests_main.cc
diff --git a/chrome/test/base/mash_browser_tests_main.cc b/chrome/test/base/mash_browser_tests_main.cc
index e5e68a0abbee5b951f20074b905287c064264511..dbdeaf1070f5acaed67a59805752bff01e94f96e 100644
--- a/chrome/test/base/mash_browser_tests_main.cc
+++ b/chrome/test/base/mash_browser_tests_main.cc
@@ -109,17 +109,8 @@ class MashTestLauncherDelegate : public ChromeTestLauncherDelegate {
base::MakeUnique<MojoTestConnector>(ReadCatalogManifest(), config_);
mojo_test_connector_->Init();
}
- return mojo_test_connector_->PrepareForTest(
- command_line, test_launch_options,
- base::BindOnce(&MashTestLauncherDelegate::OnTestProcessLaunched,
- base::Unretained(this)));
- }
-
- void OnTestProcessLaunched() {
- // Start default apps after chrome, as they may try to connect to chrome on
- // startup. Attempt to connect once per test in case a previous test crashed
- // mash_session.
- mojo_test_connector_->StartService(mash::session::mojom::kServiceName);
+ return mojo_test_connector_->PrepareForTest(command_line,
+ test_launch_options);
}
void OnDoneRunningTests() override {
« no previous file with comments | « no previous file | chrome/test/base/mojo_test_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698