| Index: content/browser/appcache/chrome_appcache_service_unittest.cc
|
| diff --git a/content/browser/appcache/chrome_appcache_service_unittest.cc b/content/browser/appcache/chrome_appcache_service_unittest.cc
|
| index a23bde6f0e5f35c082ed83108d3072afdcadb1e0..b02441a2e54de576f314c502be5cf8018a7b549d 100644
|
| --- a/content/browser/appcache/chrome_appcache_service_unittest.cc
|
| +++ b/content/browser/appcache/chrome_appcache_service_unittest.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/files/scoped_temp_dir.h"
|
| #include "base/location.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/run_loop.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "content/browser/appcache/appcache_database.h"
|
| #include "content/browser/appcache/appcache_storage_impl.h"
|
| @@ -108,14 +109,14 @@ ChromeAppCacheServiceTest::CreateAppCacheServiceImpl(
|
| browser_context_.GetResourceContext(),
|
| base::RetainedRef(mock_request_context_getter), mock_policy));
|
| // Steps needed to initialize the storage of AppCache data.
|
| - message_loop_.RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
| if (init_storage) {
|
| AppCacheStorageImpl* storage =
|
| static_cast<AppCacheStorageImpl*>(
|
| appcache_service->storage());
|
| storage->database_->db_connection();
|
| storage->disk_cache();
|
| - message_loop_.RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
| }
|
| return appcache_service;
|
| }
|
| @@ -151,7 +152,7 @@ TEST_F(ChromeAppCacheServiceTest, KeepOnDestruction) {
|
|
|
| // Test: delete the ChromeAppCacheService
|
| appcache_service = NULL;
|
| - message_loop_.RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
|
|
| // Recreate the appcache (for reading the data back)
|
| appcache_service = CreateAppCacheServiceImpl(appcache_path, false);
|
| @@ -171,7 +172,7 @@ TEST_F(ChromeAppCacheServiceTest, KeepOnDestruction) {
|
|
|
| // Delete and let cleanup tasks run prior to returning.
|
| appcache_service = NULL;
|
| - message_loop_.RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
| }
|
|
|
| TEST_F(ChromeAppCacheServiceTest, SaveSessionState) {
|
| @@ -191,7 +192,7 @@ TEST_F(ChromeAppCacheServiceTest, SaveSessionState) {
|
|
|
| // Test: delete the ChromeAppCacheService
|
| appcache_service = NULL;
|
| - message_loop_.RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
|
|
| // Recreate the appcache (for reading the data back)
|
| appcache_service = CreateAppCacheServiceImpl(appcache_path, false);
|
| @@ -211,7 +212,7 @@ TEST_F(ChromeAppCacheServiceTest, SaveSessionState) {
|
|
|
| // Delete and let cleanup tasks run prior to returning.
|
| appcache_service = NULL;
|
| - message_loop_.RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
| }
|
|
|
| } // namespace content
|
|
|