| Index: chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
|
| diff --git a/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc b/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
|
| index 81e811ba273b661a580901a07faf2e4190c067ab..11e23c671e484630d02392642c2a9e36833cd67a 100644
|
| --- a/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
|
| +++ b/chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc
|
| @@ -184,14 +184,10 @@ TEST_F(NativeMessagingTest, SingleSendMessageRead) {
|
| AsWeakPtr(), ScopedTestNativeMessagingHost::kExtensionId, "empty_app.py",
|
| 0, launcher.Pass());
|
| ASSERT_TRUE(native_message_process_host_.get());
|
| + native_message_process_host_->DontWaitToReadForTesting();
|
| run_loop_.reset(new base::RunLoop());
|
| - run_loop_->RunUntilIdle();
|
| + run_loop_->Run();
|
|
|
| - if (last_message_.empty()) {
|
| - run_loop_.reset(new base::RunLoop());
|
| - native_message_process_host_->ReadNowForTesting();
|
| - run_loop_->Run();
|
| - }
|
| EXPECT_EQ(kTestMessage, last_message_);
|
| }
|
|
|
|
|