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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 6 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/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <clocale> 8 #include <clocale>
9 #include <cmath> 9 #include <cmath>
10 10
11 #include "base/base64.h" 11 #include "base/base64.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/debug/debugger.h" 14 #include "base/debug/debugger.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/md5.h" 16 #include "base/md5.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/message_loop/message_loop.h" 18 #include "base/message_loop/message_loop.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
21 #include "base/strings/sys_string_conversions.h" 21 #include "base/strings/sys_string_conversions.h"
22 #include "base/strings/utf_string_conversions.h" 22 #include "base/strings/utf_string_conversions.h"
23 #include "base/time/time.h" 23 #include "base/time/time.h"
24 #include "components/test_runner/app_banner_client.h"
25 #include "components/test_runner/gamepad_controller.h"
26 #include "components/test_runner/mock_screen_orientation_client.h"
27 #include "components/test_runner/test_interfaces.h"
28 #include "components/test_runner/web_task.h"
29 #include "components/test_runner/web_test_interfaces.h"
30 #include "components/test_runner/web_test_proxy.h"
31 #include "components/test_runner/web_test_runner.h"
24 #include "content/public/common/content_switches.h" 32 #include "content/public/common/content_switches.h"
25 #include "content/public/common/url_constants.h" 33 #include "content/public/common/url_constants.h"
26 #include "content/public/common/web_preferences.h" 34 #include "content/public/common/web_preferences.h"
27 #include "content/public/renderer/render_frame.h" 35 #include "content/public/renderer/render_frame.h"
28 #include "content/public/renderer/render_view.h" 36 #include "content/public/renderer/render_view.h"
29 #include "content/public/renderer/render_view_visitor.h" 37 #include "content/public/renderer/render_view_visitor.h"
30 #include "content/public/renderer/renderer_gamepad_provider.h" 38 #include "content/public/renderer/renderer_gamepad_provider.h"
31 #include "content/public/test/layouttest_support.h" 39 #include "content/public/test/layouttest_support.h"
32 #include "content/shell/common/layout_test/layout_test_messages.h" 40 #include "content/shell/common/layout_test/layout_test_messages.h"
33 #include "content/shell/common/shell_messages.h" 41 #include "content/shell/common/shell_messages.h"
34 #include "content/shell/common/shell_switches.h" 42 #include "content/shell/common/shell_switches.h"
35 #include "content/shell/renderer/layout_test/blink_test_helpers.h" 43 #include "content/shell/renderer/layout_test/blink_test_helpers.h"
36 #include "content/shell/renderer/layout_test/gc_controller.h" 44 #include "content/shell/renderer/layout_test/gc_controller.h"
37 #include "content/shell/renderer/layout_test/layout_test_render_process_observer .h" 45 #include "content/shell/renderer/layout_test/layout_test_render_process_observer .h"
38 #include "content/shell/renderer/layout_test/leak_detector.h" 46 #include "content/shell/renderer/layout_test/leak_detector.h"
39 #include "content/shell/renderer/layout_test/test_plugin_placeholder.h" 47 #include "content/shell/renderer/layout_test/test_plugin_placeholder.h"
40 #include "content/shell/renderer/test_runner/app_banner_client.h"
41 #include "content/shell/renderer/test_runner/gamepad_controller.h"
42 #include "content/shell/renderer/test_runner/mock_screen_orientation_client.h"
43 #include "content/shell/renderer/test_runner/test_interfaces.h"
44 #include "content/shell/renderer/test_runner/web_task.h"
45 #include "content/shell/renderer/test_runner/web_test_interfaces.h"
46 #include "content/shell/renderer/test_runner/web_test_proxy.h"
47 #include "content/shell/renderer/test_runner/web_test_runner.h"
48 #include "net/base/filename_util.h" 48 #include "net/base/filename_util.h"
49 #include "net/base/net_errors.h" 49 #include "net/base/net_errors.h"
50 #include "skia/ext/platform_canvas.h" 50 #include "skia/ext/platform_canvas.h"
51 #include "third_party/WebKit/public/platform/Platform.h" 51 #include "third_party/WebKit/public/platform/Platform.h"
52 #include "third_party/WebKit/public/platform/WebCString.h" 52 #include "third_party/WebKit/public/platform/WebCString.h"
53 #include "third_party/WebKit/public/platform/WebPoint.h" 53 #include "third_party/WebKit/public/platform/WebPoint.h"
54 #include "third_party/WebKit/public/platform/WebRect.h" 54 #include "third_party/WebKit/public/platform/WebRect.h"
55 #include "third_party/WebKit/public/platform/WebSize.h" 55 #include "third_party/WebKit/public/platform/WebSize.h"
56 #include "third_party/WebKit/public/platform/WebString.h" 56 #include "third_party/WebKit/public/platform/WebString.h"
57 #include "third_party/WebKit/public/platform/WebThread.h" 57 #include "third_party/WebKit/public/platform/WebThread.h"
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 883
884 leak_detector_->TryLeakDetection(main_frame); 884 leak_detector_->TryLeakDetection(main_frame);
885 } 885 }
886 886
887 void BlinkTestRunner::ReportLeakDetectionResult( 887 void BlinkTestRunner::ReportLeakDetectionResult(
888 const LeakDetectionResult& report) { 888 const LeakDetectionResult& report) {
889 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 889 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
890 } 890 }
891 891
892 } // namespace content 892 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698