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/html_viewer/layout_test_html_viewer.h" | 5 #include "components/html_viewer/layout_test_html_viewer.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "components/html_viewer/global_state.h" | 9 #include "components/html_viewer/global_state.h" |
10 #include "components/html_viewer/layout_test_content_handler_impl.h" | 10 #include "components/html_viewer/layout_test_content_handler_impl.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 void LayoutTestHTMLViewer::TestFinished() { | 38 void LayoutTestHTMLViewer::TestFinished() { |
39 test_interfaces_->ResetAll(); | 39 test_interfaces_->ResetAll(); |
40 | 40 |
41 web_view::LayoutTestRunnerPtr test_runner_ptr; | 41 web_view::LayoutTestRunnerPtr test_runner_ptr; |
42 app()->ConnectToService("mojo:web_view_test_runner", &test_runner_ptr); | 42 app()->ConnectToService("mojo:web_view_test_runner", &test_runner_ptr); |
43 test_runner_ptr->TestFinished(); | 43 test_runner_ptr->TestFinished(); |
44 } | 44 } |
45 | 45 |
46 void LayoutTestHTMLViewer::Create( | 46 void LayoutTestHTMLViewer::Create( |
47 mojo::ApplicationConnection* connection, | 47 mojo::ApplicationConnection* connection, |
48 mojo::InterfaceRequest<mojo::ContentHandler> request) { | 48 mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler> request) { |
49 new LayoutTestContentHandlerImpl(global_state(), app(), std::move(request), | 49 new LayoutTestContentHandlerImpl(global_state(), app(), std::move(request), |
50 test_interfaces_.get(), &test_delegate_); | 50 test_interfaces_.get(), &test_delegate_); |
51 } | 51 } |
52 | 52 |
53 } // namespace html_viewer | 53 } // namespace html_viewer |
OLD | NEW |