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

Side by Side Diff: mojo/shell/application_manager_apptest_driver.cc

Issue 1578473002: Pass application ids via AcceptConnection & ConnectToApplication callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/base_paths.h" 10 #include "base/base_paths.h"
(...skipping 16 matching lines...) Expand all
27 #include "mojo/shell/public/cpp/application_delegate.h" 27 #include "mojo/shell/public/cpp/application_delegate.h"
28 #include "mojo/shell/public/cpp/application_impl.h" 28 #include "mojo/shell/public/cpp/application_impl.h"
29 #include "mojo/shell/public/cpp/interface_factory.h" 29 #include "mojo/shell/public/cpp/interface_factory.h"
30 #include "mojo/shell/public/interfaces/application_manager.mojom.h" 30 #include "mojo/shell/public/interfaces/application_manager.mojom.h"
31 #include "mojo/shell/runner/child/test_native_main.h" 31 #include "mojo/shell/runner/child/test_native_main.h"
32 #include "mojo/shell/runner/init.h" 32 #include "mojo/shell/runner/init.h"
33 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" 33 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
34 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h" 34 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h"
35 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" 35 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h"
36 36
37 using mojo::shell::test::mojom::CreateInstanceForHandleTestPtr;
37 using mojo::shell::test::mojom::Driver; 38 using mojo::shell::test::mojom::Driver;
38 39
39 namespace { 40 namespace {
40 41
41 class TargetApplicationDelegate : public mojo::ApplicationDelegate, 42 class TargetApplicationDelegate : public mojo::ApplicationDelegate,
42 public mojo::InterfaceFactory<Driver>, 43 public mojo::InterfaceFactory<Driver>,
43 public Driver { 44 public Driver {
44 public: 45 public:
45 TargetApplicationDelegate() : app_(nullptr), weak_factory_(this) {} 46 TargetApplicationDelegate() : app_(nullptr), weak_factory_(this) {}
46 ~TargetApplicationDelegate() override {} 47 ~TargetApplicationDelegate() override {}
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 169
169 int main(int argc, char** argv) { 170 int main(int argc, char** argv) {
170 base::AtExitManager at_exit; 171 base::AtExitManager at_exit;
171 base::CommandLine::Init(argc, argv); 172 base::CommandLine::Init(argc, argv);
172 173
173 mojo::shell::InitializeLogging(); 174 mojo::shell::InitializeLogging();
174 175
175 TargetApplicationDelegate delegate; 176 TargetApplicationDelegate delegate;
176 return mojo::shell::TestNativeMain(&delegate); 177 return mojo::shell::TestNativeMain(&delegate);
177 } 178 }
OLDNEW
« no previous file with comments | « mojo/shell/application_manager_apptest.cc ('k') | mojo/shell/application_manager_apptest_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698