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

Unified Diff: content/test/test_browser_thread.h

Issue 8392042: Split BrowserThread into public API and private implementation, step 1. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 2 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 | « content/shell/shell_url_request_context_getter.cc ('k') | content/test/test_browser_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « content/shell/shell_url_request_context_getter.cc ('k') | content/test/test_browser_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698