Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Unified Diff: chrome/browser/extensions/api/messaging/native_message_process_host_unittest.cc

Issue 323683002: net: FileStream cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments, fix init typo Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_);
}

Powered by Google App Engine
This is Rietveld 408576698