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 <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.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 "mojo/edk/embedder/scoped_ipc_support.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "third_party/WebKit/public/platform/Platform.h" | 24 #include "third_party/WebKit/public/platform/Platform.h" |
25 #include "third_party/WebKit/public/web/WebFrame.h" | 25 #include "third_party/WebKit/public/web/WebFrame.h" |
26 #include "third_party/WebKit/public/web/WebLeakDetector.h" | 26 #include "third_party/WebKit/public/web/WebLeakDetector.h" |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class FieldTrialList; | 29 class FieldTrialList; |
30 } | 30 } |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 std::unique_ptr<MockRenderThread> render_thread_; | 203 std::unique_ptr<MockRenderThread> render_thread_; |
204 | 204 |
205 // Used to setup the process so renderers can run. | 205 // Used to setup the process so renderers can run. |
206 std::unique_ptr<RendererMainPlatformDelegate> platform_; | 206 std::unique_ptr<RendererMainPlatformDelegate> platform_; |
207 std::unique_ptr<MainFunctionParams> params_; | 207 std::unique_ptr<MainFunctionParams> params_; |
208 std::unique_ptr<base::CommandLine> command_line_; | 208 std::unique_ptr<base::CommandLine> command_line_; |
209 std::unique_ptr<base::FieldTrialList> field_trial_list_; | 209 std::unique_ptr<base::FieldTrialList> field_trial_list_; |
210 | 210 |
211 // For Mojo. | 211 // For Mojo. |
212 std::unique_ptr<base::TestIOThread> test_io_thread_; | 212 std::unique_ptr<base::TestIOThread> test_io_thread_; |
213 std::unique_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support_; | 213 std::unique_ptr<mojo::edk::ScopedIPCSupport> ipc_support_; |
214 | 214 |
215 #if defined(OS_MACOSX) | 215 #if defined(OS_MACOSX) |
216 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; | 216 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; |
217 #endif | 217 #endif |
218 | 218 |
219 private: | 219 private: |
220 void GoToOffset(int offset, const GURL& url, const PageState& state); | 220 void GoToOffset(int offset, const GURL& url, const PageState& state); |
221 }; | 221 }; |
222 | 222 |
223 } // namespace content | 223 } // namespace content |
224 | 224 |
225 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 225 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
OLD | NEW |