| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 #include "third_party/WebKit/public/web/WebScriptSource.h" | 92 #include "third_party/WebKit/public/web/WebScriptSource.h" |
| 93 #include "third_party/WebKit/public/web/WebTestingSupport.h" | 93 #include "third_party/WebKit/public/web/WebTestingSupport.h" |
| 94 #include "third_party/WebKit/public/web/WebView.h" | 94 #include "third_party/WebKit/public/web/WebView.h" |
| 95 #include "ui/gfx/geometry/rect.h" | 95 #include "ui/gfx/geometry/rect.h" |
| 96 #include "ui/gfx/icc_profile.h" | 96 #include "ui/gfx/icc_profile.h" |
| 97 | 97 |
| 98 using blink::Platform; | 98 using blink::Platform; |
| 99 using blink::WebArrayBufferView; | 99 using blink::WebArrayBufferView; |
| 100 using blink::WebContextMenuData; | 100 using blink::WebContextMenuData; |
| 101 using blink::WebDevToolsAgent; | 101 using blink::WebDevToolsAgent; |
| 102 using blink::WebDeviceMotionData; | 102 using device::MotionData; |
| 103 using blink::WebDeviceOrientationData; | 103 using device::OrientationData; |
| 104 using blink::WebElement; | 104 using blink::WebElement; |
| 105 using blink::WebLocalFrame; | 105 using blink::WebLocalFrame; |
| 106 using blink::WebHistoryItem; | 106 using blink::WebHistoryItem; |
| 107 using blink::WebFrame; | 107 using blink::WebFrame; |
| 108 using blink::WebLocalFrame; | 108 using blink::WebLocalFrame; |
| 109 using blink::WebPoint; | 109 using blink::WebPoint; |
| 110 using blink::WebRect; | 110 using blink::WebRect; |
| 111 using blink::WebScriptSource; | 111 using blink::WebScriptSource; |
| 112 using blink::WebSize; | 112 using blink::WebSize; |
| 113 using blink::WebString; | 113 using blink::WebString; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 test_runner::GamepadController* controller) { | 278 test_runner::GamepadController* controller) { |
| 279 std::unique_ptr<MockGamepadProvider> provider( | 279 std::unique_ptr<MockGamepadProvider> provider( |
| 280 new MockGamepadProvider(controller)); | 280 new MockGamepadProvider(controller)); |
| 281 SetMockGamepadProvider(std::move(provider)); | 281 SetMockGamepadProvider(std::move(provider)); |
| 282 } | 282 } |
| 283 | 283 |
| 284 void BlinkTestRunner::SetDeviceLightData(const double data) { | 284 void BlinkTestRunner::SetDeviceLightData(const double data) { |
| 285 SetMockDeviceLightData(data); | 285 SetMockDeviceLightData(data); |
| 286 } | 286 } |
| 287 | 287 |
| 288 void BlinkTestRunner::SetDeviceMotionData(const WebDeviceMotionData& data) { | 288 void BlinkTestRunner::SetDeviceMotionData(const MotionData& data) { |
| 289 SetMockDeviceMotionData(data); | 289 SetMockDeviceMotionData(data); |
| 290 } | 290 } |
| 291 | 291 |
| 292 void BlinkTestRunner::SetDeviceOrientationData( | 292 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) { |
| 293 const WebDeviceOrientationData& data) { | |
| 294 SetMockDeviceOrientationData(data); | 293 SetMockDeviceOrientationData(data); |
| 295 } | 294 } |
| 296 | 295 |
| 297 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) { | 296 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) { |
| 298 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message)); | 297 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message)); |
| 299 } | 298 } |
| 300 | 299 |
| 301 void BlinkTestRunner::PrintMessage(const std::string& message) { | 300 void BlinkTestRunner::PrintMessage(const std::string& message) { |
| 302 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); | 301 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); |
| 303 } | 302 } |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 void BlinkTestRunner::ReportLeakDetectionResult( | 1034 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1036 const LeakDetectionResult& report) { | 1035 const LeakDetectionResult& report) { |
| 1037 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1036 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1038 } | 1037 } |
| 1039 | 1038 |
| 1040 void BlinkTestRunner::OnDestruct() { | 1039 void BlinkTestRunner::OnDestruct() { |
| 1041 delete this; | 1040 delete this; |
| 1042 } | 1041 } |
| 1043 | 1042 |
| 1044 } // namespace content | 1043 } // namespace content |
| OLD | NEW |