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

Unified Diff: content/public/test/test_mojo_app.cc

Issue 2387263002: Rename MojoShellContext -> ServiceManagerContext. (Closed)
Patch Set: . Created 4 years, 2 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 | « content/public/test/test_mojo_app.h ('k') | content/public/test/test_mojo_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_mojo_app.cc
diff --git a/content/public/test/test_mojo_app.cc b/content/public/test/test_mojo_app.cc
deleted file mode 100644
index 7d46fb13ea87133eec6081b485e03fa7e56ec127..0000000000000000000000000000000000000000
--- a/content/public/test/test_mojo_app.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/public/test/test_mojo_app.h"
-
-#include <utility>
-
-#include "base/logging.h"
-#include "base/message_loop/message_loop.h"
-#include "services/shell/public/cpp/connection.h"
-#include "services/shell/public/cpp/connector.h"
-
-namespace content {
-
-const char kTestMojoAppUrl[] = "system:content_mojo_test";
-
-TestMojoApp::TestMojoApp() : service_binding_(this) {
-}
-
-TestMojoApp::~TestMojoApp() {
-}
-
-bool TestMojoApp::OnConnect(const shell::Identity& remote_identity,
- shell::InterfaceRegistry* registry) {
- requestor_name_ = remote_identity.name();
- registry->AddInterface<mojom::TestMojoService>(this);
- return true;
-}
-
-void TestMojoApp::Create(
- const shell::Identity& remote_identity,
- mojo::InterfaceRequest<mojom::TestMojoService> request) {
- DCHECK(!service_binding_.is_bound());
- service_binding_.Bind(std::move(request));
-}
-
-void TestMojoApp::DoSomething(const DoSomethingCallback& callback) {
- callback.Run();
- base::MessageLoop::current()->QuitWhenIdle();
-}
-
-void TestMojoApp::DoTerminateProcess(
- const DoTerminateProcessCallback& callback) {
- NOTREACHED();
-}
-
-void TestMojoApp::CreateFolder(const CreateFolderCallback& callback) {
- NOTREACHED();
-}
-
-void TestMojoApp::GetRequestorName(const GetRequestorNameCallback& callback) {
- callback.Run(requestor_name_);
-}
-
-void TestMojoApp::CreateSharedBuffer(
- const std::string& message,
- const CreateSharedBufferCallback& callback) {
- NOTREACHED();
-}
-
-} // namespace content
« no previous file with comments | « content/public/test/test_mojo_app.h ('k') | content/public/test/test_mojo_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698