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 11 matching lines...) Expand all Loading... |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
24 #include "content/public/common/url_constants.h" | 24 #include "content/public/common/url_constants.h" |
25 #include "content/public/renderer/history_item_serialization.h" | 25 #include "content/public/renderer/history_item_serialization.h" |
26 #include "content/public/renderer/render_view.h" | 26 #include "content/public/renderer/render_view.h" |
27 #include "content/public/renderer/render_view_visitor.h" | 27 #include "content/public/renderer/render_view_visitor.h" |
28 #include "content/public/test/layouttest_support.h" | 28 #include "content/public/test/layouttest_support.h" |
29 #include "content/shell/common/shell_messages.h" | 29 #include "content/shell/common/shell_messages.h" |
30 #include "content/shell/common/webkit_test_helpers.h" | 30 #include "content/shell/common/webkit_test_helpers.h" |
31 #include "content/shell/renderer/shell_render_process_observer.h" | 31 #include "content/shell/renderer/shell_render_process_observer.h" |
| 32 #include "content/shell/renderer/test_runner/WebTask.h" |
| 33 #include "content/shell/renderer/test_runner/WebTestInterfaces.h" |
| 34 #include "content/shell/renderer/test_runner/WebTestProxy.h" |
| 35 #include "content/shell/renderer/test_runner/WebTestRunner.h" |
32 #include "net/base/net_errors.h" | 36 #include "net/base/net_errors.h" |
33 #include "net/base/net_util.h" | 37 #include "net/base/net_util.h" |
34 #include "skia/ext/platform_canvas.h" | 38 #include "skia/ext/platform_canvas.h" |
35 #include "third_party/WebKit/public/platform/Platform.h" | 39 #include "third_party/WebKit/public/platform/Platform.h" |
36 #include "third_party/WebKit/public/platform/WebCString.h" | 40 #include "third_party/WebKit/public/platform/WebCString.h" |
37 #include "third_party/WebKit/public/platform/WebPoint.h" | 41 #include "third_party/WebKit/public/platform/WebPoint.h" |
38 #include "third_party/WebKit/public/platform/WebRect.h" | 42 #include "third_party/WebKit/public/platform/WebRect.h" |
39 #include "third_party/WebKit/public/platform/WebSize.h" | 43 #include "third_party/WebKit/public/platform/WebSize.h" |
40 #include "third_party/WebKit/public/platform/WebString.h" | 44 #include "third_party/WebKit/public/platform/WebString.h" |
41 #include "third_party/WebKit/public/platform/WebURL.h" | 45 #include "third_party/WebKit/public/platform/WebURL.h" |
42 #include "third_party/WebKit/public/platform/WebURLError.h" | 46 #include "third_party/WebKit/public/platform/WebURLError.h" |
43 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 47 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
44 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 48 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
45 #include "third_party/WebKit/public/testing/WebTask.h" | |
46 #include "third_party/WebKit/public/testing/WebTestInterfaces.h" | |
47 #include "third_party/WebKit/public/testing/WebTestProxy.h" | |
48 #include "third_party/WebKit/public/testing/WebTestRunner.h" | |
49 #include "third_party/WebKit/public/web/WebArrayBufferView.h" | 49 #include "third_party/WebKit/public/web/WebArrayBufferView.h" |
50 #include "third_party/WebKit/public/web/WebContextMenuData.h" | 50 #include "third_party/WebKit/public/web/WebContextMenuData.h" |
51 #include "third_party/WebKit/public/web/WebDataSource.h" | 51 #include "third_party/WebKit/public/web/WebDataSource.h" |
52 #include "third_party/WebKit/public/web/WebDevToolsAgent.h" | 52 #include "third_party/WebKit/public/web/WebDevToolsAgent.h" |
53 #include "third_party/WebKit/public/web/WebDocument.h" | 53 #include "third_party/WebKit/public/web/WebDocument.h" |
54 #include "third_party/WebKit/public/web/WebElement.h" | 54 #include "third_party/WebKit/public/web/WebElement.h" |
55 #include "third_party/WebKit/public/web/WebFrame.h" | 55 #include "third_party/WebKit/public/web/WebFrame.h" |
56 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 56 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
57 #include "third_party/WebKit/public/web/WebKit.h" | 57 #include "third_party/WebKit/public/web/WebKit.h" |
58 #include "third_party/WebKit/public/web/WebScriptSource.h" | 58 #include "third_party/WebKit/public/web/WebScriptSource.h" |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 WebURLRequest(GURL(kAboutBlankURL))); | 694 WebURLRequest(GURL(kAboutBlankURL))); |
695 Send(new ShellViewHostMsg_ResetDone(routing_id())); | 695 Send(new ShellViewHostMsg_ResetDone(routing_id())); |
696 } | 696 } |
697 | 697 |
698 void WebKitTestRunner::OnNotifyDone() { | 698 void WebKitTestRunner::OnNotifyDone() { |
699 render_view()->GetWebView()->mainFrame()->executeScript( | 699 render_view()->GetWebView()->mainFrame()->executeScript( |
700 WebScriptSource(WebString::fromUTF8("testRunner.notifyDone();"))); | 700 WebScriptSource(WebString::fromUTF8("testRunner.notifyDone();"))); |
701 } | 701 } |
702 | 702 |
703 } // namespace content | 703 } // namespace content |
OLD | NEW |