| Index: services/shell/tests/shutdown/shutdown_service_app.cc
|
| diff --git a/services/shell/tests/shutdown/shutdown_service_app.cc b/services/shell/tests/shutdown/shutdown_service_app.cc
|
| deleted file mode 100644
|
| index 2aa562b205ae7ba128330175374b4de402fd6dcc..0000000000000000000000000000000000000000
|
| --- a/services/shell/tests/shutdown/shutdown_service_app.cc
|
| +++ /dev/null
|
| @@ -1,58 +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.
|
| -
|
| -#include "base/macros.h"
|
| -#include "mojo/public/cpp/bindings/binding_set.h"
|
| -#include "services/shell/public/c/main.h"
|
| -#include "services/shell/public/cpp/interface_factory.h"
|
| -#include "services/shell/public/cpp/interface_registry.h"
|
| -#include "services/shell/public/cpp/service.h"
|
| -#include "services/shell/public/cpp/service_runner.h"
|
| -#include "services/shell/tests/shutdown/shutdown_unittest.mojom.h"
|
| -
|
| -namespace shell {
|
| -namespace {
|
| -
|
| -shell::ServiceRunner* g_app = nullptr;
|
| -
|
| -class ShutdownServiceApp
|
| - : public Service,
|
| - public InterfaceFactory<mojom::ShutdownTestService>,
|
| - public mojom::ShutdownTestService {
|
| - public:
|
| - ShutdownServiceApp() {}
|
| - ~ShutdownServiceApp() override {}
|
| -
|
| - private:
|
| - // shell::Service:
|
| - bool OnConnect(const Identity& remote_identity,
|
| - InterfaceRegistry* registry) override {
|
| - registry->AddInterface<mojom::ShutdownTestService>(this);
|
| - return true;
|
| - }
|
| -
|
| - // InterfaceFactory<mojom::ShutdownTestService>:
|
| - void Create(const Identity& remote_identity,
|
| - mojom::ShutdownTestServiceRequest request) override {
|
| - bindings_.AddBinding(this, std::move(request));
|
| - }
|
| -
|
| - // mojom::ShutdownTestService:
|
| - void SetClient(mojom::ShutdownTestClientPtr client) override {}
|
| - void ShutDown() override { g_app->Quit(); }
|
| -
|
| - mojo::BindingSet<mojom::ShutdownTestService> bindings_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(ShutdownServiceApp);
|
| -};
|
| -
|
| -} // namespace
|
| -} // namespace shell
|
| -
|
| -
|
| -MojoResult ServiceMain(MojoHandle service_request_handle) {
|
| - shell::ServiceRunner runner(new shell::ShutdownServiceApp);
|
| - shell::g_app = &runner;
|
| - return runner.Run(service_request_handle);
|
| -}
|
|
|