OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/render_messages.h" | 13 #include "chrome/common/render_messages.h" |
14 #include "chrome/renderer/print_web_view_helper.h" | 14 #include "chrome/renderer/print_web_view_helper.h" |
15 #include "chrome/test/render_view_test.h" | 15 #include "chrome/test/render_view_test.h" |
16 #include "content/common/native_web_keyboard_event.h" | 16 #include "content/common/native_web_keyboard_event.h" |
17 #include "content/common/view_messages.h" | 17 #include "content/common/view_messages.h" |
18 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
19 #include "printing/image.h" | 19 #include "printing/image.h" |
20 #include "printing/native_metafile.h" | |
21 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
27 #include "ui/base/keycodes/keyboard_codes.h" | 26 #include "ui/base/keycodes/keyboard_codes.h" |
28 #include "ui/gfx/codec/jpeg_codec.h" | 27 #include "ui/gfx/codec/jpeg_codec.h" |
29 #include "webkit/glue/form_data.h" | 28 #include "webkit/glue/form_data.h" |
30 #include "webkit/glue/form_field.h" | 29 #include "webkit/glue/form_field.h" |
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 LoadHTML("<html><head><meta http-equiv=\"content-language\" " | 1230 LoadHTML("<html><head><meta http-equiv=\"content-language\" " |
1232 "content=\" fr , es,en \">" | 1231 "content=\" fr , es,en \">" |
1233 "</head><body>A random page with random content.</body></html>"); | 1232 "</head><body>A random page with random content.</body></html>"); |
1234 ProcessPendingMessages(); | 1233 ProcessPendingMessages(); |
1235 message = render_thread_.sink().GetUniqueMessageMatching( | 1234 message = render_thread_.sink().GetUniqueMessageMatching( |
1236 ViewHostMsg_PageContents::ID); | 1235 ViewHostMsg_PageContents::ID); |
1237 ASSERT_NE(static_cast<IPC::Message*>(NULL), message); | 1236 ASSERT_NE(static_cast<IPC::Message*>(NULL), message); |
1238 ViewHostMsg_PageContents::Read(message, ¶ms); | 1237 ViewHostMsg_PageContents::Read(message, ¶ms); |
1239 EXPECT_EQ("fr", params.d); | 1238 EXPECT_EQ("fr", params.d); |
1240 } | 1239 } |
OLD | NEW |