Index: content/renderer/render_view_browsertest.cc |
diff --git a/content/renderer/render_view_browsertest.cc b/content/renderer/render_view_browsertest.cc |
index bcdc6afd7ffd6f940341e187fa8441af8f4225b3..2d8b2fe71eaa9d73781ebaa80ff71289d06a5ef3 100644 |
--- a/content/renderer/render_view_browsertest.cc |
+++ b/content/renderer/render_view_browsertest.cc |
@@ -479,6 +479,7 @@ TEST_F(RenderViewImplTest, OnNavStateChanged) { |
EXPECT_TRUE(render_thread_->sink().GetUniqueMessageMatching( |
ViewHostMsg_UpdateState::ID)); |
} |
+ ProcessPendingMessages(); |
} |
TEST_F(RenderViewImplTest, OnNavigationHttpPost) { |
@@ -1072,6 +1073,7 @@ TEST_F(RenderViewImplTest, OnImeTypeChanged) { |
// message to activate IMEs. |
view()->UpdateTextInputState( |
RenderWidget::NO_SHOW_IME, RenderWidget::FROM_NON_IME); |
+ ProcessPendingMessages(); |
const IPC::Message* msg = render_thread_->sink().GetMessageAt(0); |
EXPECT_TRUE(msg != NULL); |
EXPECT_EQ(ViewHostMsg_TextInputStateChanged::ID, msg->type()); |