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

Unified Diff: mojo/shell/runner/child/native_apptest_target.cc

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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 | « mojo/shell/runner/child/native_apptest.cc ('k') | mojo/shell/runner/child/test_native_main.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
-}
« no previous file with comments | « mojo/shell/runner/child/native_apptest.cc ('k') | mojo/shell/runner/child/test_native_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698