| 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/Source/WebKit/chromium/public/WebFrame.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 23 | 23 |
| 24 class AutoFillHelper; | 24 namespace autofill { |
| 25 class AutoFillAgent; |
| 26 class PasswordAutoFillManager; |
| 27 } |
| 25 class MockRenderProcess; | 28 class MockRenderProcess; |
| 26 class PasswordAutocompleteManager; | |
| 27 | 29 |
| 28 class RenderViewTest : public testing::Test { | 30 class RenderViewTest : public testing::Test { |
| 29 public: | 31 public: |
| 30 // A special WebKitClientImpl class for getting rid off the dependency to the | 32 // A special WebKitClientImpl class for getting rid off the dependency to the |
| 31 // sandbox, which is not available in RenderViewTest. | 33 // sandbox, which is not available in RenderViewTest. |
| 32 class RendererWebKitClientImplNoSandbox : public RendererWebKitClientImpl { | 34 class RendererWebKitClientImplNoSandbox : public RendererWebKitClientImpl { |
| 33 public: | 35 public: |
| 34 virtual WebKit::WebSandboxSupport* sandboxSupport() { | 36 virtual WebKit::WebSandboxSupport* sandboxSupport() { |
| 35 return NULL; | 37 return NULL; |
| 36 } | 38 } |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 scoped_refptr<RenderView> view_; | 97 scoped_refptr<RenderView> view_; |
| 96 RendererWebKitClientImplNoSandbox webkitclient_; | 98 RendererWebKitClientImplNoSandbox webkitclient_; |
| 97 scoped_ptr<MockKeyboard> mock_keyboard_; | 99 scoped_ptr<MockKeyboard> mock_keyboard_; |
| 98 | 100 |
| 99 // Used to setup the process so renderers can run. | 101 // Used to setup the process so renderers can run. |
| 100 scoped_ptr<RendererMainPlatformDelegate> platform_; | 102 scoped_ptr<RendererMainPlatformDelegate> platform_; |
| 101 scoped_ptr<MainFunctionParams> params_; | 103 scoped_ptr<MainFunctionParams> params_; |
| 102 scoped_ptr<CommandLine> command_line_; | 104 scoped_ptr<CommandLine> command_line_; |
| 103 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; | 105 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; |
| 104 | 106 |
| 105 PasswordAutocompleteManager* password_autocomplete_; | 107 autofill::PasswordAutoFillManager* password_autofill_; |
| 106 AutoFillHelper* autofill_helper_; | 108 autofill::AutoFillAgent* autofill_agent_; |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ | 111 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ |
| OLD | NEW |