Index: base/message_loop_proxy_impl_unittest.cc |
diff --git a/base/message_loop_proxy_impl_unittest.cc b/base/message_loop_proxy_impl_unittest.cc |
index 2935911f1a5c8d157ba2be05cdcebd998ec70d8d..ae03e318ef5c1eba017114a2ddf48da94073cfee 100644 |
--- a/base/message_loop_proxy_impl_unittest.cc |
+++ b/base/message_loop_proxy_impl_unittest.cc |
@@ -58,21 +58,6 @@ class MessageLoopProxyImplTest : public testing::Test { |
FAIL() << "Callback Should not get executed."; |
} |
- class DummyTask : public Task { |
- public: |
- explicit DummyTask(bool* deleted) : deleted_(deleted) { } |
- ~DummyTask() { |
- *deleted_ = true; |
- } |
- |
- void Run() { |
- FAIL(); |
- } |
- |
- private: |
- bool* deleted_; |
- }; |
- |
class DeletedOnFile { |
public: |
explicit DeletedOnFile(MessageLoopProxyImplTest* test) : test_(test) {} |
@@ -105,35 +90,6 @@ TEST_F(MessageLoopProxyImplTest, Delete) { |
MessageLoop::current()->Run(); |
} |
-TEST_F(MessageLoopProxyImplTest, LegacyPostTaskAfterThreadExits) { |
- scoped_ptr<base::Thread> test_thread( |
- new base::Thread("MessageLoopProxyImplTest_Dummy")); |
- test_thread->Start(); |
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy = |
- test_thread->message_loop_proxy(); |
- test_thread->Stop(); |
- |
- bool deleted = false; |
- bool ret = message_loop_proxy->PostTask( |
- FROM_HERE, new DummyTask(&deleted)); |
- EXPECT_FALSE(ret); |
- EXPECT_TRUE(deleted); |
-} |
- |
-TEST_F(MessageLoopProxyImplTest, LegacyPostTaskAfterThreadIsDeleted) { |
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy; |
- { |
- scoped_ptr<base::Thread> test_thread( |
- new base::Thread("MessageLoopProxyImplTest_Dummy")); |
- test_thread->Start(); |
- message_loop_proxy = test_thread->message_loop_proxy(); |
- } |
- bool deleted = false; |
- bool ret = message_loop_proxy->PostTask(FROM_HERE, new DummyTask(&deleted)); |
- EXPECT_FALSE(ret); |
- EXPECT_TRUE(deleted); |
-} |
- |
TEST_F(MessageLoopProxyImplTest, PostTask) { |
EXPECT_TRUE(file_thread_->message_loop_proxy()->PostTask( |
FROM_HERE, base::Bind(&MessageLoopProxyImplTest::BasicFunction, |