| 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" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "content/public/browser/native_web_keyboard_event.h" | 14 #include "content/public/browser/native_web_keyboard_event.h" |
| 15 #include "content/public/common/main_function_params.h" | 15 #include "content/public/common/main_function_params.h" |
| 16 #include "content/public/renderer/content_renderer_client.h" | 16 #include "content/public/renderer/content_renderer_client.h" |
| 17 #include "content/public/test/mock_render_thread.h" | 17 #include "content/public/test/mock_render_thread.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 20 | 20 |
| 21 class MockRenderProcess; | |
| 22 class RendererMainPlatformDelegate; | |
| 23 | |
| 24 namespace WebKit { | 21 namespace WebKit { |
| 25 class WebHistoryItem; | 22 class WebHistoryItem; |
| 26 class WebKitPlatformSupport; | 23 class WebKitPlatformSupport; |
| 27 class WebWidget; | 24 class WebWidget; |
| 28 } | 25 } |
| 29 | 26 |
| 30 namespace gfx { | 27 namespace gfx { |
| 31 class Rect; | 28 class Rect; |
| 32 } | 29 } |
| 33 | 30 |
| 34 namespace content { | 31 namespace content { |
| 35 | 32 class MockRenderProcess; |
| 33 class RendererMainPlatformDelegate; |
| 36 class RendererWebKitPlatformSupportImplNoSandboxImpl; | 34 class RendererWebKitPlatformSupportImplNoSandboxImpl; |
| 37 | 35 |
| 38 class RenderViewTest : public testing::Test { | 36 class RenderViewTest : public testing::Test { |
| 39 public: | 37 public: |
| 40 // A special WebKitPlatformSupportImpl class for getting rid off the | 38 // A special WebKitPlatformSupportImpl class for getting rid off the |
| 41 // dependency to the sandbox, which is not available in RenderViewTest. | 39 // dependency to the sandbox, which is not available in RenderViewTest. |
| 42 class RendererWebKitPlatformSupportImplNoSandbox { | 40 class RendererWebKitPlatformSupportImplNoSandbox { |
| 43 public: | 41 public: |
| 44 RendererWebKitPlatformSupportImplNoSandbox(); | 42 RendererWebKitPlatformSupportImplNoSandbox(); |
| 45 ~RendererWebKitPlatformSupportImplNoSandbox(); | 43 ~RendererWebKitPlatformSupportImplNoSandbox(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 scoped_ptr<content::MainFunctionParams> params_; | 138 scoped_ptr<content::MainFunctionParams> params_; |
| 141 scoped_ptr<CommandLine> command_line_; | 139 scoped_ptr<CommandLine> command_line_; |
| 142 | 140 |
| 143 private: | 141 private: |
| 144 void GoToOffset(int offset, const WebKit::WebHistoryItem& history_item); | 142 void GoToOffset(int offset, const WebKit::WebHistoryItem& history_item); |
| 145 }; | 143 }; |
| 146 | 144 |
| 147 } // namespace content | 145 } // namespace content |
| 148 | 146 |
| 149 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 147 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
| OLD | NEW |