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

Side by Side Diff: content/shell/test_runner/web_test_interfaces.cc

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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 "content/shell/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/mock_web_audio_device.h" 10 #include "content/shell/test_runner/mock_web_audio_device.h"
11 #include "components/test_runner/mock_web_media_stream_center.h" 11 #include "content/shell/test_runner/mock_web_media_stream_center.h"
12 #include "components/test_runner/mock_web_midi_accessor.h" 12 #include "content/shell/test_runner/mock_web_midi_accessor.h"
13 #include "components/test_runner/mock_webrtc_peer_connection_handler.h" 13 #include "content/shell/test_runner/mock_webrtc_peer_connection_handler.h"
14 #include "components/test_runner/test_interfaces.h" 14 #include "content/shell/test_runner/test_interfaces.h"
15 #include "components/test_runner/test_runner.h" 15 #include "content/shell/test_runner/test_runner.h"
16 #include "components/test_runner/web_frame_test_client.h" 16 #include "content/shell/test_runner/web_frame_test_client.h"
17 #include "components/test_runner/web_view_test_client.h" 17 #include "content/shell/test_runner/web_view_test_client.h"
18 #include "components/test_runner/web_view_test_proxy.h" 18 #include "content/shell/test_runner/web_view_test_proxy.h"
19 #include "components/test_runner/web_widget_test_client.h" 19 #include "content/shell/test_runner/web_widget_test_client.h"
20 #include "components/test_runner/web_widget_test_proxy.h" 20 #include "content/shell/test_runner/web_widget_test_proxy.h"
21 21
22 using namespace blink; 22 using namespace blink;
23 23
24 namespace test_runner { 24 namespace test_runner {
25 25
26 WebTestInterfaces::WebTestInterfaces() : interfaces_(new TestInterfaces()) { 26 WebTestInterfaces::WebTestInterfaces() : interfaces_(new TestInterfaces()) {}
27 }
28 27
29 WebTestInterfaces::~WebTestInterfaces() { 28 WebTestInterfaces::~WebTestInterfaces() {}
30 }
31 29
32 void WebTestInterfaces::SetMainView(WebView* web_view) { 30 void WebTestInterfaces::SetMainView(WebView* web_view) {
33 interfaces_->SetMainView(web_view); 31 interfaces_->SetMainView(web_view);
34 } 32 }
35 33
36 void WebTestInterfaces::SetDelegate(WebTestDelegate* delegate) { 34 void WebTestInterfaces::SetDelegate(WebTestDelegate* delegate) {
37 interfaces_->SetDelegate(delegate); 35 interfaces_->SetDelegate(delegate);
38 } 36 }
39 37
40 void WebTestInterfaces::ResetAll() { 38 void WebTestInterfaces::ResetAll() {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 103 }
106 104
107 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() { 105 std::vector<blink::WebView*> WebTestInterfaces::GetWindowList() {
108 std::vector<blink::WebView*> result; 106 std::vector<blink::WebView*> result;
109 for (WebViewTestProxyBase* proxy : interfaces_->GetWindowList()) 107 for (WebViewTestProxyBase* proxy : interfaces_->GetWindowList())
110 result.push_back(proxy->web_view()); 108 result.push_back(proxy->web_view());
111 return result; 109 return result;
112 } 110 }
113 111
114 } // namespace test_runner 112 } // namespace test_runner
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698