diff options
Diffstat (limited to 'chromium/content/browser/browser_thread_impl.h')
-rw-r--r-- | chromium/content/browser/browser_thread_impl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/content/browser/browser_thread_impl.h b/chromium/content/browser/browser_thread_impl.h index cd0759c3f58..5789a29e1c5 100644 --- a/chromium/content/browser/browser_thread_impl.h +++ b/chromium/content/browser/browser_thread_impl.h @@ -39,6 +39,13 @@ class CONTENT_EXPORT BrowserThreadImpl : public BrowserThread { // |identifier|. static void ResetGlobalsForTesting(BrowserThread::ID identifier); + // Creates and registers a TaskExecutor that facilitates posting tasks to a + // BrowserThread via //base/task/post_task.h. + static void CreateTaskExecutor(); + + // Unregister and delete the TaskExecutor after a test. + static void ResetTaskExecutorForTesting(); + private: // Restrict instantiation to BrowserProcessSubThread as it performs important // initialization that shouldn't be bypassed (except by BrowserMainLoop for |