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/webkit_test_runner.h" | 5 #include "content/shell/renderer/webkit_test_runner.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <clocale> | 8 #include <clocale> |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 using blink::WebScriptSource; | 80 using blink::WebScriptSource; |
81 using blink::WebSize; | 81 using blink::WebSize; |
82 using blink::WebString; | 82 using blink::WebString; |
83 using blink::WebURL; | 83 using blink::WebURL; |
84 using blink::WebURLError; | 84 using blink::WebURLError; |
85 using blink::WebURLRequest; | 85 using blink::WebURLRequest; |
86 using blink::WebScreenOrientationType; | 86 using blink::WebScreenOrientationType; |
87 using blink::WebTestingSupport; | 87 using blink::WebTestingSupport; |
88 using blink::WebVector; | 88 using blink::WebVector; |
89 using blink::WebView; | 89 using blink::WebView; |
90 using WebTestRunner::WebTask; | |
91 using WebTestRunner::WebTestInterfaces; | |
92 | 90 |
93 namespace content { | 91 namespace content { |
94 | 92 |
95 namespace { | 93 namespace { |
96 | 94 |
97 void InvokeTaskHelper(void* context) { | 95 void InvokeTaskHelper(void* context) { |
98 WebTask* task = reinterpret_cast<WebTask*>(context); | 96 WebTask* task = reinterpret_cast<WebTask*>(context); |
99 task->run(); | 97 task->run(); |
100 delete task; | 98 delete task; |
101 } | 99 } |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 | 752 |
755 leak_detector_->TryLeakDetection(main_frame); | 753 leak_detector_->TryLeakDetection(main_frame); |
756 } | 754 } |
757 | 755 |
758 void WebKitTestRunner::ReportLeakDetectionResult( | 756 void WebKitTestRunner::ReportLeakDetectionResult( |
759 const LeakDetectionResult& report) { | 757 const LeakDetectionResult& report) { |
760 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 758 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
761 } | 759 } |
762 | 760 |
763 } // namespace content | 761 } // namespace content |
OLD | NEW |