0

Reverting 5971.

Review URL: http://codereview.chromium.org/12637

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5974 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
maruel@chromium.org
2008-11-25 14:45:39 +00:00
parent 27abf503d7
commit 97f4fedbc1
8 changed files with 6 additions and 143 deletions

@ -131,6 +131,9 @@ void Thread::StopSoon() {
DCHECK(message_loop_);
message_loop_->PostTask(FROM_HERE, new ThreadQuitTask());
// The thread can't receive messages anymore.
message_loop_ = NULL;
}
void Thread::ThreadMain() {

@ -97,8 +97,8 @@ TEST_F(ThreadTest, StopSoon) {
EXPECT_TRUE(a.Start());
EXPECT_TRUE(a.message_loop());
a.StopSoon();
EXPECT_FALSE(a.message_loop());
a.StopSoon();
a.Stop();
EXPECT_FALSE(a.message_loop());
}