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 |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/public/renderer/history_item_serialization.h" | 21 #include "content/public/renderer/history_item_serialization.h" |
22 #include "content/public/renderer/render_view.h" | 22 #include "content/public/renderer/render_view.h" |
23 #include "content/public/renderer/render_view_visitor.h" | 23 #include "content/public/renderer/render_view_visitor.h" |
24 #include "content/public/test/layouttest_support.h" | 24 #include "content/public/test/layouttest_support.h" |
25 #include "content/shell/common/shell_messages.h" | 25 #include "content/shell/common/shell_messages.h" |
26 #include "content/shell/common/webkit_test_helpers.h" | 26 #include "content/shell/common/webkit_test_helpers.h" |
27 #include "content/shell/renderer/shell_render_process_observer.h" | 27 #include "content/shell/renderer/shell_render_process_observer.h" |
28 #include "net/base/net_errors.h" | 28 #include "net/base/net_errors.h" |
29 #include "net/base/net_util.h" | 29 #include "net/base/net_util.h" |
30 #include "skia/ext/platform_canvas.h" | 30 #include "skia/ext/platform_canvas.h" |
31 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" | 31 #include "third_party/WebKit/public/platform/Platform.h" |
32 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 32 #include "third_party/WebKit/public/platform/WebCString.h" |
33 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" | 33 #include "third_party/WebKit/public/platform/WebPoint.h" |
34 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 34 #include "third_party/WebKit/public/platform/WebRect.h" |
35 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 35 #include "third_party/WebKit/public/platform/WebSize.h" |
36 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 36 #include "third_party/WebKit/public/platform/WebString.h" |
37 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 37 #include "third_party/WebKit/public/platform/WebURL.h" |
38 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" | 38 #include "third_party/WebKit/public/platform/WebURLError.h" |
39 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 39 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
40 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 40 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebArrayBufferView.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebArrayBufferView.h" |
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientation.
h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientation.
h" |
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 ->loadRequest(WebURLRequest(GURL("about:blank"))); | 710 ->loadRequest(WebURLRequest(GURL("about:blank"))); |
711 Send(new ShellViewHostMsg_ResetDone(routing_id())); | 711 Send(new ShellViewHostMsg_ResetDone(routing_id())); |
712 } | 712 } |
713 | 713 |
714 void WebKitTestRunner::OnNotifyDone() { | 714 void WebKitTestRunner::OnNotifyDone() { |
715 render_view()->GetWebView()->mainFrame()->executeScript( | 715 render_view()->GetWebView()->mainFrame()->executeScript( |
716 WebScriptSource(WebString::fromUTF8("testRunner.notifyDone();"))); | 716 WebScriptSource(WebString::fromUTF8("testRunner.notifyDone();"))); |
717 } | 717 } |
718 | 718 |
719 } // namespace content | 719 } // namespace content |
OLD | NEW |