summaryrefslogtreecommitdiffstats
path: root/chrome/test/render_view_test.h
diff options
context:
space:
mode:
authorsuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 07:41:32 +0000
committersuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 07:41:32 +0000
commit1730b4c3681cf23db126f4b7f7a877f922eee1ac (patch)
tree96d52839cf9f045b8bf963bbac22c21d7e326cf2 /chrome/test/render_view_test.h
parent1744c424d7ae86f7dbd5228d124c928a3d260b3e (diff)
downloadchromium_src-1730b4c3681cf23db126f4b7f7a877f922eee1ac.zip
chromium_src-1730b4c3681cf23db126f4b7f7a877f922eee1ac.tar.gz
chromium_src-1730b4c3681cf23db126f4b7f7a877f922eee1ac.tar.bz2
Fix issue 27927: linux hang in RenderViewTest.ImeComposition.
BUG=27927 TEST=none Review URL: http://codereview.chromium.org/668219 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/render_view_test.h')
-rw-r--r--chrome/test/render_view_test.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/test/render_view_test.h b/chrome/test/render_view_test.h
index 6a36097..4834d9a 100644
--- a/chrome/test/render_view_test.h
+++ b/chrome/test/render_view_test.h
@@ -55,11 +55,20 @@ class RenderViewTest : public testing::Test {
virtual void TearDown();
+ // A special WebKitClientImpl class for getting rid off the dependency to the
+ // sandbox, which is not available in RenderViewTest.
+ class RendererWebKitClientImplNoSandbox : public RendererWebKitClientImpl {
+ public:
+ virtual WebKit::WebSandboxSupport* sandboxSupport() {
+ return NULL;
+ }
+ };
+
MessageLoop msg_loop_;
MockRenderThread render_thread_;
scoped_ptr<MockRenderProcess> mock_process_;
scoped_refptr<RenderView> view_;
- RendererWebKitClientImpl webkitclient_;
+ RendererWebKitClientImplNoSandbox webkitclient_;
scoped_ptr<MockKeyboard> mock_keyboard_;
// Used to setup the process so renderers can run.