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

Unified Diff: services/shell/background/tests/test_service.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/background/tests/background_shell_unittest.cc ('k') | services/shell/native_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/background/tests/test_service.cc
diff --git a/services/shell/background/tests/test_service.cc b/services/shell/background/tests/test_service.cc
index 97499339d2a046593c11d9e73687ab18ed38599e..16aa42d5ff1f66fad8870173813e566da00438a6 100644
--- a/services/shell/background/tests/test_service.cc
+++ b/services/shell/background/tests/test_service.cc
@@ -7,11 +7,11 @@
#include "services/shell/background/tests/test.mojom.h"
#include "services/shell/public/cpp/application_runner.h"
#include "services/shell/public/cpp/connection.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
namespace shell {
-class TestClient : public ShellClient,
+class TestClient : public Service,
public InterfaceFactory<mojom::TestService>,
public mojom::TestService {
public:
@@ -19,12 +19,12 @@ class TestClient : public ShellClient,
~TestClient() override {}
private:
- // ShellClient:
- bool AcceptConnection(Connection* connection) override {
+ // Service:
+ bool OnConnect(Connection* connection) override {
connection->AddInterface(this);
return true;
}
- bool ShellConnectionLost() override {
+ bool OnStop() override {
return true;
}
« no previous file with comments | « services/shell/background/tests/background_shell_unittest.cc ('k') | services/shell/native_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698