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

Unified Diff: webkit/fileapi/file_system_url_request_job_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/fileapi/file_system_url_request_job_unittest.cc
diff --git a/webkit/fileapi/file_system_url_request_job_unittest.cc b/webkit/fileapi/file_system_url_request_job_unittest.cc
index b0091dc2275b82b7b7cca04ae01ace8cc9bd74bd..0efb40a108b1323160f49f80c90763dc3d46237d 100644
--- a/webkit/fileapi/file_system_url_request_job_unittest.cc
+++ b/webkit/fileapi/file_system_url_request_job_unittest.cc
@@ -73,7 +73,7 @@ class FileSystemURLRequestJobTest : public testing::Test {
GURL("http://remote/"), kFileSystemTypeTemporary, true, // create
base::Bind(&FileSystemURLRequestJobTest::OnValidateFileSystem,
weak_factory_.GetWeakPtr()));
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
net::URLRequest::Deprecated::RegisterProtocolFactory(
"filesystem", &FileSystemURLRequestJobFactory);
@@ -87,7 +87,7 @@ class FileSystemURLRequestJobTest : public testing::Test {
pending_job_ = NULL;
}
// FileReader posts a task to close the file in destructor.
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
}
void OnValidateFileSystem(base::PlatformFileError result) {
@@ -341,7 +341,7 @@ TEST_F(FileSystemURLRequestJobTest, Cancel) {
// Run StartAsync() and only StartAsync().
MessageLoop::current()->DeleteSoon(FROM_HERE, request_.release());
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
// If we get here, success! we didn't crash!
}
« no previous file with comments | « webkit/fileapi/file_system_quota_client_unittest.cc ('k') | webkit/fileapi/local_file_stream_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698