Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: content/test/layouttest_support.cc

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/output/copy_output_request.h" 15 #include "cc/output/copy_output_request.h"
16 #include "cc/test/pixel_test_output_surface.h" 16 #include "cc/test/pixel_test_output_surface.h"
17 #include "cc/test/test_delegating_output_surface.h" 17 #include "cc/test/test_delegating_output_surface.h"
18 #include "components/scheduler/test/renderer_scheduler_test_support.h"
19 #include "components/test_runner/test_common.h" 18 #include "components/test_runner/test_common.h"
20 #include "components/test_runner/web_frame_test_proxy.h" 19 #include "components/test_runner/web_frame_test_proxy.h"
21 #include "components/test_runner/web_view_test_proxy.h" 20 #include "components/test_runner/web_view_test_proxy.h"
22 #include "content/browser/bluetooth/bluetooth_device_chooser_controller.h" 21 #include "content/browser/bluetooth/bluetooth_device_chooser_controller.h"
23 #include "content/browser/renderer_host/render_process_host_impl.h" 22 #include "content/browser/renderer_host/render_process_host_impl.h"
24 #include "content/browser/renderer_host/render_widget_host_impl.h" 23 #include "content/browser/renderer_host/render_widget_host_impl.h"
25 #include "content/common/gpu/client/context_provider_command_buffer.h" 24 #include "content/common/gpu/client/context_provider_command_buffer.h"
26 #include "content/common/site_isolation_policy.h" 25 #include "content/common/site_isolation_policy.h"
27 #include "content/public/common/page_state.h" 26 #include "content/public/common/page_state.h"
28 #include "content/public/renderer/renderer_gamepad_provider.h" 27 #include "content/public/renderer/renderer_gamepad_provider.h"
29 #include "content/renderer/fetchers/manifest_fetcher.h" 28 #include "content/renderer/fetchers/manifest_fetcher.h"
30 #include "content/renderer/gpu/render_widget_compositor.h" 29 #include "content/renderer/gpu/render_widget_compositor.h"
31 #include "content/renderer/history_entry.h" 30 #include "content/renderer/history_entry.h"
32 #include "content/renderer/history_serialization.h" 31 #include "content/renderer/history_serialization.h"
33 #include "content/renderer/layout_test_dependencies.h" 32 #include "content/renderer/layout_test_dependencies.h"
34 #include "content/renderer/render_frame_impl.h" 33 #include "content/renderer/render_frame_impl.h"
35 #include "content/renderer/render_thread_impl.h" 34 #include "content/renderer/render_thread_impl.h"
36 #include "content/renderer/render_view_impl.h" 35 #include "content/renderer/render_view_impl.h"
37 #include "content/renderer/renderer_blink_platform_impl.h" 36 #include "content/renderer/renderer_blink_platform_impl.h"
38 #include "content/shell/common/shell_switches.h" 37 #include "content/shell/common/shell_switches.h"
39 #include "gpu/ipc/service/image_transport_surface.h" 38 #include "gpu/ipc/service/image_transport_surface.h"
40 #include "third_party/WebKit/public/platform/WebFloatRect.h" 39 #include "third_party/WebKit/public/platform/WebFloatRect.h"
41 #include "third_party/WebKit/public/platform/WebGamepads.h" 40 #include "third_party/WebKit/public/platform/WebGamepads.h"
42 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eMotionData.h" 41 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eMotionData.h"
43 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationData.h" 42 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationData.h"
43 #include "third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_t est_support.h"
44 #include "third_party/WebKit/public/web/WebHistoryItem.h" 44 #include "third_party/WebKit/public/web/WebHistoryItem.h"
45 #include "third_party/WebKit/public/web/WebView.h" 45 #include "third_party/WebKit/public/web/WebView.h"
46 46
47 #if defined(OS_MACOSX) 47 #if defined(OS_MACOSX)
48 #include "content/browser/frame_host/popup_menu_helper_mac.h" 48 #include "content/browser/frame_host/popup_menu_helper_mac.h"
49 #elif defined(OS_WIN) 49 #elif defined(OS_WIN)
50 #include "content/child/font_warmup_win.h" 50 #include "content/child/font_warmup_win.h"
51 #include "third_party/WebKit/public/web/win/WebFontRendering.h" 51 #include "third_party/WebKit/public/web/win/WebFontRendering.h"
52 #include "third_party/skia/include/ports/SkFontMgr.h" 52 #include "third_party/skia/include/ports/SkFontMgr.h"
53 #include "third_party/skia/include/ports/SkTypeface_win.h" 53 #include "third_party/skia/include/ports/SkTypeface_win.h"
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 result.append( 564 result.append(
565 DumpHistoryItem(entry->root_history_node(), 565 DumpHistoryItem(entry->root_history_node(),
566 8, 566 8,
567 index == current_index)); 567 index == current_index));
568 } 568 }
569 result.append("===============================================\n"); 569 result.append("===============================================\n");
570 return result; 570 return result;
571 } 571 }
572 572
573 void SchedulerRunIdleTasks(const base::Closure& callback) { 573 void SchedulerRunIdleTasks(const base::Closure& callback) {
574 scheduler::RendererScheduler* scheduler = 574 blink::scheduler::RendererScheduler* scheduler =
575 content::RenderThreadImpl::current()->GetRendererScheduler(); 575 content::RenderThreadImpl::current()->GetRendererScheduler();
576 scheduler::RunIdleTasksForTesting(scheduler, callback); 576 blink::scheduler::RunIdleTasksForTesting(scheduler, callback);
577 } 577 }
578 578
579 } // namespace content 579 } // namespace content
OLDNEW
« no previous file with comments | « content/test/fake_renderer_scheduler.cc ('k') | content/test/test_blink_web_unit_test_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698