OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "chrome/common/main_function_params.h" | 13 #include "chrome/common/main_function_params.h" |
14 #include "chrome/common/native_web_keyboard_event.h" | 14 #include "chrome/common/native_web_keyboard_event.h" |
15 #include "chrome/common/sandbox_init_wrapper.h" | 15 #include "chrome/common/sandbox_init_wrapper.h" |
16 #include "chrome/renderer/mock_keyboard.h" | 16 #include "chrome/renderer/mock_keyboard.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 "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
23 | 23 |
| 24 class AutoFillHelper; |
24 class MockRenderProcess; | 25 class MockRenderProcess; |
| 26 class PasswordAutocompleteManager; |
25 | 27 |
26 class RenderViewTest : public testing::Test { | 28 class RenderViewTest : public testing::Test { |
27 public: | 29 public: |
28 // A special WebKitClientImpl class for getting rid off the dependency to the | 30 // A special WebKitClientImpl class for getting rid off the dependency to the |
29 // sandbox, which is not available in RenderViewTest. | 31 // sandbox, which is not available in RenderViewTest. |
30 class RendererWebKitClientImplNoSandbox : public RendererWebKitClientImpl { | 32 class RendererWebKitClientImplNoSandbox : public RendererWebKitClientImpl { |
31 public: | 33 public: |
32 virtual WebKit::WebSandboxSupport* sandboxSupport() { | 34 virtual WebKit::WebSandboxSupport* sandboxSupport() { |
33 return NULL; | 35 return NULL; |
34 } | 36 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 scoped_ptr<MockRenderProcess> mock_process_; | 94 scoped_ptr<MockRenderProcess> mock_process_; |
93 scoped_refptr<RenderView> view_; | 95 scoped_refptr<RenderView> view_; |
94 RendererWebKitClientImplNoSandbox webkitclient_; | 96 RendererWebKitClientImplNoSandbox webkitclient_; |
95 scoped_ptr<MockKeyboard> mock_keyboard_; | 97 scoped_ptr<MockKeyboard> mock_keyboard_; |
96 | 98 |
97 // Used to setup the process so renderers can run. | 99 // Used to setup the process so renderers can run. |
98 scoped_ptr<RendererMainPlatformDelegate> platform_; | 100 scoped_ptr<RendererMainPlatformDelegate> platform_; |
99 scoped_ptr<MainFunctionParams> params_; | 101 scoped_ptr<MainFunctionParams> params_; |
100 scoped_ptr<CommandLine> command_line_; | 102 scoped_ptr<CommandLine> command_line_; |
101 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; | 103 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; |
| 104 |
| 105 PasswordAutocompleteManager* password_autocomplete_; |
| 106 AutoFillHelper* autofill_helper_; |
102 }; | 107 }; |
103 | 108 |
104 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ | 109 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ |
OLD | NEW |