summaryrefslogtreecommitdiffstats
path: root/base/thread_unittest.cc
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-01 14:34:42 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-01 14:34:42 +0000
commit98c74f8e8e373187f687e7bdc2acc6420914061d (patch)
treead2e4ea5087e03936c7a56f8f4b15f55ada7ae45 /base/thread_unittest.cc
parent0a776e7cd05d5a37c18328b44750a298197f2201 (diff)
downloadchromium_src-98c74f8e8e373187f687e7bdc2acc6420914061d.zip
chromium_src-98c74f8e8e373187f687e7bdc2acc6420914061d.tar.gz
chromium_src-98c74f8e8e373187f687e7bdc2acc6420914061d.tar.bz2
Reapply 5971 which was reverted in 5974. The unit test wasn't unregistering the observer correctly.
Review URL: http://codereview.chromium.org/12474 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/thread_unittest.cc')
-rw-r--r--base/thread_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/thread_unittest.cc b/base/thread_unittest.cc
index c1971c2..f11cb8d 100644
--- a/base/thread_unittest.cc
+++ b/base/thread_unittest.cc
@@ -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());
}