| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 bool is_new_navigation); | 125 bool is_new_navigation); |
| 126 void SendContentStateImmediately(); | 126 void SendContentStateImmediately(); |
| 127 blink::WebWidget* GetWebWidget(); | 127 blink::WebWidget* GetWebWidget(); |
| 128 | 128 |
| 129 // Allows a subclass to override the various content client implementations. | 129 // Allows a subclass to override the various content client implementations. |
| 130 virtual ContentClient* CreateContentClient(); | 130 virtual ContentClient* CreateContentClient(); |
| 131 virtual ContentBrowserClient* CreateContentBrowserClient(); | 131 virtual ContentBrowserClient* CreateContentBrowserClient(); |
| 132 virtual ContentRendererClient* CreateContentRendererClient(); | 132 virtual ContentRendererClient* CreateContentRendererClient(); |
| 133 | 133 |
| 134 // testing::Test | 134 // testing::Test |
| 135 virtual void SetUp() OVERRIDE; | 135 virtual void SetUp() override; |
| 136 | 136 |
| 137 virtual void TearDown() OVERRIDE; | 137 virtual void TearDown() override; |
| 138 | 138 |
| 139 base::MessageLoop msg_loop_; | 139 base::MessageLoop msg_loop_; |
| 140 scoped_ptr<MockRenderProcess> mock_process_; | 140 scoped_ptr<MockRenderProcess> mock_process_; |
| 141 // We use a naked pointer because we don't want to expose RenderViewImpl in | 141 // We use a naked pointer because we don't want to expose RenderViewImpl in |
| 142 // the embedder's namespace. | 142 // the embedder's namespace. |
| 143 RenderView* view_; | 143 RenderView* view_; |
| 144 RendererBlinkPlatformImplNoSandbox blink_platform_impl_; | 144 RendererBlinkPlatformImplNoSandbox blink_platform_impl_; |
| 145 scoped_ptr<ContentClient> content_client_; | 145 scoped_ptr<ContentClient> content_client_; |
| 146 scoped_ptr<ContentBrowserClient> content_browser_client_; | 146 scoped_ptr<ContentBrowserClient> content_browser_client_; |
| 147 scoped_ptr<ContentRendererClient> content_renderer_client_; | 147 scoped_ptr<ContentRendererClient> content_renderer_client_; |
| 148 scoped_ptr<MockRenderThread> render_thread_; | 148 scoped_ptr<MockRenderThread> render_thread_; |
| 149 | 149 |
| 150 // Used to setup the process so renderers can run. | 150 // Used to setup the process so renderers can run. |
| 151 scoped_ptr<RendererMainPlatformDelegate> platform_; | 151 scoped_ptr<RendererMainPlatformDelegate> platform_; |
| 152 scoped_ptr<MainFunctionParams> params_; | 152 scoped_ptr<MainFunctionParams> params_; |
| 153 scoped_ptr<base::CommandLine> command_line_; | 153 scoped_ptr<base::CommandLine> command_line_; |
| 154 | 154 |
| 155 #if defined(OS_MACOSX) | 155 #if defined(OS_MACOSX) |
| 156 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; | 156 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; |
| 157 #endif | 157 #endif |
| 158 | 158 |
| 159 private: | 159 private: |
| 160 void GoToOffset(int offset, const PageState& state); | 160 void GoToOffset(int offset, const PageState& state); |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace content | 163 } // namespace content |
| 164 | 164 |
| 165 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 165 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
| OLD | NEW |