Index: content/public/test/test_browser_thread_bundle.h |
diff --git a/content/public/test/test_browser_thread_bundle.h b/content/public/test/test_browser_thread_bundle.h |
index c8f85deb2a5378de47e4d1b1badfc14f6f2b160e..ec57c5b36dfcc80feed73d6252da2cd8630633e1 100644 |
--- a/content/public/test/test_browser_thread_bundle.h |
+++ b/content/public/test/test_browser_thread_bundle.h |
@@ -54,6 +54,15 @@ |
// DONT_CREATE_THREADS should only be used when the options specify at least |
// one real thread other than the main thread. |
// |
+// TestBrowserThreadBundle may be instantiated in a scope where there is already |
+// a base::test::ScopedTaskEnvironment. In that case, it will use the |
+// MessageLoop and the TaskScheduler provided by this |
+// base::test::ScopedTaskEnvironment instead of creating its own. The ability to |
+// have a base::test::ScopedTaskEnvironment and a TestBrowserThreadBundle in the |
+// same scope is useful when a fixture that inherits from a fixture that |
+// provides a base::test::ScopedTaskEnvironment needs to add support for browser |
+// threads. |
+// |
// Basic usage: |
// |
// class MyTestFixture : public testing::Test { |