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

Unified Diff: base/win/wait_chain_unittest.cc

Issue 2801073005: [reland] Do not block in SimpleThread::Start(). (Closed)
Patch Set: Created 3 years, 8 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 | « base/threading/thread_restrictions.h ('k') | content/renderer/categorized_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/wait_chain_unittest.cc
diff --git a/base/win/wait_chain_unittest.cc b/base/win/wait_chain_unittest.cc
index d5814916150fa4bf36a0b73499f20036cd16c54f..d110f2b90ffa5508026d7f5f083824f355bbe671 100644
--- a/base/win/wait_chain_unittest.cc
+++ b/base/win/wait_chain_unittest.cc
@@ -109,7 +109,7 @@ class DeadlockThread : public SimpleThread {
// Terminates the thread.
bool Terminate() {
- ScopedHandle thread_handle(::OpenThread(THREAD_TERMINATE, FALSE, tid()));
+ ScopedHandle thread_handle(::OpenThread(THREAD_TERMINATE, FALSE, GetTid()));
return ::TerminateThread(thread_handle.Get(), 0);
}
@@ -261,7 +261,7 @@ TEST(WaitChainTest, Deadlock) {
WaitChainNodeVector wait_chain;
bool is_deadlock;
- ASSERT_TRUE(GetThreadWaitChain(waiting_thread_2->tid(), &wait_chain,
+ ASSERT_TRUE(GetThreadWaitChain(waiting_thread_2->GetTid(), &wait_chain,
&is_deadlock, nullptr, nullptr));
EXPECT_EQ(9U, wait_chain.size());
@@ -300,7 +300,7 @@ TEST(WaitChainTest, CrossProcess) {
WaitChainNodeVector wait_chain;
bool is_deadlock;
- ASSERT_TRUE(GetThreadWaitChain(waiting_thread_3->tid(), &wait_chain,
+ ASSERT_TRUE(GetThreadWaitChain(waiting_thread_3->GetTid(), &wait_chain,
&is_deadlock, nullptr, nullptr));
EXPECT_EQ(7U, wait_chain.size());
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/renderer/categorized_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698