| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |