Index: base/threading/thread.h |
diff --git a/base/threading/thread.h b/base/threading/thread.h |
index 5bb53f77d3086faf64f8c109d0b2ec1a3bdfc52d..b8136db8829c172b1a791b372291af4bfffb7ec2 100644 |
--- a/base/threading/thread.h |
+++ b/base/threading/thread.h |
@@ -140,6 +140,9 @@ class BASE_EXPORT Thread : PlatformThread::Delegate { |
// carefully for production code. |
bool WaitUntilThreadStarted() const; |
+ // Blocks until all tasks previously posted to this thread have been executed. |
+ void FlushForTesting(); |
+ |
// Signals the thread to exit and returns once the thread has exited. The |
// Thread object is completely reset and may be used as if it were newly |
// constructed (i.e., Start may be called again). Can only be called if |