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

Unified Diff: services/shell/tests/lifecycle/app_client.h

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase 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 | « services/shell/tests/lifecycle/app.cc ('k') | services/shell/tests/lifecycle/app_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/tests/lifecycle/app_client.h
diff --git a/services/shell/tests/lifecycle/app_client.h b/services/shell/tests/lifecycle/app_client.h
deleted file mode 100644
index 55c6a86e0f95d91c39d14eb76f04b83438a5ff5a..0000000000000000000000000000000000000000
--- a/services/shell/tests/lifecycle/app_client.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2016 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 SERVICES_SHELL_TESTS_LIFECYCLE_APP_CLIENT_H_
-#define SERVICES_SHELL_TESTS_LIFECYCLE_APP_CLIENT_H_
-
-#include <memory>
-
-#include "base/bind.h"
-#include "base/macros.h"
-#include "mojo/public/cpp/bindings/binding_set.h"
-#include "services/shell/public/cpp/interface_factory.h"
-#include "services/shell/public/cpp/service.h"
-#include "services/shell/public/cpp/service_runner.h"
-#include "services/shell/public/interfaces/service.mojom.h"
-#include "services/shell/tests/lifecycle/lifecycle_unittest.mojom.h"
-
-using LifecycleControl = shell::test::mojom::LifecycleControl;
-using LifecycleControlRequest = shell::test::mojom::LifecycleControlRequest;
-
-namespace shell {
-class ServiceContext;
-
-namespace test {
-
-class AppClient : public Service,
- public InterfaceFactory<LifecycleControl>,
- public LifecycleControl {
- public:
- AppClient();
- explicit AppClient(shell::mojom::ServiceRequest request);
- ~AppClient() override;
-
- void set_runner(ServiceRunner* runner) {
- runner_ = runner;
- }
-
- // Service:
- bool OnConnect(const Identity& remote_identity,
- InterfaceRegistry* registry) override;
-
- // InterfaceFactory<LifecycleControl>:
- void Create(const Identity& remote_identity,
- LifecycleControlRequest request) override;
-
- // LifecycleControl:
- void Ping(const PingCallback& callback) override;
- void GracefulQuit() override;
- void Crash() override;
- void CloseShellConnection() override;
-
- private:
- void BindingLost();
-
- ServiceRunner* runner_ = nullptr;
- mojo::BindingSet<LifecycleControl> bindings_;
- std::unique_ptr<ServiceContext> context_;
-
- DISALLOW_COPY_AND_ASSIGN(AppClient);
-};
-
-} // namespace test
-} // namespace shell
-
-#endif // SERVICES_SHELL_TESTS_LIFECYCLE_APP_CLIENT_H_
« no previous file with comments | « services/shell/tests/lifecycle/app.cc ('k') | services/shell/tests/lifecycle/app_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698