OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/common/autofill_messages.h" | 11 #include "chrome/common/autofill_messages.h" |
12 #include "chrome/common/content_settings.h" | 12 #include "chrome/common/content_settings.h" |
13 #include "chrome/common/native_web_keyboard_event.h" | |
14 #include "chrome/common/render_messages.h" | 13 #include "chrome/common/render_messages.h" |
15 #include "chrome/common/render_messages_params.h" | 14 #include "chrome/common/render_messages_params.h" |
16 #include "chrome/renderer/autofill/autofill_agent.h" | 15 #include "chrome/renderer/autofill/autofill_agent.h" |
17 #include "chrome/renderer/print_web_view_helper.h" | 16 #include "chrome/renderer/print_web_view_helper.h" |
18 #include "chrome/test/render_view_test.h" | 17 #include "chrome/test/render_view_test.h" |
| 18 #include "content/common/native_web_keyboard_event.h" |
19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
20 #include "printing/image.h" | 20 #include "printing/image.h" |
21 #include "printing/native_metafile.h" | 21 #include "printing/native_metafile.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
28 #include "ui/base/keycodes/keyboard_codes.h" | 28 #include "ui/base/keycodes/keyboard_codes.h" |
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1201 LoadHTML("<html><head><meta http-equiv=\"content-language\" " | 1201 LoadHTML("<html><head><meta http-equiv=\"content-language\" " |
1202 "content=\" fr , es,en \">" | 1202 "content=\" fr , es,en \">" |
1203 "</head><body>A random page with random content.</body></html>"); | 1203 "</head><body>A random page with random content.</body></html>"); |
1204 ProcessPendingMessages(); | 1204 ProcessPendingMessages(); |
1205 message = render_thread_.sink().GetUniqueMessageMatching( | 1205 message = render_thread_.sink().GetUniqueMessageMatching( |
1206 ViewHostMsg_PageContents::ID); | 1206 ViewHostMsg_PageContents::ID); |
1207 ASSERT_NE(static_cast<IPC::Message*>(NULL), message); | 1207 ASSERT_NE(static_cast<IPC::Message*>(NULL), message); |
1208 ViewHostMsg_PageContents::Read(message, ¶ms); | 1208 ViewHostMsg_PageContents::Read(message, ¶ms); |
1209 EXPECT_EQ("fr", params.d); | 1209 EXPECT_EQ("fr", params.d); |
1210 } | 1210 } |
OLD | NEW |