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

Unified Diff: services/service_manager/tests/util.h

Issue 2804373002: Eliminate Connector::Connect(), Connection, etc. (Closed)
Patch Set: . Created 3 years, 8 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
Index: services/service_manager/tests/util.h
diff --git a/services/service_manager/tests/util.h b/services/service_manager/tests/util.h
index 6fe6bc30bb66148d45f6ebfc67b87fdffe5b8986..e11c18b75a603060a75226507e1759fa2d2658ff 100644
--- a/services/service_manager/tests/util.h
+++ b/services/service_manager/tests/util.h
@@ -8,22 +8,23 @@
#include <memory>
#include <string>
+#include "services/service_manager/public/interfaces/connector.mojom.h"
+
namespace base {
class Process;
}
namespace service_manager {
-class Connection;
class Connector;
class Identity;
namespace test {
// Starts the process @ |target_exe_name| and connects to it as |target| using
-// |connector|, returning the connection & the process.
+// |connector|, returning a ConnectResult for the StartService() call.
// This blocks until the connection is established/rejected by the service
// manager.
-std::unique_ptr<Connection> LaunchAndConnectToProcess(
+service_manager::mojom::ConnectResult LaunchAndConnectToProcess(
const std::string& target_exe_name,
const Identity& target,
service_manager::Connector* connector,
« no previous file with comments | « services/service_manager/tests/shutdown/shutdown_service_app.cc ('k') | services/service_manager/tests/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698