summaryrefslogtreecommitdiffstats
path: root/base/waitable_event_watcher_unittest.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 17:16:22 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 17:16:22 +0000
commit080255928397f696f656b2cc46f2b3647c1f0c01 (patch)
tree01bc7f8c09a9b12437d99945241769a324096385 /base/waitable_event_watcher_unittest.cc
parent3fa48b283832b629486b17d638de01354c1bd74c (diff)
downloadchromium_src-080255928397f696f656b2cc46f2b3647c1f0c01.zip
chromium_src-080255928397f696f656b2cc46f2b3647c1f0c01.tar.gz
chromium_src-080255928397f696f656b2cc46f2b3647c1f0c01.tar.bz2
Revert "POSIX: allow WaitableEvents to be deleted while watching them."
This reverts commit r12459 - it broke the world. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12462 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/waitable_event_watcher_unittest.cc')
-rw-r--r--base/waitable_event_watcher_unittest.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/base/waitable_event_watcher_unittest.cc b/base/waitable_event_watcher_unittest.cc
index 049de38..44b9b89 100644
--- a/base/waitable_event_watcher_unittest.cc
+++ b/base/waitable_event_watcher_unittest.cc
@@ -107,22 +107,6 @@ void RunTest_OutlivesMessageLoop(MessageLoop::Type message_loop_type) {
}
}
-void RunTest_DeleteUnder(MessageLoop::Type message_loop_type) {
- // Delete the WaitableEvent out from under the Watcher. This is explictly
- // allowed by the interface.
-
- MessageLoop message_loop(message_loop_type);
-
- {
- WaitableEventWatcher watcher;
-
- WaitableEvent* event = new WaitableEvent(false, false);
- QuitDelegate delegate;
- watcher.StartWatching(event, &delegate);
- delete event;
- }
-}
-
} // namespace
//-----------------------------------------------------------------------------
@@ -150,9 +134,3 @@ TEST(WaitableEventWatcherTest, OutlivesMessageLoop) {
RunTest_OutlivesMessageLoop(MessageLoop::TYPE_IO);
RunTest_OutlivesMessageLoop(MessageLoop::TYPE_UI);
}
-
-TEST(WaitableEventWatcherTest, DeleteUnder) {
- RunTest_DeleteUnder(MessageLoop::TYPE_DEFAULT);
- RunTest_DeleteUnder(MessageLoop::TYPE_IO);
- RunTest_DeleteUnder(MessageLoop::TYPE_UI);
-}