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

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

Issue 1814963002: Use process/control messages (instead of RVH messages) for layout tests. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 3 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 void BlinkTestRunner::SetDeviceMotionData(const WebDeviceMotionData& data) { 283 void BlinkTestRunner::SetDeviceMotionData(const WebDeviceMotionData& data) {
284 SetMockDeviceMotionData(data); 284 SetMockDeviceMotionData(data);
285 } 285 }
286 286
287 void BlinkTestRunner::SetDeviceOrientationData( 287 void BlinkTestRunner::SetDeviceOrientationData(
288 const WebDeviceOrientationData& data) { 288 const WebDeviceOrientationData& data) {
289 SetMockDeviceOrientationData(data); 289 SetMockDeviceOrientationData(data);
290 } 290 }
291 291
292 void BlinkTestRunner::PrintMessage(const std::string& message) { 292 void BlinkTestRunner::PrintMessage(const std::string& message) {
293 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); 293 RenderThread::Get()->Send(new LayoutTestHostMsg_PrintMessage(message));
294 } 294 }
295 295
296 void BlinkTestRunner::PostTask(blink::WebTaskRunner::Task* task) { 296 void BlinkTestRunner::PostTask(blink::WebTaskRunner::Task* task) {
297 Platform::current()->currentThread()->getWebTaskRunner()->postTask( 297 Platform::current()->currentThread()->getWebTaskRunner()->postTask(
298 BLINK_FROM_HERE, task); 298 BLINK_FROM_HERE, task);
299 } 299 }
300 300
301 void BlinkTestRunner::PostDelayedTask(blink::WebTaskRunner::Task* task, 301 void BlinkTestRunner::PostDelayedTask(blink::WebTaskRunner::Task* task,
302 long long ms) { 302 long long ms) {
303 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask( 303 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask(
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 void BlinkTestRunner::ReportLeakDetectionResult( 1017 void BlinkTestRunner::ReportLeakDetectionResult(
1018 const LeakDetectionResult& report) { 1018 const LeakDetectionResult& report) {
1019 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1019 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1020 } 1020 }
1021 1021
1022 void BlinkTestRunner::OnDestruct() { 1022 void BlinkTestRunner::OnDestruct() {
1023 delete this; 1023 delete this;
1024 } 1024 }
1025 1025
1026 } // namespace content 1026 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698