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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 | 6 |
7 #include "base/shared_memory.h" | 7 #include "base/shared_memory.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
11 #include "content/public/browser/native_web_keyboard_event.h" | 11 #include "content/public/browser/native_web_keyboard_event.h" |
12 #include "content/public/browser/web_ui_controller_factory.h" | 12 #include "content/public/browser/web_ui_controller_factory.h" |
13 #include "content/public/common/bindings_policy.h" | 13 #include "content/public/common/bindings_policy.h" |
14 #include "content/public/common/url_utils.h" | 14 #include "content/public/common/url_utils.h" |
15 #include "content/public/renderer/document_state.h" | 15 #include "content/public/renderer/document_state.h" |
16 #include "content/public/renderer/history_item_serialization.h" | 16 #include "content/public/renderer/history_item_serialization.h" |
17 #include "content/public/renderer/navigation_state.h" | 17 #include "content/public/renderer/navigation_state.h" |
18 #include "content/public/test/render_view_test.h" | 18 #include "content/public/test/render_view_test.h" |
19 #include "content/renderer/render_view_impl.h" | 19 #include "content/renderer/render_view_impl.h" |
20 #include "content/shell/common/shell_content_client.h" | 20 #include "content/shell/common/shell_content_client.h" |
21 #include "content/shell/shell_content_browser_client.h" | 21 #include "content/shell/shell_content_browser_client.h" |
22 #include "content/test/mock_keyboard.h" | 22 #include "content/test/mock_keyboard.h" |
23 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" | 25 #include "third_party/WebKit/public/platform/WebData.h" |
26 #include "third_party/WebKit/Source/Platform/chromium/public/WebHTTPBody.h" | 26 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
27 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 27 #include "third_party/WebKit/public/platform/WebString.h" |
28 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" | 28 #include "third_party/WebKit/public/platform/WebURLError.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h" |
32 #include "ui/base/keycodes/keyboard_codes.h" | 32 #include "ui/base/keycodes/keyboard_codes.h" |
33 #include "ui/base/range/range.h" | 33 #include "ui/base/range/range.h" |
34 #include "ui/gfx/codec/jpeg_codec.h" | 34 #include "ui/gfx/codec/jpeg_codec.h" |
35 #include "webkit/glue/web_io_operators.h" | 35 #include "webkit/glue/web_io_operators.h" |
36 | 36 |
37 #if defined(OS_LINUX) && !defined(USE_AURA) | 37 #if defined(OS_LINUX) && !defined(USE_AURA) |
38 #include "ui/base/gtk/event_synthesis_gtk.h" | 38 #include "ui/base/gtk/event_synthesis_gtk.h" |
(...skipping 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1849 | 1849 |
1850 // Copy the document content to std::wstring and compare with the | 1850 // Copy the document content to std::wstring and compare with the |
1851 // expected result. | 1851 // expected result. |
1852 const int kMaxOutputCharacters = 256; | 1852 const int kMaxOutputCharacters = 256; |
1853 std::wstring output = UTF16ToWideHack( | 1853 std::wstring output = UTF16ToWideHack( |
1854 GetMainFrame()->contentAsText(kMaxOutputCharacters)); | 1854 GetMainFrame()->contentAsText(kMaxOutputCharacters)); |
1855 EXPECT_EQ(output, L"hello \n\nworld"); | 1855 EXPECT_EQ(output, L"hello \n\nworld"); |
1856 } | 1856 } |
1857 | 1857 |
1858 } // namespace content | 1858 } // namespace content |
OLD | NEW |