Index: content/test/test_browser_thread.h |
diff --git a/content/test/test_browser_thread.h b/content/test/test_browser_thread.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1067f9e8357925d4c31c11b3e584d2093ba1b88c |
--- /dev/null |
+++ b/content/test/test_browser_thread.h |
@@ -0,0 +1,24 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_TEST_TEST_BROWSER_BROWSER_THREAD_H_ |
+#define CONTENT_TEST_TEST_BROWSER_BROWSER_THREAD_H_ |
+#pragma once |
+ |
+#include "content/browser/browser_thread_impl.h" |
+ |
+namespace content { |
+ |
+// A BrowserThread for unit tests; this lets unit tests in chrome/ |
+// create BrowserThread instances. |
+class TestBrowserThread : public BrowserThreadImpl { |
+ public: |
+ explicit TestBrowserThread(ID identifier); |
+ TestBrowserThread(ID identifier, MessageLoop* message_loop); |
+ virtual ~TestBrowserThread(); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_TEST_TEST_BROWSER_BROWSER_THREAD_H_ |