diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 18:30:30 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 18:30:30 +0000 |
commit | 94f9a0f686619656ca4ff2b6511179dc2132cc5d (patch) | |
tree | 26051806295528d68b4e5e65a0f39eaac18f7a24 /chrome/renderer/render_thread_unittest.cc | |
parent | 1b5d23dfa22d8858dc9ab35d373fcf328aadbcba (diff) | |
download | chromium_src-94f9a0f686619656ca4ff2b6511179dc2132cc5d.zip chromium_src-94f9a0f686619656ca4ff2b6511179dc2132cc5d.tar.gz chromium_src-94f9a0f686619656ca4ff2b6511179dc2132cc5d.tar.bz2 |
Switch child threads so that current() only works on the correct thread and the correct process.
Review URL: http://codereview.chromium.org/126086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_thread_unittest.cc')
-rw-r--r-- | chrome/renderer/render_thread_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/render_thread_unittest.cc b/chrome/renderer/render_thread_unittest.cc index 7ad8175..bb2e297 100644 --- a/chrome/renderer/render_thread_unittest.cc +++ b/chrome/renderer/render_thread_unittest.cc @@ -40,7 +40,9 @@ class RenderThreadTest : public testing::Test { }; TEST_F(RenderThreadTest, TestGlobal) { - ASSERT_TRUE(RenderThread::current()); + // Can't reach the RenderThread object on other threads, since it's not + // thread-safe! + ASSERT_FALSE(RenderThread::current()); } TEST_F(RenderThreadTest, TestVisitedMsg) { |