| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_TEST_RENDER_VIEW_TEST_H_ | 5 #ifndef CHROME_TEST_RENDER_VIEW_TEST_H_ |
| 6 #define CHROME_TEST_RENDER_VIEW_TEST_H_ | 6 #define CHROME_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/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/common/main_function_params.h" | 12 #include "chrome/common/main_function_params.h" |
| 13 #include "chrome/common/native_web_keyboard_event.h" | 13 #include "chrome/common/native_web_keyboard_event.h" |
| 14 #include "chrome/common/sandbox_init_wrapper.h" | 14 #include "chrome/common/sandbox_init_wrapper.h" |
| 15 #include "chrome/renderer/mock_keyboard.h" | 15 #include "chrome/renderer/mock_keyboard.h" |
| 16 #include "chrome/renderer/mock_render_process.h" | 16 #include "chrome/renderer/mock_render_process.h" |
| 17 #include "chrome/renderer/mock_render_thread.h" | 17 #include "chrome/renderer/mock_render_thread.h" |
| 18 #include "chrome/renderer/render_view.h" | 18 #include "chrome/renderer/render_view.h" |
| 19 #include "chrome/renderer/renderer_main_platform_delegate.h" | 19 #include "chrome/renderer/renderer_main_platform_delegate.h" |
| 20 #include "chrome/renderer/renderer_webkitclient_impl.h" | 20 #include "chrome/renderer/renderer_webkitclient_impl.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 #include "webkit/api/public/WebFrame.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
| 23 | 23 |
| 24 class RenderViewTest : public testing::Test { | 24 class RenderViewTest : public testing::Test { |
| 25 public: | 25 public: |
| 26 RenderViewTest() {} | 26 RenderViewTest() {} |
| 27 ~RenderViewTest() {} | 27 ~RenderViewTest() {} |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 // Spins the message loop to process all messages that are currently pending. | 30 // Spins the message loop to process all messages that are currently pending. |
| 31 void ProcessPendingMessages(); | 31 void ProcessPendingMessages(); |
| 32 | 32 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 62 scoped_ptr<MockKeyboard> mock_keyboard_; | 62 scoped_ptr<MockKeyboard> mock_keyboard_; |
| 63 | 63 |
| 64 // Used to setup the process so renderers can run. | 64 // Used to setup the process so renderers can run. |
| 65 scoped_ptr<RendererMainPlatformDelegate> platform_; | 65 scoped_ptr<RendererMainPlatformDelegate> platform_; |
| 66 scoped_ptr<MainFunctionParams> params_; | 66 scoped_ptr<MainFunctionParams> params_; |
| 67 scoped_ptr<CommandLine> command_line_; | 67 scoped_ptr<CommandLine> command_line_; |
| 68 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; | 68 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ | 71 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ |
| OLD | NEW |