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

Side by Side Diff: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc

Issue 1911153002: Remove no longer needed BlinkTestRunner::proxy_ field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 "content/shell/renderer/layout_test/layout_test_content_renderer_client .h" 5 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client .h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/debugger.h" 9 #include "base/debug/debugger.h"
10 #include "components/test_runner/mock_credential_manager_client.h" 10 #include "components/test_runner/mock_credential_manager_client.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 using blink::WebRTCPeerConnectionHandlerClient; 45 using blink::WebRTCPeerConnectionHandlerClient;
46 using blink::WebThemeEngine; 46 using blink::WebThemeEngine;
47 47
48 namespace content { 48 namespace content {
49 49
50 namespace { 50 namespace {
51 51
52 void WebTestProxyCreated(RenderView* render_view, 52 void WebTestProxyCreated(RenderView* render_view,
53 test_runner::WebTestProxyBase* proxy) { 53 test_runner::WebTestProxyBase* proxy) {
54 BlinkTestRunner* test_runner = new BlinkTestRunner(render_view); 54 BlinkTestRunner* test_runner = new BlinkTestRunner(render_view);
55 test_runner->set_proxy(proxy);
56 proxy->set_delegate(test_runner); 55 proxy->set_delegate(test_runner);
57 56
58 if (!LayoutTestRenderThreadObserver::GetInstance()->test_delegate()) { 57 if (!LayoutTestRenderThreadObserver::GetInstance()->test_delegate()) {
59 LayoutTestRenderThreadObserver::GetInstance()->SetTestDelegate( 58 LayoutTestRenderThreadObserver::GetInstance()->SetTestDelegate(
60 test_runner); 59 test_runner);
61 } 60 }
62 proxy->set_view_test_client(LayoutTestRenderThreadObserver::GetInstance() 61 proxy->set_view_test_client(LayoutTestRenderThreadObserver::GetInstance()
63 ->test_interfaces() 62 ->test_interfaces()
64 ->CreateWebViewTestClient(proxy)); 63 ->CreateWebViewTestClient(proxy));
65 proxy->SetInterfaces( 64 proxy->SetInterfaces(
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 LayoutTestContentRendererClient::CreateMediaStreamRendererFactory() { 185 LayoutTestContentRendererClient::CreateMediaStreamRendererFactory() {
187 #if defined(ENABLE_WEBRTC) 186 #if defined(ENABLE_WEBRTC)
188 return std::unique_ptr<MediaStreamRendererFactory>( 187 return std::unique_ptr<MediaStreamRendererFactory>(
189 new TestMediaStreamRendererFactory()); 188 new TestMediaStreamRendererFactory());
190 #else 189 #else
191 return nullptr; 190 return nullptr;
192 #endif 191 #endif
193 } 192 }
194 193
195 } // namespace content 194 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698