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

Side by Side Diff: content/shell/webkit_test_controller.cc

Issue 14767019: [content shell] move code common to several processes to a common dir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
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/shell/webkit_test_controller.h" 5 #include "content/shell/webkit_test_controller.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/process_util.h" 11 #include "base/process_util.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
14 #include "base/stringprintf.h" 14 #include "base/stringprintf.h"
15 #include "content/public/browser/devtools_manager.h" 15 #include "content/public/browser/devtools_manager.h"
16 #include "content/public/browser/gpu_data_manager.h" 16 #include "content/public/browser/gpu_data_manager.h"
17 #include "content/public/browser/navigation_controller.h" 17 #include "content/public/browser/navigation_controller.h"
18 #include "content/public/browser/navigation_entry.h" 18 #include "content/public/browser/navigation_entry.h"
19 #include "content/public/browser/notification_service.h" 19 #include "content/public/browser/notification_service.h"
20 #include "content/public/browser/notification_types.h" 20 #include "content/public/browser/notification_types.h"
21 #include "content/public/browser/render_process_host.h" 21 #include "content/public/browser/render_process_host.h"
22 #include "content/public/browser/render_view_host.h" 22 #include "content/public/browser/render_view_host.h"
23 #include "content/public/browser/render_widget_host_view.h" 23 #include "content/public/browser/render_widget_host_view.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "content/public/browser/web_contents_view.h" 25 #include "content/public/browser/web_contents_view.h"
26 #include "content/shell/common/shell_messages.h"
27 #include "content/shell/common/shell_switches.h"
28 #include "content/shell/common/webkit_test_helpers.h"
26 #include "content/shell/shell.h" 29 #include "content/shell/shell.h"
27 #include "content/shell/shell_browser_context.h" 30 #include "content/shell/shell_browser_context.h"
28 #include "content/shell/shell_content_browser_client.h" 31 #include "content/shell/shell_content_browser_client.h"
29 #include "content/shell/shell_messages.h"
30 #include "content/shell/shell_switches.h"
31 #include "content/shell/webkit_test_helpers.h"
32 #include "webkit/glue/glue_serialize.h" 32 #include "webkit/glue/glue_serialize.h"
33 #include "webkit/support/webkit_support_gfx.h" 33 #include "webkit/support/webkit_support_gfx.h"
34 34
35 namespace content { 35 namespace content {
36 36
37 const int kTestTimeoutMilliseconds = 30 * 1000; 37 const int kTestTimeoutMilliseconds = 30 * 1000;
38 // 0x20000000ms is big enough for the purpose to avoid timeout in debugging. 38 // 0x20000000ms is big enough for the purpose to avoid timeout in debugging.
39 const int kCloseEnoughToInfinity = 0x20000000; 39 const int kCloseEnoughToInfinity = 0x20000000;
40 40
41 const int kTestWindowWidthDip = 800; 41 const int kTestWindowWidthDip = 800;
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 } 611 }
612 base::MessageLoop::current()->RunUntilIdle(); 612 base::MessageLoop::current()->RunUntilIdle();
613 } 613 }
614 614
615 void WebKitTestController::OnResetDone() { 615 void WebKitTestController::OnResetDone() {
616 base::MessageLoop::current()->PostTask(FROM_HERE, 616 base::MessageLoop::current()->PostTask(FROM_HERE,
617 base::MessageLoop::QuitClosure()); 617 base::MessageLoop::QuitClosure());
618 } 618 }
619 619
620 } // namespace content 620 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_web_contents_view_delegate_win.cc ('k') | content/shell/webkit_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698