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 | 38 |
39 void LayoutTestHTMLViewer::TestFinished() { | 39 void LayoutTestHTMLViewer::TestFinished() { |
40 test_interfaces_->ResetAll(); | 40 test_interfaces_->ResetAll(); |
41 | 41 |
42 web_view::LayoutTestRunnerPtr test_runner_ptr; | 42 web_view::LayoutTestRunnerPtr test_runner_ptr; |
43 shell()->ConnectToService("mojo:web_view_test_runner", &test_runner_ptr); | 43 shell()->ConnectToService("mojo:web_view_test_runner", &test_runner_ptr); |
44 test_runner_ptr->TestFinished(); | 44 test_runner_ptr->TestFinished(); |
45 } | 45 } |
46 | 46 |
47 void LayoutTestHTMLViewer::Create( | 47 void LayoutTestHTMLViewer::Create( |
48 mojo::ApplicationConnection* connection, | 48 mojo::Connection* connection, |
49 mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler> request) { | 49 mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler> request) { |
50 new LayoutTestContentHandlerImpl(global_state(), shell(), std::move(request), | 50 new LayoutTestContentHandlerImpl(global_state(), shell(), std::move(request), |
51 test_interfaces_.get(), &test_delegate_); | 51 test_interfaces_.get(), &test_delegate_); |
52 } | 52 } |
53 | 53 |
54 } // namespace html_viewer | 54 } // namespace html_viewer |
OLD | NEW |