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

Unified Diff: services/shell/tests/shell/target.cc

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
Index: services/shell/tests/shell/target.cc
diff --git a/services/shell/tests/shell/target.cc b/services/shell/tests/shell/target.cc
deleted file mode 100644
index 0abf65d685cffc9ae913496407b817d257698620..0000000000000000000000000000000000000000
--- a/services/shell/tests/shell/target.cc
+++ /dev/null
@@ -1,45 +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 "services/shell/public/cpp/connection.h"
-#include "services/shell/public/cpp/connector.h"
-#include "services/shell/public/cpp/service.h"
-#include "services/shell/runner/child/test_native_main.h"
-#include "services/shell/runner/init.h"
-#include "services/shell/tests/shell/shell_unittest.mojom.h"
-
-using shell::test::mojom::CreateInstanceTestPtr;
-
-namespace {
-
-class Target : public shell::Service {
- public:
- Target() {}
- ~Target() override {}
-
- private:
- // shell::Service:
- void OnStart(const shell::Identity& identity) override {
- CreateInstanceTestPtr service;
- connector()->ConnectToInterface("service:shell_unittest", &service);
- service->SetTargetIdentity(identity);
- }
-
- DISALLOW_COPY_AND_ASSIGN(Target);
-};
-
-} // namespace
-
-int main(int argc, char** argv) {
- base::AtExitManager at_exit;
- base::CommandLine::Init(argc, argv);
-
- shell::InitializeLogging();
-
- Target target;
- return shell::TestNativeMain(&target);
-}
« no previous file with comments | « services/shell/tests/shell/shell_unittest_manifest.json ('k') | services/shell/tests/shell/target_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698