| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 #include "third_party/WebKit/public/web/WebScriptSource.h" | 91 #include "third_party/WebKit/public/web/WebScriptSource.h" |
| 92 #include "third_party/WebKit/public/web/WebTestingSupport.h" | 92 #include "third_party/WebKit/public/web/WebTestingSupport.h" |
| 93 #include "third_party/WebKit/public/web/WebView.h" | 93 #include "third_party/WebKit/public/web/WebView.h" |
| 94 #include "ui/gfx/geometry/rect.h" | 94 #include "ui/gfx/geometry/rect.h" |
| 95 #include "ui/gfx/icc_profile.h" | 95 #include "ui/gfx/icc_profile.h" |
| 96 | 96 |
| 97 using blink::Platform; | 97 using blink::Platform; |
| 98 using blink::WebArrayBufferView; | 98 using blink::WebArrayBufferView; |
| 99 using blink::WebContextMenuData; | 99 using blink::WebContextMenuData; |
| 100 using blink::WebDevToolsAgent; | 100 using blink::WebDevToolsAgent; |
| 101 using blink::WebDeviceMotionData; | 101 using device::MotionData; |
| 102 using blink::WebDeviceOrientationData; | 102 using device::OrientationData; |
| 103 using blink::WebElement; | 103 using blink::WebElement; |
| 104 using blink::WebLocalFrame; | 104 using blink::WebLocalFrame; |
| 105 using blink::WebHistoryItem; | 105 using blink::WebHistoryItem; |
| 106 using blink::WebFrame; | 106 using blink::WebFrame; |
| 107 using blink::WebLocalFrame; | 107 using blink::WebLocalFrame; |
| 108 using blink::WebPoint; | 108 using blink::WebPoint; |
| 109 using blink::WebRect; | 109 using blink::WebRect; |
| 110 using blink::WebScriptSource; | 110 using blink::WebScriptSource; |
| 111 using blink::WebSize; | 111 using blink::WebSize; |
| 112 using blink::WebString; | 112 using blink::WebString; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 test_runner::GamepadController* controller) { | 274 test_runner::GamepadController* controller) { |
| 275 std::unique_ptr<MockGamepadProvider> provider( | 275 std::unique_ptr<MockGamepadProvider> provider( |
| 276 new MockGamepadProvider(controller)); | 276 new MockGamepadProvider(controller)); |
| 277 SetMockGamepadProvider(std::move(provider)); | 277 SetMockGamepadProvider(std::move(provider)); |
| 278 } | 278 } |
| 279 | 279 |
| 280 void BlinkTestRunner::SetDeviceLightData(const double data) { | 280 void BlinkTestRunner::SetDeviceLightData(const double data) { |
| 281 SetMockDeviceLightData(data); | 281 SetMockDeviceLightData(data); |
| 282 } | 282 } |
| 283 | 283 |
| 284 void BlinkTestRunner::SetDeviceMotionData(const WebDeviceMotionData& data) { | 284 void BlinkTestRunner::SetDeviceMotionData(const MotionData& data) { |
| 285 SetMockDeviceMotionData(data); | 285 SetMockDeviceMotionData(data); |
| 286 } | 286 } |
| 287 | 287 |
| 288 void BlinkTestRunner::SetDeviceOrientationData( | 288 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) { |
| 289 const WebDeviceOrientationData& data) { | |
| 290 SetMockDeviceOrientationData(data); | 289 SetMockDeviceOrientationData(data); |
| 291 } | 290 } |
| 292 | 291 |
| 293 void BlinkTestRunner::PrintMessage(const std::string& message) { | 292 void BlinkTestRunner::PrintMessage(const std::string& message) { |
| 294 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); | 293 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); |
| 295 } | 294 } |
| 296 | 295 |
| 297 void BlinkTestRunner::PostTask(const base::Closure& task) { | 296 void BlinkTestRunner::PostTask(const base::Closure& task) { |
| 298 Platform::current() | 297 Platform::current() |
| 299 ->currentThread() | 298 ->currentThread() |
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 void BlinkTestRunner::ReportLeakDetectionResult( | 1025 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1027 const LeakDetectionResult& report) { | 1026 const LeakDetectionResult& report) { |
| 1028 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1027 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1029 } | 1028 } |
| 1030 | 1029 |
| 1031 void BlinkTestRunner::OnDestruct() { | 1030 void BlinkTestRunner::OnDestruct() { |
| 1032 delete this; | 1031 delete this; |
| 1033 } | 1032 } |
| 1034 | 1033 |
| 1035 } // namespace content | 1034 } // namespace content |
| OLD | NEW |