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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/at_exit.h"
6 #include "base/command_line.h"
7 #include "base/macros.h"
8 #include "services/shell/public/cpp/connection.h"
9 #include "services/shell/public/cpp/connector.h"
10 #include "services/shell/public/cpp/service.h"
11 #include "services/shell/runner/child/test_native_main.h"
12 #include "services/shell/runner/init.h"
13 #include "services/shell/tests/shell/shell_unittest.mojom.h"
14
15 using shell::test::mojom::CreateInstanceTestPtr;
16
17 namespace {
18
19 class Target : public shell::Service {
20 public:
21 Target() {}
22 ~Target() override {}
23
24 private:
25 // shell::Service:
26 void OnStart(const shell::Identity& identity) override {
27 CreateInstanceTestPtr service;
28 connector()->ConnectToInterface("service:shell_unittest", &service);
29 service->SetTargetIdentity(identity);
30 }
31
32 DISALLOW_COPY_AND_ASSIGN(Target);
33 };
34
35 } // namespace
36
37 int main(int argc, char** argv) {
38 base::AtExitManager at_exit;
39 base::CommandLine::Init(argc, argv);
40
41 shell::InitializeLogging();
42
43 Target target;
44 return shell::TestNativeMain(&target);
45 }
OLDNEW
« 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