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

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

Issue 1852603002: Replacing most of web_task.h with base::Closure + base::WeakPtrFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-mocks-to-test-runner
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_task.cc ('k') | components/test_runner/web_view_test_client.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"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 WebThemeEngine* WebTestInterfaces::ThemeEngine() { 63 WebThemeEngine* WebTestInterfaces::ThemeEngine() {
64 return interfaces_->GetThemeEngine(); 64 return interfaces_->GetThemeEngine();
65 } 65 }
66 66
67 TestInterfaces* WebTestInterfaces::GetTestInterfaces() { 67 TestInterfaces* WebTestInterfaces::GetTestInterfaces() {
68 return interfaces_.get(); 68 return interfaces_.get();
69 } 69 }
70 70
71 WebMediaStreamCenter* WebTestInterfaces::CreateMediaStreamCenter( 71 WebMediaStreamCenter* WebTestInterfaces::CreateMediaStreamCenter(
72 WebMediaStreamCenterClient* client) { 72 WebMediaStreamCenterClient* client) {
73 return new MockWebMediaStreamCenter(client, interfaces_.get()); 73 return new MockWebMediaStreamCenter();
74 } 74 }
75 75
76 WebRTCPeerConnectionHandler* 76 WebRTCPeerConnectionHandler*
77 WebTestInterfaces::CreateWebRTCPeerConnectionHandler( 77 WebTestInterfaces::CreateWebRTCPeerConnectionHandler(
78 WebRTCPeerConnectionHandlerClient* client) { 78 WebRTCPeerConnectionHandlerClient* client) {
79 return new MockWebRTCPeerConnectionHandler(client, interfaces_.get()); 79 return new MockWebRTCPeerConnectionHandler(client, interfaces_.get());
80 } 80 }
81 81
82 WebMIDIAccessor* WebTestInterfaces::CreateMIDIAccessor( 82 WebMIDIAccessor* WebTestInterfaces::CreateMIDIAccessor(
83 WebMIDIAccessorClient* client) { 83 WebMIDIAccessorClient* client) {
(...skipping 20 matching lines...) Expand all
104 } 104 }
105 105
106 scoped_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient( 106 scoped_ptr<WebViewTestClient> WebTestInterfaces::CreateWebViewTestClient(
107 WebTestProxyBase* web_test_proxy_base) { 107 WebTestProxyBase* web_test_proxy_base) {
108 return make_scoped_ptr(new WebViewTestClient( 108 return make_scoped_ptr(new WebViewTestClient(
109 interfaces_->GetTestRunner(), interfaces_->GetDelegate(), 109 interfaces_->GetTestRunner(), interfaces_->GetDelegate(),
110 interfaces_->GetEventSender(), web_test_proxy_base)); 110 interfaces_->GetEventSender(), web_test_proxy_base));
111 } 111 }
112 112
113 } // namespace test_runner 113 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/web_task.cc ('k') | components/test_runner/web_view_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698