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

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

Issue 1886103002: Move DumpBackForwardLists out of WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@separate-layout-and-paint-async-then
Patch Set: Rebasing... Created 4 years, 8 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
« no previous file with comments | « components/test_runner/web_test_interfaces.h ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/test_runner/app_banner_client.h" 9 #include "components/test_runner/app_banner_client.h"
10 #include "components/test_runner/event_sender.h" 10 #include "components/test_runner/event_sender.h"
11 #include "components/test_runner/mock_web_audio_device.h" 11 #include "components/test_runner/mock_web_audio_device.h"
12 #include "components/test_runner/mock_web_media_stream_center.h" 12 #include "components/test_runner/mock_web_media_stream_center.h"
13 #include "components/test_runner/mock_web_midi_accessor.h" 13 #include "components/test_runner/mock_web_midi_accessor.h"
14 #include "components/test_runner/mock_webrtc_peer_connection_handler.h" 14 #include "components/test_runner/mock_webrtc_peer_connection_handler.h"
15 #include "components/test_runner/test_interfaces.h" 15 #include "components/test_runner/test_interfaces.h"
16 #include "components/test_runner/test_runner.h" 16 #include "components/test_runner/test_runner.h"
17 #include "components/test_runner/web_frame_test_client.h" 17 #include "components/test_runner/web_frame_test_client.h"
18 #include "components/test_runner/web_test_proxy.h"
18 #include "components/test_runner/web_view_test_client.h" 19 #include "components/test_runner/web_view_test_client.h"
19 20
20 using namespace blink; 21 using namespace blink;
21 22
22 namespace test_runner { 23 namespace test_runner {
23 24
24 WebTestInterfaces::WebTestInterfaces() : interfaces_(new TestInterfaces()) { 25 WebTestInterfaces::WebTestInterfaces() : interfaces_(new TestInterfaces()) {
25 } 26 }
26 27
27 WebTestInterfaces::~WebTestInterfaces() { 28 WebTestInterfaces::~WebTestInterfaces() {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 interfaces_->GetEventSender())); 104 interfaces_->GetEventSender()));
104 } 105 }
105 106
106 scoped_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient( 107 scoped_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient(
107 WebTestProxyBase* web_test_proxy_base) { 108 WebTestProxyBase* web_test_proxy_base) {
108 return make_scoped_ptr(new WebViewTestClient(interfaces_->GetTestRunner(), 109 return make_scoped_ptr(new WebViewTestClient(interfaces_->GetTestRunner(),
109 interfaces_->GetEventSender(), 110 interfaces_->GetEventSender(),
110 web_test_proxy_base)); 111 web_test_proxy_base));
111 } 112 }
112 113
114 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() {
115 std::vector<blink::WebView*> result;
116 for (WebTestProxyBase* proxy : interfaces_->GetWindowList())
117 result.push_back(proxy->web_view());
118 return result;
119 }
120
113 } // namespace test_runner 121 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/web_test_interfaces.h ('k') | components/test_runner/web_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698