diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 02:17:44 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 02:17:44 +0000 |
commit | 033704f47fee8b873efff82f16c2279ea1369a6f (patch) | |
tree | 9c52fc8937e54b67211665ff5b4998937449ee24 /chrome/test/render_view_test.h | |
parent | 1d31be9d5238491a971fb2b5d9a70041f3997e5a (diff) | |
download | chromium_src-033704f47fee8b873efff82f16c2279ea1369a6f.zip chromium_src-033704f47fee8b873efff82f16c2279ea1369a6f.tar.gz chromium_src-033704f47fee8b873efff82f16c2279ea1369a6f.tar.bz2 |
Revert r50807
TBR=arv@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/render_view_test.h')
-rw-r--r-- | chrome/test/render_view_test.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/test/render_view_test.h b/chrome/test/render_view_test.h index 3cb3354..af6059e 100644 --- a/chrome/test/render_view_test.h +++ b/chrome/test/render_view_test.h @@ -16,6 +16,7 @@ #include "chrome/renderer/mock_render_thread.h" #include "chrome/renderer/render_view.h" #include "chrome/renderer/renderer_main_platform_delegate.h" +#include "chrome/renderer/renderer_webkitclient_impl.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" @@ -61,10 +62,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_; + RendererWebKitClientImplNoSandbox webkitclient_; scoped_ptr<MockKeyboard> mock_keyboard_; // Used to setup the process so renderers can run. |