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

Unified Diff: mojo/shell/tests/connect/connect_test_exe.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
Index: mojo/shell/tests/connect/connect_test_exe.cc
diff --git a/mojo/shell/tests/connect/connect_test_exe.cc b/mojo/shell/tests/connect/connect_test_exe.cc
deleted file mode 100644
index 791b9fb7da3a450f473c44f0b1567452937e17e8..0000000000000000000000000000000000000000
--- a/mojo/shell/tests/connect/connect_test_exe.cc
+++ /dev/null
@@ -1,69 +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 "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/connector.h"
-#include "mojo/shell/public/cpp/shell_client.h"
-#include "mojo/shell/runner/child/test_native_main.h"
-#include "mojo/shell/runner/init.h"
-#include "mojo/shell/tests/connect/connect_test.mojom.h"
-
-using mojo::shell::test::mojom::ConnectTestService;
-using mojo::shell::test::mojom::ConnectTestServiceRequest;
-
-namespace {
-
-class Target : public mojo::ShellClient,
- public mojo::InterfaceFactory<ConnectTestService>,
- public ConnectTestService {
- public:
- Target() {}
- ~Target() override {}
-
- private:
- // mojo::ShellClient:
- void Initialize(mojo::Connector* connector, const mojo::Identity& identity,
- uint32_t id) override {
- identity_ = identity;
- }
- bool AcceptConnection(mojo::Connection* connection) override {
- connection->AddInterface<ConnectTestService>(this);
- return true;
- }
-
- // mojo::InterfaceFactory<ConnectTestService>:
- void Create(mojo::Connection* connection,
- ConnectTestServiceRequest request) override {
- bindings_.AddBinding(this, std::move(request));
- }
-
- // ConnectTestService:
- void GetTitle(const GetTitleCallback& callback) override {
- callback.Run("connect_test_exe");
- }
- void GetInstance(const GetInstanceCallback& callback) override {
- callback.Run(identity_.instance());
- }
-
- mojo::Identity identity_;
- mojo::BindingSet<ConnectTestService> bindings_;
-
- DISALLOW_COPY_AND_ASSIGN(Target);
-};
-
-} // namespace
-
-int main(int argc, char** argv) {
- base::AtExitManager at_exit;
- base::CommandLine::Init(argc, argv);
-
- mojo::shell::InitializeLogging();
-
- Target target;
- return mojo::shell::TestNativeMain(&target);
-}
« no previous file with comments | « mojo/shell/tests/connect/connect_test_driver_manifest.json ('k') | mojo/shell/tests/connect/connect_test_exe_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698