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 "chrome/test/base/chrome_render_view_test.h" | 5 #include "chrome/test/base/chrome_render_view_test.h" |
6 | 6 |
7 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 7 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
8 #include "chrome/common/extensions/extension.h" | 8 #include "chrome/common/extensions/extension.h" |
9 #include "chrome/common/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
10 #include "chrome/renderer/extensions/chrome_v8_context_set.h" | 10 #include "chrome/renderer/extensions/chrome_v8_context_set.h" |
11 #include "chrome/renderer/extensions/chrome_v8_extension.h" | 11 #include "chrome/renderer/extensions/chrome_v8_extension.h" |
12 #include "chrome/renderer/extensions/dispatcher.h" | 12 #include "chrome/renderer/extensions/dispatcher.h" |
13 #include "chrome/renderer/extensions/event_bindings.h" | 13 #include "chrome/renderer/extensions/event_bindings.h" |
14 #include "chrome/renderer/extensions/extension_custom_bindings.h" | 14 #include "chrome/renderer/extensions/extension_custom_bindings.h" |
15 #include "chrome/renderer/spellchecker/spellcheck.h" | 15 #include "chrome/renderer/spellchecker/spellcheck.h" |
16 #include "components/autofill/content/renderer/autofill_agent.h" | 16 #include "components/autofill/content/renderer/autofill_agent.h" |
17 #include "components/autofill/content/renderer/password_autofill_agent.h" | 17 #include "components/autofill/content/renderer/password_autofill_agent.h" |
18 #include "components/autofill/content/renderer/test_password_autofill_agent.h" | 18 #include "components/autofill/content/renderer/test_password_autofill_agent.h" |
19 #include "content/public/browser/native_web_keyboard_event.h" | 19 #include "content/public/browser/native_web_keyboard_event.h" |
20 #include "content/public/common/renderer_preferences.h" | 20 #include "content/public/common/renderer_preferences.h" |
21 #include "content/public/renderer/render_view.h" | 21 #include "content/public/renderer/render_view.h" |
22 #include "grit/renderer_resources.h" | 22 #include "grit/renderer_resources.h" |
23 #include "third_party/WebKit/public/web/WebFrame.h" | 23 #include "third_party/WebKit/public/web/WebFrame.h" |
24 #include "third_party/WebKit/public/web/WebInputEvent.h" | 24 #include "third_party/WebKit/public/web/WebInputEvent.h" |
25 #include "third_party/WebKit/public/web/WebKit.h" | 25 #include "third_party/WebKit/public/web/WebKit.h" |
26 #include "third_party/WebKit/public/web/WebScriptController.h" | 26 #include "third_party/WebKit/public/web/WebScriptController.h" |
27 #include "third_party/WebKit/public/web/WebScriptSource.h" | 27 #include "third_party/WebKit/public/web/WebScriptSource.h" |
28 #include "third_party/WebKit/public/web/WebView.h" | 28 #include "third_party/WebKit/public/web/WebView.h" |
29 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 29 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
30 #include "webkit/glue/webkit_glue.h" | |
31 | 30 |
32 #if defined(OS_LINUX) && !defined(USE_AURA) | 31 #if defined(OS_LINUX) && !defined(USE_AURA) |
33 #include "ui/base/gtk/event_synthesis_gtk.h" | 32 #include "ui/base/gtk/event_synthesis_gtk.h" |
34 #endif | 33 #endif |
35 | 34 |
36 using extensions::ExtensionCustomBindings; | 35 using extensions::ExtensionCustomBindings; |
37 using blink::WebFrame; | 36 using blink::WebFrame; |
38 using blink::WebInputEvent; | 37 using blink::WebInputEvent; |
39 using blink::WebMouseEvent; | 38 using blink::WebMouseEvent; |
40 using blink::WebScriptController; | 39 using blink::WebScriptController; |
(...skipping 28 matching lines...) Expand all Loading... |
69 password_autofill_ = new autofill::TestPasswordAutofillAgent(view_); | 68 password_autofill_ = new autofill::TestPasswordAutofillAgent(view_); |
70 autofill_agent_ = new AutofillAgent(view_, password_autofill_); | 69 autofill_agent_ = new AutofillAgent(view_, password_autofill_); |
71 } | 70 } |
72 | 71 |
73 void ChromeRenderViewTest::TearDown() { | 72 void ChromeRenderViewTest::TearDown() { |
74 extension_dispatcher_->OnRenderProcessShutdown(); | 73 extension_dispatcher_->OnRenderProcessShutdown(); |
75 extension_dispatcher_ = NULL; | 74 extension_dispatcher_ = NULL; |
76 | 75 |
77 content::RenderViewTest::TearDown(); | 76 content::RenderViewTest::TearDown(); |
78 } | 77 } |
OLD | NEW |