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

Unified Diff: content/browser/browser_thread_unittest.cc

Issue 13168005: Cleanup: Remove unused content::BrowserThread::DeleteOnWebKitThread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 | « no previous file | content/public/browser/browser_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_thread_unittest.cc
===================================================================
--- content/browser/browser_thread_unittest.cc (revision 191102)
+++ content/browser/browser_thread_unittest.cc (working copy)
@@ -59,21 +59,6 @@
MessageLoop* message_loop_;
};
- class NeverDeleted
- : public base::RefCountedThreadSafe<
- NeverDeleted, BrowserThread::DeleteOnWebKitThread> {
- public:
-
- private:
- friend struct BrowserThread::DeleteOnThread<
- BrowserThread::WEBKIT_DEPRECATED>;
- friend class base::DeleteHelper<NeverDeleted>;
-
- ~NeverDeleted() {
- CHECK(false);
- }
- };
-
private:
scoped_ptr<BrowserThreadImpl> ui_thread_;
scoped_ptr<BrowserThreadImpl> file_thread_;
@@ -102,10 +87,6 @@
MessageLoop::current()->Run();
}
-TEST_F(BrowserThreadTest, NotReleasedIfTargetThreadNonExistent) {
- scoped_refptr<NeverDeleted> test(new NeverDeleted());
-}
-
TEST_F(BrowserThreadTest, PostTaskViaMessageLoopProxy) {
scoped_refptr<base::MessageLoopProxy> message_loop_proxy =
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE);
@@ -133,4 +114,4 @@
MessageLoop::current()->Run();
}
-}
+} // namespace content
« no previous file with comments | « no previous file | content/public/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698