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 #ifndef CHROME_TEST_RENDER_VIEW_TEST_H_ | 5 #ifndef CHROME_TEST_RENDER_VIEW_TEST_H_ |
6 #define CHROME_TEST_RENDER_VIEW_TEST_H_ | 6 #define CHROME_TEST_RENDER_VIEW_TEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "chrome/renderer/autofill/autofill_agent.h" | 14 #include "chrome/renderer/autofill/autofill_agent.h" |
15 #include "chrome/renderer/mock_keyboard.h" | 15 #include "chrome/renderer/mock_keyboard.h" |
16 #include "chrome/renderer/mock_render_thread.h" | 16 #include "chrome/renderer/mock_render_thread.h" |
17 #include "chrome/renderer/renderer_main_platform_delegate.h" | |
18 #include "content/common/main_function_params.h" | 17 #include "content/common/main_function_params.h" |
19 #include "content/common/native_web_keyboard_event.h" | 18 #include "content/common/native_web_keyboard_event.h" |
20 #include "content/common/sandbox_init_wrapper.h" | 19 #include "content/common/sandbox_init_wrapper.h" |
21 #include "content/renderer/render_view.h" | 20 #include "content/renderer/render_view.h" |
22 #include "content/renderer/renderer_webkitclient_impl.h" | 21 #include "content/renderer/renderer_webkitclient_impl.h" |
23 #include "chrome/renderer/chrome_content_renderer_client.h" | 22 #include "chrome/renderer/chrome_content_renderer_client.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
26 | 25 |
27 namespace autofill { | 26 namespace autofill { |
28 class AutofillAgent; | 27 class AutofillAgent; |
29 class PasswordAutofillManager; | 28 class PasswordAutofillManager; |
30 } | 29 } |
31 | 30 |
32 class ExtensionDispatcher; | 31 class ExtensionDispatcher; |
33 class MockRenderProcess; | 32 class MockRenderProcess; |
| 33 class RendererMainPlatformDelegate; |
34 | 34 |
35 class RenderViewTest : public testing::Test { | 35 class RenderViewTest : public testing::Test { |
36 public: | 36 public: |
37 // A special WebKitClientImpl class for getting rid off the dependency to the | 37 // A special WebKitClientImpl class for getting rid off the dependency to the |
38 // sandbox, which is not available in RenderViewTest. | 38 // sandbox, which is not available in RenderViewTest. |
39 class RendererWebKitClientImplNoSandbox : public RendererWebKitClientImpl { | 39 class RendererWebKitClientImplNoSandbox : public RendererWebKitClientImpl { |
40 public: | 40 public: |
41 virtual WebKit::WebSandboxSupport* sandboxSupport() { | 41 virtual WebKit::WebSandboxSupport* sandboxSupport() { |
42 return NULL; | 42 return NULL; |
43 } | 43 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 scoped_ptr<RendererMainPlatformDelegate> platform_; | 109 scoped_ptr<RendererMainPlatformDelegate> platform_; |
110 scoped_ptr<MainFunctionParams> params_; | 110 scoped_ptr<MainFunctionParams> params_; |
111 scoped_ptr<CommandLine> command_line_; | 111 scoped_ptr<CommandLine> command_line_; |
112 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; | 112 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; |
113 | 113 |
114 autofill::PasswordAutofillManager* password_autofill_; | 114 autofill::PasswordAutofillManager* password_autofill_; |
115 autofill::AutofillAgent* autofill_agent_; | 115 autofill::AutofillAgent* autofill_agent_; |
116 }; | 116 }; |
117 | 117 |
118 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ | 118 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ |
OLD | NEW |