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 "components/web_view/test_runner/test_runner_application_delegate.h" | 5 #include "components/web_view/test_runner/test_runner_application_delegate.h" |
6 | 6 |
7 #include <iostream> | 7 #include <iostream> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
18 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "components/mus/public/cpp/scoped_window_ptr.h" | 20 #include "components/mus/public/cpp/scoped_window_ptr.h" |
21 #include "components/mus/public/cpp/window.h" | 21 #include "components/mus/public/cpp/window.h" |
22 #include "components/mus/public/cpp/window_tree_connection.h" | 22 #include "components/mus/public/cpp/window_tree_connection.h" |
23 #include "components/mus/public/cpp/window_tree_host_factory.h" | 23 #include "components/mus/public/cpp/window_tree_host_factory.h" |
24 #include "components/test_runner/blink_test_platform_support.h" | 24 #include "components/test_runner/blink_test_platform_support.h" |
25 #include "mojo/application/public/cpp/application_connection.h" | |
26 #include "mojo/application/public/cpp/application_impl.h" | |
27 #include "mojo/converters/geometry/geometry_type_converters.h" | 25 #include "mojo/converters/geometry/geometry_type_converters.h" |
28 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 26 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
| 27 #include "mojo/shell/public/cpp/application_connection.h" |
| 28 #include "mojo/shell/public/cpp/application_impl.h" |
29 #include "ui/gfx/geometry/rect.h" | 29 #include "ui/gfx/geometry/rect.h" |
30 #include "ui/gfx/geometry/size.h" | 30 #include "ui/gfx/geometry/size.h" |
31 #include "url/gurl.h" | 31 #include "url/gurl.h" |
32 | 32 |
33 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
34 #include "base/strings/sys_string_conversions.h" | 34 #include "base/strings/sys_string_conversions.h" |
35 #include "base/strings/utf_string_conversions.h" | 35 #include "base/strings/utf_string_conversions.h" |
36 #endif | 36 #endif |
37 | 37 |
38 namespace web_view { | 38 namespace web_view { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 //////////////////////////////////////////////////////////////////////////////// | 156 //////////////////////////////////////////////////////////////////////////////// |
157 // mojo::InterfaceFactory<LayoutTestRunner> implementation: | 157 // mojo::InterfaceFactory<LayoutTestRunner> implementation: |
158 | 158 |
159 void TestRunnerApplicationDelegate::Create( | 159 void TestRunnerApplicationDelegate::Create( |
160 mojo::ApplicationConnection* connection, | 160 mojo::ApplicationConnection* connection, |
161 mojo::InterfaceRequest<web_view::LayoutTestRunner> request) { | 161 mojo::InterfaceRequest<web_view::LayoutTestRunner> request) { |
162 layout_test_runner_.AddBinding(this, std::move(request)); | 162 layout_test_runner_.AddBinding(this, std::move(request)); |
163 } | 163 } |
164 | 164 |
165 } // namespace web_view | 165 } // namespace web_view |
OLD | NEW |