diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-10 19:07:29 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-10 19:07:29 +0000 |
commit | f319aceaf8795d10825d748162bf744c0f15db8c (patch) | |
tree | 62b518c6939cafdc0c9708b298f488ea0ab4e4f8 /content/browser/appcache | |
parent | 7b73935e6e8f873ca3e54d4e2a81fe7a3f4b5ba3 (diff) | |
download | chromium_src-f319aceaf8795d10825d748162bf744c0f15db8c.zip chromium_src-f319aceaf8795d10825d748162bf744c0f15db8c.tar.gz chromium_src-f319aceaf8795d10825d748162bf744c0f15db8c.tar.bz2 |
content: Update calls froms RunAllPending() to RunUntilIdle().
BUG=131220
TEST=content_unittests
TBR=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11365186
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167096 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/appcache')
-rw-r--r-- | content/browser/appcache/chrome_appcache_service_unittest.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/content/browser/appcache/chrome_appcache_service_unittest.cc b/content/browser/appcache/chrome_appcache_service_unittest.cc index 82390a6..8b4a076 100644 --- a/content/browser/appcache/chrome_appcache_service_unittest.cc +++ b/content/browser/appcache/chrome_appcache_service_unittest.cc @@ -116,14 +116,14 @@ ChromeAppCacheServiceTest::CreateAppCacheService( mock_request_context_getter, mock_policy)); // Steps needed to initialize the storage of AppCache data. - message_loop_.RunAllPending(); + message_loop_.RunUntilIdle(); if (init_storage) { appcache::AppCacheStorageImpl* storage = static_cast<appcache::AppCacheStorageImpl*>( appcache_service->storage()); storage->database_->db_connection(); storage->disk_cache(); - message_loop_.RunAllPending(); + message_loop_.RunUntilIdle(); } return appcache_service; } @@ -158,7 +158,7 @@ TEST_F(ChromeAppCacheServiceTest, KeepOnDestruction) { // Test: delete the ChromeAppCacheService appcache_service = NULL; - message_loop_.RunAllPending(); + message_loop_.RunUntilIdle(); // Recreate the appcache (for reading the data back) appcache_service = CreateAppCacheService(appcache_path, false); @@ -178,7 +178,7 @@ TEST_F(ChromeAppCacheServiceTest, KeepOnDestruction) { // Delete and let cleanup tasks run prior to returning. appcache_service = NULL; - message_loop_.RunAllPending(); + message_loop_.RunUntilIdle(); } TEST_F(ChromeAppCacheServiceTest, SaveSessionState) { @@ -197,7 +197,7 @@ TEST_F(ChromeAppCacheServiceTest, SaveSessionState) { // Test: delete the ChromeAppCacheService appcache_service = NULL; - message_loop_.RunAllPending(); + message_loop_.RunUntilIdle(); // Recreate the appcache (for reading the data back) appcache_service = CreateAppCacheService(appcache_path, false); @@ -217,7 +217,7 @@ TEST_F(ChromeAppCacheServiceTest, SaveSessionState) { // Delete and let cleanup tasks run prior to returning. appcache_service = NULL; - message_loop_.RunAllPending(); + message_loop_.RunUntilIdle(); } } // namespace content |