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

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

Issue 2123833002: Remove duplicated function in RenderView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove more 'ForTest' suffixes. Created 4 years, 5 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.h ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) { 702 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) {
703 if (params.mimeType != "application/x-plugin-placeholder-test") 703 if (params.mimeType != "application/x-plugin-placeholder-test")
704 return nullptr; 704 return nullptr;
705 705
706 plugins::PluginPlaceholder* placeholder = 706 plugins::PluginPlaceholder* placeholder =
707 new plugins::PluginPlaceholder(render_view()->GetMainRenderFrame(), frame, 707 new plugins::PluginPlaceholder(render_view()->GetMainRenderFrame(), frame,
708 params, "<div>Test content</div>"); 708 params, "<div>Test content</div>");
709 return placeholder->plugin(); 709 return placeholder->plugin();
710 } 710 }
711 711
712 float BlinkTestRunner::GetDeviceScaleFactorForTest() const { 712 float BlinkTestRunner::GetDeviceScaleFactor() const {
713 return render_view()->GetDeviceScaleFactorForTest(); 713 return render_view()->GetDeviceScaleFactor();
714 } 714 }
715 715
716 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) { 716 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) {
717 SchedulerRunIdleTasks(callback); 717 SchedulerRunIdleTasks(callback);
718 } 718 }
719 719
720 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack( 720 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack(
721 blink::WebMediaStream* stream) { 721 blink::WebMediaStream* stream) {
722 DCHECK(stream); 722 DCHECK(stream);
723 #if defined(ENABLE_WEBRTC) 723 #if defined(ENABLE_WEBRTC)
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 void BlinkTestRunner::ReportLeakDetectionResult( 1013 void BlinkTestRunner::ReportLeakDetectionResult(
1014 const LeakDetectionResult& report) { 1014 const LeakDetectionResult& report) {
1015 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1015 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1016 } 1016 }
1017 1017
1018 void BlinkTestRunner::OnDestruct() { 1018 void BlinkTestRunner::OnDestruct() {
1019 delete this; 1019 delete this;
1020 } 1020 }
1021 1021
1022 } // namespace content 1022 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698