OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/memory/singleton.h" | 6 #include "base/memory/singleton.h" |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/string_split.h" | 8 #include "base/strings/string_split.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/test/test_timeouts.h" | 11 #include "base/test/test_timeouts.h" |
12 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 12 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
13 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" | 13 #include "content/browser/browser_plugin/browser_plugin_host_factory.h" |
14 #include "content/browser/browser_plugin/test_browser_plugin_embedder.h" | 14 #include "content/browser/browser_plugin/test_browser_plugin_embedder.h" |
15 #include "content/browser/browser_plugin/test_browser_plugin_guest.h" | 15 #include "content/browser/browser_plugin/test_browser_plugin_guest.h" |
16 #include "content/browser/browser_plugin/test_browser_plugin_guest_manager.h" | 16 #include "content/browser/browser_plugin/test_browser_plugin_guest_manager.h" |
17 #include "content/browser/child_process_security_policy_impl.h" | 17 #include "content/browser/child_process_security_policy_impl.h" |
18 #include "content/browser/renderer_host/render_view_host_impl.h" | 18 #include "content/browser/renderer_host/render_view_host_impl.h" |
19 #include "content/browser/web_contents/web_contents_impl.h" | 19 #include "content/browser/web_contents/web_contents_impl.h" |
20 #include "content/common/view_messages.h" | 20 #include "content/common/view_messages.h" |
21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
22 #include "content/public/browser/notification_types.h" | 22 #include "content/public/browser/notification_types.h" |
23 #include "content/public/browser/render_view_host_observer.h" | 23 #include "content/public/browser/render_view_host_observer.h" |
24 #include "content/public/browser/render_widget_host_view.h" | 24 #include "content/public/browser/render_widget_host_view.h" |
25 #include "content/public/common/content_switches.h" | 25 #include "content/public/common/content_switches.h" |
26 #include "content/public/common/drop_data.h" | 26 #include "content/public/common/drop_data.h" |
27 #include "content/public/test/browser_test_utils.h" | 27 #include "content/public/test/browser_test_utils.h" |
28 #include "content/public/test/test_utils.h" | 28 #include "content/public/test/test_utils.h" |
29 #include "content/shell/shell.h" | 29 #include "content/shell/browser/shell.h" |
30 #include "content/test/content_browser_test.h" | 30 #include "content/test/content_browser_test.h" |
31 #include "content/test/content_browser_test_utils.h" | 31 #include "content/test/content_browser_test_utils.h" |
32 #include "net/base/net_util.h" | 32 #include "net/base/net_util.h" |
33 #include "net/test/embedded_test_server/embedded_test_server.h" | 33 #include "net/test/embedded_test_server/embedded_test_server.h" |
34 #include "net/test/embedded_test_server/http_request.h" | 34 #include "net/test/embedded_test_server/http_request.h" |
35 #include "net/test/embedded_test_server/http_response.h" | 35 #include "net/test/embedded_test_server/http_response.h" |
36 #include "net/test/spawned_test_server/spawned_test_server.h" | 36 #include "net/test/spawned_test_server/spawned_test_server.h" |
37 #include "third_party/WebKit/public/web/WebInputEvent.h" | 37 #include "third_party/WebKit/public/web/WebInputEvent.h" |
38 | 38 |
39 using WebKit::WebInputEvent; | 39 using WebKit::WebInputEvent; |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 // in the guest. | 805 // in the guest. |
806 IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, VerifyInputMethodActive) { | 806 IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, VerifyInputMethodActive) { |
807 const char* kEmbedderURL = "/browser_plugin_embedder.html"; | 807 const char* kEmbedderURL = "/browser_plugin_embedder.html"; |
808 StartBrowserPluginTest(kEmbedderURL, kHTMLForGuest, true, std::string()); | 808 StartBrowserPluginTest(kEmbedderURL, kHTMLForGuest, true, std::string()); |
809 RenderViewHostImpl* rvh = static_cast<RenderViewHostImpl*>( | 809 RenderViewHostImpl* rvh = static_cast<RenderViewHostImpl*>( |
810 test_guest()->web_contents()->GetRenderViewHost()); | 810 test_guest()->web_contents()->GetRenderViewHost()); |
811 EXPECT_TRUE(rvh->input_method_active()); | 811 EXPECT_TRUE(rvh->input_method_active()); |
812 } | 812 } |
813 | 813 |
814 } // namespace content | 814 } // namespace content |
OLD | NEW |