diff options
Diffstat (limited to 'content/browser/renderer_host/render_widget_host_unittest.cc')
-rw-r--r-- | content/browser/renderer_host/render_widget_host_unittest.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc index b2e65346..6b9397c 100644 --- a/content/browser/renderer_host/render_widget_host_unittest.cc +++ b/content/browser/renderer_host/render_widget_host_unittest.cc @@ -37,16 +37,8 @@ class RenderWidgetHostProcess : public MockRenderProcessHost { current_update_buf_(NULL), update_msg_should_reply_(false), update_msg_reply_flags_(0) { - // DANGER! This is a hack. The RenderWidgetHost checks the channel to see - // if the process is still alive, but it doesn't actually dereference it. - // An IPC::ChannelProxy is nontrivial, so we just fake it here. If you end up - // crashing by dereferencing 1, then you'll have to make a real channel. - channel_.reset(reinterpret_cast<IPC::ChannelProxy*>(0x1)); } ~RenderWidgetHostProcess() { - // We don't want to actually delete the channel, since it's not a real - // pointer. - ignore_result(channel_.release()); delete current_update_buf_; } @@ -60,6 +52,8 @@ class RenderWidgetHostProcess : public MockRenderProcessHost { // Fills the given update parameters with resonable default values. void InitUpdateRectParams(ViewHostMsg_UpdateRect_Params* params); + virtual bool HasConnection() const { return true; } + protected: virtual bool WaitForUpdateMsg(int render_widget_id, const base::TimeDelta& max_delay, |