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 CONTENT_TEST_RENDER_VIEW_TEST_H_ | 5 #ifndef CONTENT_TEST_RENDER_VIEW_TEST_H_ |
6 #define CONTENT_TEST_RENDER_VIEW_TEST_H_ | 6 #define CONTENT_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 "content/common/main_function_params.h" | 14 #include "content/common/main_function_params.h" |
15 #include "content/common/sandbox_init_wrapper.h" | |
16 #include "content/public/browser/native_web_keyboard_event.h" | 15 #include "content/public/browser/native_web_keyboard_event.h" |
17 #include "content/renderer/mock_content_renderer_client.h" | 16 #include "content/renderer/mock_content_renderer_client.h" |
18 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 17 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
19 #include "content/test/mock_keyboard.h" | 18 #include "content/test/mock_keyboard.h" |
20 #include "content/test/mock_render_thread.h" | 19 #include "content/test/mock_render_thread.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/WebFrame.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
23 | 22 |
24 class MockRenderProcess; | 23 class MockRenderProcess; |
25 class RendererMainPlatformDelegate; | 24 class RendererMainPlatformDelegate; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 content::RenderView* view_; | 118 content::RenderView* view_; |
120 RendererWebKitPlatformSupportImplNoSandbox webkit_platform_support_; | 119 RendererWebKitPlatformSupportImplNoSandbox webkit_platform_support_; |
121 MockContentRendererClient mock_content_renderer_client_; | 120 MockContentRendererClient mock_content_renderer_client_; |
122 scoped_ptr<MockKeyboard> mock_keyboard_; | 121 scoped_ptr<MockKeyboard> mock_keyboard_; |
123 scoped_ptr<MockRenderThread> render_thread_; | 122 scoped_ptr<MockRenderThread> render_thread_; |
124 | 123 |
125 // Used to setup the process so renderers can run. | 124 // Used to setup the process so renderers can run. |
126 scoped_ptr<RendererMainPlatformDelegate> platform_; | 125 scoped_ptr<RendererMainPlatformDelegate> platform_; |
127 scoped_ptr<MainFunctionParams> params_; | 126 scoped_ptr<MainFunctionParams> params_; |
128 scoped_ptr<CommandLine> command_line_; | 127 scoped_ptr<CommandLine> command_line_; |
129 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; | |
130 }; | 128 }; |
131 | 129 |
132 } // namespace content | 130 } // namespace content |
133 | 131 |
134 #endif // CONTENT_TEST_RENDER_VIEW_TEST_H_ | 132 #endif // CONTENT_TEST_RENDER_VIEW_TEST_H_ |
OLD | NEW |