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/strings/utf_string_conversions.h" |
19 #include "base/time.h" | 20 #include "base/time.h" |
20 #include "base/utf_string_conversions.h" | |
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 "media/base/media_log.h" | 28 #include "media/base/media_log.h" |
29 #include "net/base/net_errors.h" | 29 #include "net/base/net_errors.h" |
30 #include "net/base/net_util.h" | 30 #include "net/base/net_util.h" |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 ->loadRequest(WebURLRequest(GURL("about:blank"))); | 719 ->loadRequest(WebURLRequest(GURL("about:blank"))); |
720 Send(new ShellViewHostMsg_ResetDone(routing_id())); | 720 Send(new ShellViewHostMsg_ResetDone(routing_id())); |
721 } | 721 } |
722 | 722 |
723 void WebKitTestRunner::OnNotifyDone() { | 723 void WebKitTestRunner::OnNotifyDone() { |
724 render_view()->GetWebView()->mainFrame()->executeScript( | 724 render_view()->GetWebView()->mainFrame()->executeScript( |
725 WebScriptSource(WebString::fromUTF8("testRunner.notifyDone();"))); | 725 WebScriptSource(WebString::fromUTF8("testRunner.notifyDone();"))); |
726 } | 726 } |
727 | 727 |
728 } // namespace content | 728 } // namespace content |
OLD | NEW |