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/shell/renderer/webkit_test_runner.h" | 5 #include "content/shell/renderer/webkit_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/debug/debugger.h" | 12 #include "base/debug/debugger.h" |
13 #include "base/md5.h" | 13 #include "base/md5.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
17 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
18 #include "base/strings/sys_string_conversions.h" | 18 #include "base/strings/sys_string_conversions.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
21 #include "content/public/renderer/render_view.h" | 21 #include "content/public/renderer/render_view.h" |
22 #include "content/public/renderer/render_view_visitor.h" | 22 #include "content/public/renderer/render_view_visitor.h" |
23 #include "content/public/test/layouttest_support.h" | 23 #include "content/public/test/layouttest_support.h" |
24 #include "content/shell/common/shell_messages.h" | 24 #include "content/shell/common/shell_messages.h" |
25 #include "content/shell/common/webkit_test_helpers.h" | 25 #include "content/shell/common/webkit_test_helpers.h" |
26 #include "content/shell/renderer/shell_render_process_observer.h" | 26 #include "content/shell/renderer/shell_render_process_observer.h" |
27 #include "net/base/net_errors.h" | 27 #include "net/base/net_errors.h" |
28 #include "net/base/net_util.h" | 28 #include "net/base/net_util.h" |
29 #include "skia/ext/platform_canvas.h" | 29 #include "skia/ext/platform_canvas.h" |
30 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" | 30 #include "third_party/WebKit/public/platform/Platform.h" |
31 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 31 #include "third_party/WebKit/public/platform/WebCString.h" |
32 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" | 32 #include "third_party/WebKit/public/platform/WebPoint.h" |
33 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 33 #include "third_party/WebKit/public/platform/WebRect.h" |
34 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 34 #include "third_party/WebKit/public/platform/WebSize.h" |
35 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 35 #include "third_party/WebKit/public/platform/WebString.h" |
36 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 36 #include "third_party/WebKit/public/platform/WebURL.h" |
37 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" | 37 #include "third_party/WebKit/public/platform/WebURLError.h" |
38 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 38 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
39 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 39 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebArrayBufferView.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebArrayBufferView.h" |
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" |
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientation.
h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientation.
h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 ->loadRequest(WebURLRequest(GURL("about:blank"))); | 698 ->loadRequest(WebURLRequest(GURL("about:blank"))); |
699 Send(new ShellViewHostMsg_ResetDone(routing_id())); | 699 Send(new ShellViewHostMsg_ResetDone(routing_id())); |
700 } | 700 } |
701 | 701 |
702 void WebKitTestRunner::OnNotifyDone() { | 702 void WebKitTestRunner::OnNotifyDone() { |
703 render_view()->GetWebView()->mainFrame()->executeScript( | 703 render_view()->GetWebView()->mainFrame()->executeScript( |
704 WebScriptSource(WebString::fromUTF8("testRunner.notifyDone();"))); | 704 WebScriptSource(WebString::fromUTF8("testRunner.notifyDone();"))); |
705 } | 705 } |
706 | 706 |
707 } // namespace content | 707 } // namespace content |
OLD | NEW |