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 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/test/test_io_thread.h" | 16 #include "base/test/test_io_thread.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "content/public/browser/native_web_keyboard_event.h" | 18 #include "content/public/browser/native_web_keyboard_event.h" |
19 #include "content/public/common/main_function_params.h" | 19 #include "content/public/common/main_function_params.h" |
20 #include "content/public/common/page_state.h" | 20 #include "content/public/common/page_state.h" |
21 #include "content/public/test/mock_render_thread.h" | 21 #include "content/public/test/mock_render_thread.h" |
| 22 #include "mojo/edk/test/scoped_ipc_support.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "third_party/WebKit/public/platform/Platform.h" | 24 #include "third_party/WebKit/public/platform/Platform.h" |
24 #include "third_party/WebKit/public/web/WebFrame.h" | 25 #include "third_party/WebKit/public/web/WebFrame.h" |
25 #include "third_party/WebKit/public/web/WebLeakDetector.h" | 26 #include "third_party/WebKit/public/web/WebLeakDetector.h" |
26 #include "third_party/mojo/src/mojo/edk/test/scoped_ipc_support.h" | |
27 | 27 |
28 namespace blink { | 28 namespace blink { |
29 class WebInputElement; | 29 class WebInputElement; |
30 class WebWidget; | 30 class WebWidget; |
31 } | 31 } |
32 | 32 |
33 namespace gfx { | 33 namespace gfx { |
34 class Rect; | 34 class Rect; |
35 } | 35 } |
36 | 36 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 scoped_ptr<ContentRendererClient> content_renderer_client_; | 199 scoped_ptr<ContentRendererClient> content_renderer_client_; |
200 scoped_ptr<MockRenderThread> render_thread_; | 200 scoped_ptr<MockRenderThread> render_thread_; |
201 | 201 |
202 // Used to setup the process so renderers can run. | 202 // Used to setup the process so renderers can run. |
203 scoped_ptr<RendererMainPlatformDelegate> platform_; | 203 scoped_ptr<RendererMainPlatformDelegate> platform_; |
204 scoped_ptr<MainFunctionParams> params_; | 204 scoped_ptr<MainFunctionParams> params_; |
205 scoped_ptr<base::CommandLine> command_line_; | 205 scoped_ptr<base::CommandLine> command_line_; |
206 | 206 |
207 // For Mojo. | 207 // For Mojo. |
208 scoped_ptr<base::TestIOThread> test_io_thread_; | 208 scoped_ptr<base::TestIOThread> test_io_thread_; |
209 scoped_ptr<mojo::test::ScopedIPCSupport> ipc_support_; | 209 scoped_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support_; |
210 | 210 |
211 #if defined(OS_MACOSX) | 211 #if defined(OS_MACOSX) |
212 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; | 212 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; |
213 #endif | 213 #endif |
214 | 214 |
215 private: | 215 private: |
216 void GoToOffset(int offset, const PageState& state); | 216 void GoToOffset(int offset, const PageState& state); |
217 }; | 217 }; |
218 | 218 |
219 } // namespace content | 219 } // namespace content |
220 | 220 |
221 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 221 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
OLD | NEW |