Index: mojo/shell/runner/child/native_apptest_target.cc |
diff --git a/mojo/shell/runner/child/native_apptest_target.cc b/mojo/shell/runner/child/native_apptest_target.cc |
deleted file mode 100644 |
index 565ba300a17b9359dbf56e19b809e565be96b583..0000000000000000000000000000000000000000 |
--- a/mojo/shell/runner/child/native_apptest_target.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 <utility> |
- |
-#include "base/at_exit.h" |
-#include "base/command_line.h" |
-#include "base/macros.h" |
-#include "mojo/public/cpp/bindings/binding_set.h" |
-#include "mojo/shell/public/cpp/connection.h" |
-#include "mojo/shell/public/cpp/interface_factory.h" |
-#include "mojo/shell/public/cpp/shell_client.h" |
-#include "mojo/shell/runner/child/test_native_main.h" |
-#include "mojo/shell/runner/child/test_native_service.mojom.h" |
-#include "mojo/shell/runner/init.h" |
- |
-namespace { |
- |
-class TargetApplicationDelegate |
- : public mojo::ShellClient, |
- public mojo::shell::test::TestNativeService, |
- public mojo::InterfaceFactory<mojo::shell::test::TestNativeService> { |
- public: |
- TargetApplicationDelegate() {} |
- ~TargetApplicationDelegate() override {} |
- |
- private: |
- // mojo::ShellClient: |
- bool AcceptConnection(mojo::Connection* connection) override { |
- connection->AddInterface<mojo::shell::test::TestNativeService>(this); |
- return true; |
- } |
- |
- // mojo::shell::test::TestNativeService: |
- void Invert(bool from_driver, const InvertCallback& callback) override { |
- callback.Run(!from_driver); |
- } |
- |
- // mojo::InterfaceFactory<mojo::shell::test::TestNativeService>: |
- void Create(mojo::Connection* connection, |
- mojo::InterfaceRequest<mojo::shell::test::TestNativeService> |
- request) override { |
- bindings_.AddBinding(this, std::move(request)); |
- } |
- |
- mojo::BindingSet<mojo::shell::test::TestNativeService> bindings_; |
- |
- DISALLOW_COPY_AND_ASSIGN(TargetApplicationDelegate); |
-}; |
- |
-} // namespace |
- |
-int main(int argc, char** argv) { |
- base::AtExitManager at_exit; |
- base::CommandLine::Init(argc, argv); |
- |
- mojo::shell::InitializeLogging(); |
- |
- TargetApplicationDelegate delegate; |
- return mojo::shell::TestNativeMain(&delegate); |
-} |