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

Unified Diff: services/shell/tests/shell/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
« no previous file with comments | « services/shell/tests/lifecycle/parent.cc ('k') | services/shell/tests/shell/shell_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/tests/shell/driver.cc
diff --git a/services/shell/tests/shell/driver.cc b/services/shell/tests/shell/driver.cc
index c62d109f2d551991e70505280a10de54bd287834..bb6ac541dbc9072872fe5793b16e57f8fbb46399 100644
--- a/services/shell/tests/shell/driver.cc
+++ b/services/shell/tests/shell/driver.cc
@@ -25,7 +25,7 @@
#include "services/shell/public/cpp/connection.h"
#include "services/shell/public/cpp/connector.h"
#include "services/shell/public/cpp/interface_factory.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/shell/public/interfaces/connector.mojom.h"
#include "services/shell/public/interfaces/shell.mojom.h"
#include "services/shell/runner/child/test_native_main.h"
@@ -36,7 +36,7 @@
namespace {
-class Driver : public shell::ShellClient,
+class Driver : public shell::Service,
public shell::InterfaceFactory<shell::test::mojom::Driver>,
public shell::test::mojom::Driver {
public:
@@ -44,10 +44,10 @@ 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 {
base::FilePath target_path;
CHECK(base::PathService::Get(base::DIR_EXE, &target_path));
#if defined(OS_WIN)
@@ -74,8 +74,8 @@ class Driver : public shell::ShellClient,
&child_command_line, &handle_passing_info);
std::string child_token = mojo::edk::GenerateRandomToken();
- shell::mojom::ShellClientPtr client =
- shell::PassShellClientRequestOnCommandLine(&child_command_line,
+ shell::mojom::ServicePtr client =
+ shell::PassServiceRequestOnCommandLine(&child_command_line,
child_token);
shell::mojom::PIDReceiverPtr receiver;
@@ -102,7 +102,7 @@ class Driver : public shell::ShellClient,
child_token);
}
- bool AcceptConnection(shell::Connection* connection) override {
+ bool OnConnect(shell::Connection* connection) override {
connection->AddInterface<shell::test::mojom::Driver>(this);
return true;
}
« no previous file with comments | « services/shell/tests/lifecycle/parent.cc ('k') | services/shell/tests/shell/shell_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698