summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_thread_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/browser_thread_unittest.cc')
-rw-r--r--content/browser/browser_thread_unittest.cc21
1 files changed, 1 insertions, 20 deletions
diff --git a/content/browser/browser_thread_unittest.cc b/content/browser/browser_thread_unittest.cc
index 3dbfcf2..06b1951 100644
--- a/content/browser/browser_thread_unittest.cc
+++ b/content/browser/browser_thread_unittest.cc
@@ -59,21 +59,6 @@ class BrowserThreadTest : public testing::Test {
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 @@ TEST_F(BrowserThreadTest, ReleasedOnCorrectThread) {
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 @@ TEST_F(BrowserThreadTest, PostTaskAndReply) {
MessageLoop::current()->Run();
}
-}
+} // namespace content