OLD | NEW |
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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/process/process_handle.h" | 13 #include "base/process/process_handle.h" |
14 #include "mojo/application/public/cpp/application_impl.h" | |
15 #include "mojo/application/public/cpp/application_test_base.h" | |
16 #include "mojo/application/public/cpp/interface_factory.h" | |
17 #include "mojo/application/public/interfaces/application_manager.mojom.h" | |
18 #include "mojo/converters/network/network_type_converters.h" | 14 #include "mojo/converters/network/network_type_converters.h" |
19 #include "mojo/shell/application_manager_apptests.mojom.h" | 15 #include "mojo/shell/application_manager_apptests.mojom.h" |
| 16 #include "mojo/shell/public/cpp/application_impl.h" |
| 17 #include "mojo/shell/public/cpp/application_test_base.h" |
| 18 #include "mojo/shell/public/cpp/interface_factory.h" |
| 19 #include "mojo/shell/public/interfaces/application_manager.mojom.h" |
20 | 20 |
21 using mojo::shell::test::mojom::CreateInstanceForHandleTest; | 21 using mojo::shell::test::mojom::CreateInstanceForHandleTest; |
22 | 22 |
23 namespace mojo { | 23 namespace mojo { |
24 namespace shell { | 24 namespace shell { |
25 namespace { | 25 namespace { |
26 | 26 |
27 class ApplicationManagerAppTestDelegate | 27 class ApplicationManagerAppTestDelegate |
28 : public ApplicationDelegate, | 28 : public ApplicationDelegate, |
29 public InterfaceFactory<CreateInstanceForHandleTest>, | 29 public InterfaceFactory<CreateInstanceForHandleTest>, |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 driver.set_connection_error_handler( | 180 driver.set_connection_error_handler( |
181 base::Bind(&ApplicationManagerAppTest::OnDriverQuit, | 181 base::Bind(&ApplicationManagerAppTest::OnDriverQuit, |
182 base::Unretained(this))); | 182 base::Unretained(this))); |
183 driver->QuitDriver(); | 183 driver->QuitDriver(); |
184 base::MessageLoop::current()->Run(); | 184 base::MessageLoop::current()->Run(); |
185 } | 185 } |
186 | 186 |
187 } // namespace shell | 187 } // namespace shell |
188 } // namespace mojo | 188 } // namespace mojo |
OLD | NEW |