| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 const WebDeviceOrientationData& data) { | 286 const WebDeviceOrientationData& data) { |
| 287 SetMockDeviceOrientationData(data); | 287 SetMockDeviceOrientationData(data); |
| 288 } | 288 } |
| 289 | 289 |
| 290 void BlinkTestRunner::PrintMessage(const std::string& message) { | 290 void BlinkTestRunner::PrintMessage(const std::string& message) { |
| 291 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); | 291 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); |
| 292 } | 292 } |
| 293 | 293 |
| 294 void BlinkTestRunner::PostTask(blink::WebTaskRunner::Task* task) { | 294 void BlinkTestRunner::PostTask(blink::WebTaskRunner::Task* task) { |
| 295 Platform::current()->currentThread()->getWebTaskRunner()->postTask( | 295 Platform::current()->currentThread()->getWebTaskRunner()->postTask( |
| 296 BLINK_FROM_HERE, task); | 296 WebTraceLocation(__FUNCTION__, __FILE__), task); |
| 297 } | 297 } |
| 298 | 298 |
| 299 void BlinkTestRunner::PostDelayedTask(blink::WebTaskRunner::Task* task, | 299 void BlinkTestRunner::PostDelayedTask(blink::WebTaskRunner::Task* task, |
| 300 long long ms) { | 300 long long ms) { |
| 301 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask( | 301 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask( |
| 302 BLINK_FROM_HERE, task, ms); | 302 WebTraceLocation(__FUNCTION__, __FILE__), task, ms); |
| 303 } | 303 } |
| 304 | 304 |
| 305 WebString BlinkTestRunner::RegisterIsolatedFileSystem( | 305 WebString BlinkTestRunner::RegisterIsolatedFileSystem( |
| 306 const blink::WebVector<blink::WebString>& absolute_filenames) { | 306 const blink::WebVector<blink::WebString>& absolute_filenames) { |
| 307 std::vector<base::FilePath> files; | 307 std::vector<base::FilePath> files; |
| 308 for (size_t i = 0; i < absolute_filenames.size(); ++i) | 308 for (size_t i = 0; i < absolute_filenames.size(); ++i) |
| 309 files.push_back(blink::WebStringToFilePath(absolute_filenames[i])); | 309 files.push_back(blink::WebStringToFilePath(absolute_filenames[i])); |
| 310 std::string filesystem_id; | 310 std::string filesystem_id; |
| 311 Send(new LayoutTestHostMsg_RegisterIsolatedFileSystem( | 311 Send(new LayoutTestHostMsg_RegisterIsolatedFileSystem( |
| 312 routing_id(), files, &filesystem_id)); | 312 routing_id(), files, &filesystem_id)); |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 void BlinkTestRunner::ReportLeakDetectionResult( | 1016 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1017 const LeakDetectionResult& report) { | 1017 const LeakDetectionResult& report) { |
| 1018 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1018 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1019 } | 1019 } |
| 1020 | 1020 |
| 1021 void BlinkTestRunner::OnDestruct() { | 1021 void BlinkTestRunner::OnDestruct() { |
| 1022 delete this; | 1022 delete this; |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 } // namespace content | 1025 } // namespace content |
| OLD | NEW |