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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 287 |
288 void BlinkTestRunner::SetDeviceMotionData(const WebDeviceMotionData& data) { | 288 void BlinkTestRunner::SetDeviceMotionData(const WebDeviceMotionData& data) { |
289 SetMockDeviceMotionData(data); | 289 SetMockDeviceMotionData(data); |
290 } | 290 } |
291 | 291 |
292 void BlinkTestRunner::SetDeviceOrientationData( | 292 void BlinkTestRunner::SetDeviceOrientationData( |
293 const WebDeviceOrientationData& data) { | 293 const WebDeviceOrientationData& data) { |
294 SetMockDeviceOrientationData(data); | 294 SetMockDeviceOrientationData(data); |
295 } | 295 } |
296 | 296 |
| 297 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) { |
| 298 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message)); |
| 299 } |
| 300 |
297 void BlinkTestRunner::PrintMessage(const std::string& message) { | 301 void BlinkTestRunner::PrintMessage(const std::string& message) { |
298 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); | 302 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); |
299 } | 303 } |
300 | 304 |
301 void BlinkTestRunner::PostTask(const base::Closure& task) { | 305 void BlinkTestRunner::PostTask(const base::Closure& task) { |
302 Platform::current()->currentThread()->getSingleThreadTaskRunner()->PostTask( | 306 Platform::current()->currentThread()->getSingleThreadTaskRunner()->PostTask( |
303 FROM_HERE, task); | 307 FROM_HERE, task); |
304 } | 308 } |
305 | 309 |
306 void BlinkTestRunner::PostDelayedTask(const base::Closure& task, long long ms) { | 310 void BlinkTestRunner::PostDelayedTask(const base::Closure& task, long long ms) { |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1035 void BlinkTestRunner::ReportLeakDetectionResult( | 1039 void BlinkTestRunner::ReportLeakDetectionResult( |
1036 const LeakDetectionResult& report) { | 1040 const LeakDetectionResult& report) { |
1037 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1041 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
1038 } | 1042 } |
1039 | 1043 |
1040 void BlinkTestRunner::OnDestruct() { | 1044 void BlinkTestRunner::OnDestruct() { |
1041 delete this; | 1045 delete this; |
1042 } | 1046 } |
1043 | 1047 |
1044 } // namespace content | 1048 } // namespace content |
OLD | NEW |