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

Unified Diff: services/shell/tests/connect/connect_test_driver.cc

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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/shell/tests/connect/connect_test_driver.cc
diff --git a/services/shell/tests/connect/connect_test_driver.cc b/services/shell/tests/connect/connect_test_driver.cc
index 55329928e070a1ea71566403881bb00f6b155d1b..9c9f4b16c58743f4c15ad9cd3e31e4d85a02e0c3 100644
--- a/services/shell/tests/connect/connect_test_driver.cc
+++ b/services/shell/tests/connect/connect_test_driver.cc
@@ -11,7 +11,7 @@
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/public/cpp/connection.h"
#include "services/shell/public/cpp/connector.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/shell/runner/child/test_native_main.h"
#include "services/shell/runner/init.h"
#include "services/shell/tests/connect/connect_test.mojom.h"
@@ -22,7 +22,7 @@ using shell::test::mojom::ClientProcessTestRequest;
namespace {
-class Driver : public shell::ShellClient,
+class Driver : public shell::Service,
public shell::InterfaceFactory<ClientProcessTest>,
public ClientProcessTest {
public:
@@ -30,17 +30,17 @@ class Driver : public shell::ShellClient,
~Driver() override {}
private:
- // shell::ShellClient:
- void Initialize(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) override {
+ // shell::Service:
+ void OnStart(shell::Connector* connector,
+ const shell::Identity& identity,
+ uint32_t id) override {
connector_ = connector;
}
- bool AcceptConnection(shell::Connection* connection) override {
+ bool OnConnect(shell::Connection* connection) override {
connection->AddInterface<ClientProcessTest>(this);
return true;
}
- bool ShellConnectionLost() override {
+ bool OnStop() override {
// TODO(rockot): http://crbug.com/596621. Should be able to remove this
// override entirely.
_exit(1);
« no previous file with comments | « services/shell/tests/connect/connect_test_class_app.cc ('k') | services/shell/tests/connect/connect_test_exe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698