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

Unified Diff: chrome/browser/chromeos/drive/test_util.h

Issue 380993002: Upstream RunBlockingPoolTask(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 5 months 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: chrome/browser/chromeos/drive/test_util.h
diff --git a/chrome/browser/chromeos/drive/test_util.h b/chrome/browser/chromeos/drive/test_util.h
index 8a300117516e1b2d1e94161fa26d7fc68c532df3..d69d44106cdb08c492221a9b3c9ef7715d770e29 100644
--- a/chrome/browser/chromeos/drive/test_util.h
+++ b/chrome/browser/chromeos/drive/test_util.h
@@ -7,6 +7,7 @@
#include <string>
+#include "content/public/test/test_utils.h"
#include "google_apis/drive/test_util.h"
#include "net/base/completion_callback.h"
#include "net/base/io_buffer.h"
@@ -27,15 +28,6 @@ namespace test_util {
// Disk space size used by FakeFreeDiskSpaceGetter.
const int64 kLotsOfSpace = cryptohome::kMinFreeSpaceInBytes * 10;
-// Runs a task posted to the blocking pool, including subsequent tasks posted
-// to the UI message loop and the blocking pool.
-//
-// A task is often posted to the blocking pool with PostTaskAndReply(). In
-// that case, a task is posted back to the UI message loop, which can again
-// post a task to the blocking pool. This function processes these tasks
-// repeatedly.
-void RunBlockingPoolTask();
-
// Helper to destroy objects which needs Destroy() to be called on destruction.
// Note: When using this helper, you should destruct objects before
// BrowserThread.
@@ -44,7 +36,7 @@ struct DestroyHelperForTests {
void operator()(T* object) const {
if (object) {
object->Destroy();
- test_util::RunBlockingPoolTask(); // Finish destruction.
+ content::RunAllBlockingPoolTasksUntilIdle(); // Finish destruction.
}
}
};
« no previous file with comments | « chrome/browser/chromeos/drive/sync/remove_performer_unittest.cc ('k') | chrome/browser/chromeos/drive/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698