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

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

Issue 2652123002: PlzNavigate: Attempt to fix blink layout tests which fail due to duplicate output from WebFrameClie… (Closed)
Patch Set: Fix redness 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 (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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 } 740 }
741 741
742 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) { 742 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) {
743 SchedulerRunIdleTasks(callback); 743 SchedulerRunIdleTasks(callback);
744 } 744 }
745 745
746 void BlinkTestRunner::ForceTextInputStateUpdate(WebFrame* frame) { 746 void BlinkTestRunner::ForceTextInputStateUpdate(WebFrame* frame) {
747 ForceTextInputStateUpdateForRenderFrame(RenderFrame::FromWebFrame(frame)); 747 ForceTextInputStateUpdateForRenderFrame(RenderFrame::FromWebFrame(frame));
748 } 748 }
749 749
750 bool BlinkTestRunner::IsNavigationInitiatedByRenderer(
751 const WebURLRequest& request) {
752 return content::IsNavigationInitiatedByRenderer(request);
753 }
754
750 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack( 755 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack(
751 blink::WebMediaStream* stream) { 756 blink::WebMediaStream* stream) {
752 DCHECK(stream); 757 DCHECK(stream);
753 #if BUILDFLAG(ENABLE_WEBRTC) 758 #if BUILDFLAG(ENABLE_WEBRTC)
754 return AddVideoTrackToMediaStream(base::MakeUnique<MockVideoCapturerSource>(), 759 return AddVideoTrackToMediaStream(base::MakeUnique<MockVideoCapturerSource>(),
755 false, // is_remote 760 false, // is_remote
756 false, // is_readonly 761 false, // is_readonly
757 stream); 762 stream);
758 #else 763 #else
759 return false; 764 return false;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 void BlinkTestRunner::ReportLeakDetectionResult( 1034 void BlinkTestRunner::ReportLeakDetectionResult(
1030 const LeakDetectionResult& report) { 1035 const LeakDetectionResult& report) {
1031 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1036 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1032 } 1037 }
1033 1038
1034 void BlinkTestRunner::OnDestruct() { 1039 void BlinkTestRunner::OnDestruct() {
1035 delete this; 1040 delete this;
1036 } 1041 }
1037 1042
1038 } // namespace content 1043 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698