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

Unified Diff: net/disk_cache/simple/simple_backend_impl.cc

Issue 22882009: Flush the SimpleBackendImpl's SWP in tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « net/disk_cache/simple/simple_backend_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_backend_impl.cc
diff --git a/net/disk_cache/simple/simple_backend_impl.cc b/net/disk_cache/simple/simple_backend_impl.cc
index 4aed36c78fc6c7db72720e3dcd84a380e72dca77..dab33a89473981df9081b5f6051ee02f8bf3e894 100644
--- a/net/disk_cache/simple/simple_backend_impl.cc
+++ b/net/disk_cache/simple/simple_backend_impl.cc
@@ -567,4 +567,9 @@ void SimpleBackendImpl::CheckIterationReturnValue(
CallCompletionCallback(callback, error_code);
}
+void SimpleBackendImpl::FlushWorkerPoolForTesting() {
+ if (g_sequenced_worker_pool)
+ g_sequenced_worker_pool->FlushForTesting();
+}
+
} // namespace disk_cache
« no previous file with comments | « net/disk_cache/simple/simple_backend_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698