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

Unified Diff: webkit/blob/shareable_file_reference_unittest.cc

Issue 11595003: webkit: Update the calls from RunAllPending() to RunUntilIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: webkit/blob/shareable_file_reference_unittest.cc
diff --git a/webkit/blob/shareable_file_reference_unittest.cc b/webkit/blob/shareable_file_reference_unittest.cc
index 7136fcd55c4f19fb76dee5cccab5feeb7aec1c12..d75a1bed8bbefc9c1e03455ec404e7f9b2bfea14 100644
--- a/webkit/blob/shareable_file_reference_unittest.cc
+++ b/webkit/blob/shareable_file_reference_unittest.cc
@@ -44,13 +44,13 @@ TEST(ShareableFileReferenceTest, TestReferences) {
// Drop the first reference, the file and reference should still be there.
reference1 = NULL;
EXPECT_TRUE(ShareableFileReference::Get(file).get());
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
EXPECT_TRUE(file_util::PathExists(file));
// Drop the second reference, the file and reference should get deleted.
reference2 = NULL;
EXPECT_FALSE(ShareableFileReference::Get(file).get());
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
EXPECT_FALSE(file_util::PathExists(file));
// TODO(michaeln): add a test for files that aren't deletable behavior.
« no previous file with comments | « webkit/blob/local_file_stream_reader_unittest.cc ('k') | webkit/chromeos/fileapi/memory_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698