Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: chrome/renderer/render_thread_unittest.cc

Issue 126086: Switch child threads so that current() only works on the correct thread and t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/worker/worker_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread_unittest.cc
===================================================================
--- chrome/renderer/render_thread_unittest.cc (revision 18344)
+++ chrome/renderer/render_thread_unittest.cc (working copy)
@@ -40,7 +40,9 @@
};
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) {
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/worker/worker_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698