Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: chrome/test/render_view_test.h

Issue 6151011: Introduce RenderView::Observer interface so that RenderView doesn't have to k... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/speech_input_dispatcher.cc ('k') | chrome/test/render_view_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/speech_input_dispatcher.cc ('k') | chrome/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698