| 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/public/test/layouttest_support.h" | 5 #include "content/public/test/layouttest_support.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "components/test_runner/test_common.h" | 9 #include "components/test_runner/test_common.h" |
| 10 #include "components/test_runner/web_frame_test_proxy.h" | 10 #include "components/test_runner/web_frame_test_proxy.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 false, | 136 false, |
| 137 base::Bind(&FetchManifestDoneCallback, | 137 base::Bind(&FetchManifestDoneCallback, |
| 138 base::Passed(&autodeleter), | 138 base::Passed(&autodeleter), |
| 139 callback)); | 139 callback)); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider) { | 142 void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider) { |
| 143 RenderThreadImpl::current() | 143 RenderThreadImpl::current() |
| 144 ->blink_platform_impl() | 144 ->blink_platform_impl() |
| 145 ->SetPlatformEventObserverForTesting( | 145 ->SetPlatformEventObserverForTesting( |
| 146 blink::WebPlatformEventGamepad, | 146 blink::WebPlatformEventTypeGamepad, |
| 147 provider.Pass()); | 147 provider.Pass()); |
| 148 } | 148 } |
| 149 | 149 |
| 150 void SetMockDeviceLightData(const double data) { | 150 void SetMockDeviceLightData(const double data) { |
| 151 RendererBlinkPlatformImpl::SetMockDeviceLightDataForTesting(data); | 151 RendererBlinkPlatformImpl::SetMockDeviceLightDataForTesting(data); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void SetMockDeviceMotionData(const WebDeviceMotionData& data) { | 154 void SetMockDeviceMotionData(const WebDeviceMotionData& data) { |
| 155 RendererBlinkPlatformImpl::SetMockDeviceMotionDataForTesting(data); | 155 RendererBlinkPlatformImpl::SetMockDeviceMotionDataForTesting(data); |
| 156 } | 156 } |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 result.append( | 451 result.append( |
| 452 DumpHistoryItem(entry->root_history_node(), | 452 DumpHistoryItem(entry->root_history_node(), |
| 453 8, | 453 8, |
| 454 index == current_index)); | 454 index == current_index)); |
| 455 } | 455 } |
| 456 result.append("===============================================\n"); | 456 result.append("===============================================\n"); |
| 457 return result; | 457 return result; |
| 458 } | 458 } |
| 459 | 459 |
| 460 } // namespace content | 460 } // namespace content |
| OLD | NEW |