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

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

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/browser/utility_process_mojo_client_browsertest.cc ('k') | content/public/test/test_mojo_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_mojo_app.h
diff --git a/content/public/test/test_mojo_app.h b/content/public/test/test_mojo_app.h
deleted file mode 100644
index 7ee56f120e0ceeb688f1a0e7ceb5d655d8878b97..0000000000000000000000000000000000000000
--- a/content/public/test/test_mojo_app.h
+++ /dev/null
@@ -1,56 +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.
-
-#ifndef CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_
-#define CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "content/public/test/test_mojo_service.mojom.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "services/shell/public/cpp/interface_factory.h"
-#include "services/shell/public/cpp/service.h"
-
-namespace content {
-
-extern const char kTestMojoAppUrl[];
-
-// Simple Mojo app which provides a mojom::TestMojoService impl. The app
-// terminates itself after its TestService fulfills a single DoSomething call.
-class TestMojoApp : public shell::Service,
- public shell::InterfaceFactory<mojom::TestMojoService>,
- public mojom::TestMojoService {
- public:
- TestMojoApp();
- ~TestMojoApp() override;
-
- private:
- // shell::Service:
- bool OnConnect(const shell::Identity& remote_identity,
- shell::InterfaceRegistry* registry) override;
-
- // shell::InterfaceFactory<mojom::TestMojoService>:
- void Create(const shell::Identity& remote_identity,
- mojo::InterfaceRequest<mojom::TestMojoService> request) override;
-
- // TestMojoService:
- void DoSomething(const DoSomethingCallback& callback) override;
- void DoTerminateProcess(const DoTerminateProcessCallback& callback) override;
- void CreateFolder(const CreateFolderCallback& callback) override;
- void GetRequestorName(const GetRequestorNameCallback& callback) override;
- void CreateSharedBuffer(const std::string& message,
- const CreateSharedBufferCallback& callback) override;
-
- mojo::Binding<mojom::TestMojoService> service_binding_;
-
- // The name of the app connecting to us.
- std::string requestor_name_;
-
- DISALLOW_COPY_AND_ASSIGN(TestMojoApp);
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_
« no previous file with comments | « content/browser/utility_process_mojo_client_browsertest.cc ('k') | content/public/test/test_mojo_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698