| Index: content/browser/renderer_host/render_widget_host_unittest.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc
|
| index 8f5c465a87afac5d1ce457c4bf42671f85df3d1e..27ea7a0915bf03d2ff4694e884eea0a75c5be90b 100644
|
| --- a/content/browser/renderer_host/render_widget_host_unittest.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_unittest.cc
|
| @@ -508,6 +508,11 @@ TEST_F(RenderWidgetHostTest, Background) {
|
| // Tests getting the backing store with the renderer not setting repaint ack
|
| // flags.
|
| TEST_F(RenderWidgetHostTest, GetBackingStore_NoRepaintAck) {
|
| + // First set the view size to match what the renderer is rendering.
|
| + ViewHostMsg_UpdateRect_Params params;
|
| + process_->InitUpdateRectParams(¶ms);
|
| + view_->set_bounds(gfx::Rect(params.view_size));
|
| +
|
| // We don't currently have a backing store, and if the renderer doesn't send
|
| // one in time, we should get nothing.
|
| process_->set_update_msg_should_reply(false);
|
| @@ -534,6 +539,11 @@ TEST_F(RenderWidgetHostTest, GetBackingStore_NoRepaintAck) {
|
|
|
| // Tests getting the backing store with the renderer sending a repaint ack.
|
| TEST_F(RenderWidgetHostTest, GetBackingStore_RepaintAck) {
|
| + // First set the view size to match what the renderer is rendering.
|
| + ViewHostMsg_UpdateRect_Params params;
|
| + process_->InitUpdateRectParams(¶ms);
|
| + view_->set_bounds(gfx::Rect(params.view_size));
|
| +
|
| // Doing a request request with the update message allowed should work and
|
| // the repaint ack should work.
|
| process_->set_update_msg_should_reply(true);
|
|
|