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

Unified Diff: content/test/test_browser_thread.h

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix official build, avoid DCHECK in official Linux/ChromeOS builds. Created 9 years, 1 month 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_browser_main.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
index 5d3439e363f9d313df61a1ef561aa1327701c33c..9466ae2e1e806a8bb236ee1bc4c46e7a08e1af01 100644
--- a/content/test/test_browser_thread.h
+++ b/content/test/test_browser_thread.h
@@ -18,7 +18,7 @@ class Thread;
namespace content {
-class BrowserThreadImpl;
+class TestBrowserThreadImpl;
// A BrowserThread for unit tests; this lets unit tests in chrome/
// create BrowserThread instances.
@@ -49,8 +49,12 @@ class TestBrowserThread {
// in new tests.
base::Thread* DeprecatedGetThreadObject();
+ // Sets the message loop to use for the thread. This should not be
+ // used in new tests.
+ void DeprecatedSetMessageLoop(MessageLoop* loop);
+
private:
- scoped_ptr<BrowserThreadImpl> impl_;
+ scoped_ptr<TestBrowserThreadImpl> impl_;
DISALLOW_COPY_AND_ASSIGN(TestBrowserThread);
};
« no previous file with comments | « content/shell/shell_browser_main.cc ('k') | content/test/test_browser_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698