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

Unified Diff: webkit/fileapi/local_file_system_quota_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/local_file_system_quota_unittest.cc
diff --git a/webkit/fileapi/local_file_system_quota_unittest.cc b/webkit/fileapi/local_file_system_quota_unittest.cc
index e848afb3946066b30d3ead188aa964136ab32c91..8ba84ebcfe27a5e2e10a2c6b69bf1501b4718193 100644
--- a/webkit/fileapi/local_file_system_quota_unittest.cc
+++ b/webkit/fileapi/local_file_system_quota_unittest.cc
@@ -96,7 +96,7 @@ class LocalFileSystemQuotaTest
test_helper_.origin(), test_helper_.storage_type(),
base::Bind(&LocalFileSystemQuotaTest::OnGetUsageAndQuota,
weak_factory_.GetWeakPtr()));
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
}
bool FileExists(const FilePath& virtual_path) {
@@ -243,7 +243,7 @@ TEST_F(LocalFileSystemQuotaTest, TestMoveSuccessSrcDirRecursive) {
base::Bind(&AssertFileErrorEq, base::PLATFORM_FILE_OK));
operation()->Truncate(URLForPath(grandchild_file2_path_), 2,
base::Bind(&AssertFileErrorEq, base::PLATFORM_FILE_OK));
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
const int64 all_file_size = 5000 + 400 + 30 + 2;
@@ -256,7 +256,7 @@ TEST_F(LocalFileSystemQuotaTest, TestMoveSuccessSrcDirRecursive) {
operation()->Move(URLForPath(src_dir_path), URLForPath(dest_dir_path),
RecordStatusCallback());
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
EXPECT_EQ(base::PLATFORM_FILE_OK, status());
EXPECT_TRUE(DirectoryExists(dest_dir_path.Append(
@@ -291,7 +291,7 @@ TEST_F(LocalFileSystemQuotaTest, TestCopySuccessSrcDirRecursive) {
base::Bind(&AssertFileErrorEq, base::PLATFORM_FILE_OK));
operation()->Truncate(URLForPath(grandchild_file2_path_), 5,
base::Bind(&AssertFileErrorEq, base::PLATFORM_FILE_OK));
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
const int64 child_file_size = 8000 + 700;
const int64 grandchild_file_size = 60 + 5;
@@ -307,7 +307,7 @@ TEST_F(LocalFileSystemQuotaTest, TestCopySuccessSrcDirRecursive) {
operation()->Copy(URLForPath(src_dir_path), URLForPath(dest_dir1_path),
RecordStatusCallback());
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
expected_usage += all_file_size +
child_path_cost_ + grandchild_path_cost_;
@@ -333,7 +333,7 @@ TEST_F(LocalFileSystemQuotaTest, TestCopySuccessSrcDirRecursive) {
operation()->Copy(URLForPath(child_dir_path_), URLForPath(dest_dir2_path),
RecordStatusCallback());
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
EXPECT_EQ(base::PLATFORM_FILE_OK, status());
expected_usage += grandchild_file_size + grandchild_path_cost_;
« no previous file with comments | « webkit/fileapi/local_file_system_operation_write_unittest.cc ('k') | webkit/fileapi/local_file_system_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698