OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test_runner/web_test_interfaces.h" | 5 #include "components/test_runner/web_test_interfaces.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "components/test_runner/app_banner_client.h" | 10 #include "components/test_runner/app_banner_client.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 | 102 |
103 std::unique_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient( | 103 std::unique_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient( |
104 WebViewTestProxyBase* web_view_test_proxy_base) { | 104 WebViewTestProxyBase* web_view_test_proxy_base) { |
105 return base::MakeUnique<WebViewTestClient>(web_view_test_proxy_base); | 105 return base::MakeUnique<WebViewTestClient>(web_view_test_proxy_base); |
106 } | 106 } |
107 | 107 |
108 std::unique_ptr<WebWidgetTestClient> | 108 std::unique_ptr<WebWidgetTestClient> |
109 WebTestInterfaces::CreateWebWidgetTestClient( | 109 WebTestInterfaces::CreateWebWidgetTestClient( |
110 WebWidgetTestProxyBase* web_widget_test_proxy_base) { | 110 WebWidgetTestProxyBase* web_widget_test_proxy_base) { |
111 return base::MakeUnique<WebWidgetTestClient>(interfaces_->GetTestRunner(), | 111 return base::MakeUnique<WebWidgetTestClient>(web_widget_test_proxy_base); |
112 web_widget_test_proxy_base); | |
113 } | 112 } |
114 | 113 |
115 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() { | 114 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() { |
116 std::vector<blink::WebView*> result; | 115 std::vector<blink::WebView*> result; |
117 for (WebViewTestProxyBase* proxy : interfaces_->GetWindowList()) | 116 for (WebViewTestProxyBase* proxy : interfaces_->GetWindowList()) |
118 result.push_back(proxy->web_view()); | 117 result.push_back(proxy->web_view()); |
119 return result; | 118 return result; |
120 } | 119 } |
121 | 120 |
122 } // namespace test_runner | 121 } // namespace test_runner |
OLD | NEW |