Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: components/test_runner/web_test_interfaces.cc

Issue 2349063002: Using the correct WebTestDelegate from WebFrameTestClient.
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 WebTestInterfaces::CreateAppBannerClient() { 87 WebTestInterfaces::CreateAppBannerClient() {
88 std::unique_ptr<AppBannerClient> client(new AppBannerClient); 88 std::unique_ptr<AppBannerClient> client(new AppBannerClient);
89 interfaces_->SetAppBannerClient(client.get()); 89 interfaces_->SetAppBannerClient(client.get());
90 return std::move(client); 90 return std::move(client);
91 } 91 }
92 92
93 std::unique_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient( 93 std::unique_ptr<WebFrameTestClient> WebTestInterfaces::CreateWebFrameTestClient(
94 WebViewTestProxyBase* web_view_test_proxy_base, 94 WebViewTestProxyBase* web_view_test_proxy_base,
95 WebFrameTestProxyBase* web_frame_test_proxy_base) { 95 WebFrameTestProxyBase* web_frame_test_proxy_base) {
96 return base::MakeUnique<WebFrameTestClient>( 96 return base::MakeUnique<WebFrameTestClient>(
97 interfaces_->GetTestRunner(), interfaces_->GetDelegate(), 97 interfaces_->GetTestRunner(),
98 web_view_test_proxy_base, web_frame_test_proxy_base); 98 web_view_test_proxy_base, web_frame_test_proxy_base);
99 } 99 }
100 100
101 std::unique_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient( 101 std::unique_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient(
102 WebViewTestProxyBase* web_view_test_proxy_base) { 102 WebViewTestProxyBase* web_view_test_proxy_base) {
103 return base::MakeUnique<WebViewTestClient>(interfaces_->GetTestRunner(), 103 return base::MakeUnique<WebViewTestClient>(interfaces_->GetTestRunner(),
104 web_view_test_proxy_base); 104 web_view_test_proxy_base);
105 } 105 }
106 106
107 std::unique_ptr<WebWidgetTestClient> 107 std::unique_ptr<WebWidgetTestClient>
108 WebTestInterfaces::CreateWebWidgetTestClient( 108 WebTestInterfaces::CreateWebWidgetTestClient(
109 WebWidgetTestProxyBase* web_widget_test_proxy_base) { 109 WebWidgetTestProxyBase* web_widget_test_proxy_base) {
110 return base::MakeUnique<WebWidgetTestClient>(interfaces_->GetTestRunner(), 110 return base::MakeUnique<WebWidgetTestClient>(interfaces_->GetTestRunner(),
111 web_widget_test_proxy_base); 111 web_widget_test_proxy_base);
112 } 112 }
113 113
114 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() { 114 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() {
115 std::vector<blink::WebView*> result; 115 std::vector<blink::WebView*> result;
116 for (WebViewTestProxyBase* proxy : interfaces_->GetWindowList()) 116 for (WebViewTestProxyBase* proxy : interfaces_->GetWindowList())
117 result.push_back(proxy->web_view()); 117 result.push_back(proxy->web_view());
118 return result; 118 return result;
119 } 119 }
120 120
121 } // namespace test_runner 121 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/web_frame_test_client.cc ('k') | third_party/WebKit/LayoutTests/FlagExpectations/site-per-process » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698