| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "cc/test/pixel_test_delegating_output_surface.h" | 15 #include "cc/test/pixel_test_delegating_output_surface.h" |
| 16 #include "components/scheduler/test/renderer_scheduler_test_support.h" | |
| 17 #include "components/test_runner/test_common.h" | 16 #include "components/test_runner/test_common.h" |
| 18 #include "components/test_runner/web_frame_test_proxy.h" | 17 #include "components/test_runner/web_frame_test_proxy.h" |
| 19 #include "components/test_runner/web_test_proxy.h" | 18 #include "components/test_runner/web_test_proxy.h" |
| 20 #include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h" | 19 #include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h" |
| 21 #include "content/browser/renderer_host/render_process_host_impl.h" | 20 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 22 #include "content/browser/renderer_host/render_widget_host_impl.h" | 21 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 23 #include "content/common/gpu/client/context_provider_command_buffer.h" | 22 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 24 #include "content/common/site_isolation_policy.h" | 23 #include "content/common/site_isolation_policy.h" |
| 25 #include "content/public/common/page_state.h" | 24 #include "content/public/common/page_state.h" |
| 26 #include "content/public/renderer/renderer_gamepad_provider.h" | 25 #include "content/public/renderer/renderer_gamepad_provider.h" |
| 27 #include "content/renderer/fetchers/manifest_fetcher.h" | 26 #include "content/renderer/fetchers/manifest_fetcher.h" |
| 28 #include "content/renderer/gpu/render_widget_compositor.h" | 27 #include "content/renderer/gpu/render_widget_compositor.h" |
| 29 #include "content/renderer/history_entry.h" | 28 #include "content/renderer/history_entry.h" |
| 30 #include "content/renderer/history_serialization.h" | 29 #include "content/renderer/history_serialization.h" |
| 31 #include "content/renderer/layout_test_dependencies.h" | 30 #include "content/renderer/layout_test_dependencies.h" |
| 32 #include "content/renderer/render_frame_impl.h" | 31 #include "content/renderer/render_frame_impl.h" |
| 33 #include "content/renderer/render_thread_impl.h" | 32 #include "content/renderer/render_thread_impl.h" |
| 34 #include "content/renderer/render_view_impl.h" | 33 #include "content/renderer/render_view_impl.h" |
| 35 #include "content/renderer/renderer_blink_platform_impl.h" | 34 #include "content/renderer/renderer_blink_platform_impl.h" |
| 36 #include "content/shell/common/shell_switches.h" | 35 #include "content/shell/common/shell_switches.h" |
| 37 #include "device/bluetooth/bluetooth_adapter.h" | 36 #include "device/bluetooth/bluetooth_adapter.h" |
| 38 #include "gpu/ipc/service/image_transport_surface.h" | 37 #include "gpu/ipc/service/image_transport_surface.h" |
| 39 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 38 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
| 40 #include "third_party/WebKit/public/platform/WebGamepads.h" | 39 #include "third_party/WebKit/public/platform/WebGamepads.h" |
| 41 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionData.h" | 40 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionData.h" |
| 42 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationData.h" | 41 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationData.h" |
| 42 #include "third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_t
est_support.h" |
| 43 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 43 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
| 44 #include "third_party/WebKit/public/web/WebView.h" | 44 #include "third_party/WebKit/public/web/WebView.h" |
| 45 | 45 |
| 46 #if defined(OS_MACOSX) | 46 #if defined(OS_MACOSX) |
| 47 #include "content/browser/frame_host/popup_menu_helper_mac.h" | 47 #include "content/browser/frame_host/popup_menu_helper_mac.h" |
| 48 #elif defined(OS_WIN) | 48 #elif defined(OS_WIN) |
| 49 #include "content/child/font_warmup_win.h" | 49 #include "content/child/font_warmup_win.h" |
| 50 #include "third_party/WebKit/public/web/win/WebFontRendering.h" | 50 #include "third_party/WebKit/public/web/win/WebFontRendering.h" |
| 51 #include "third_party/skia/include/ports/SkFontMgr.h" | 51 #include "third_party/skia/include/ports/SkFontMgr.h" |
| 52 #include "third_party/skia/include/ports/SkTypeface_win.h" | 52 #include "third_party/skia/include/ports/SkTypeface_win.h" |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 result.append( | 487 result.append( |
| 488 DumpHistoryItem(entry->root_history_node(), | 488 DumpHistoryItem(entry->root_history_node(), |
| 489 8, | 489 8, |
| 490 index == current_index)); | 490 index == current_index)); |
| 491 } | 491 } |
| 492 result.append("===============================================\n"); | 492 result.append("===============================================\n"); |
| 493 return result; | 493 return result; |
| 494 } | 494 } |
| 495 | 495 |
| 496 void SchedulerRunIdleTasks(const base::Closure& callback) { | 496 void SchedulerRunIdleTasks(const base::Closure& callback) { |
| 497 scheduler::RendererScheduler* scheduler = | 497 blink::scheduler::RendererScheduler* scheduler = |
| 498 content::RenderThreadImpl::current()->GetRendererScheduler(); | 498 content::RenderThreadImpl::current()->GetRendererScheduler(); |
| 499 scheduler::RunIdleTasksForTesting(scheduler, callback); | 499 blink::scheduler::RunIdleTasksForTesting(scheduler, callback); |
| 500 } | 500 } |
| 501 | 501 |
| 502 } // namespace content | 502 } // namespace content |
| OLD | NEW |