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

Unified Diff: base/threading/thread_id_name_manager_unittest.cc

Issue 1207823004: PlatformThreadHandle: remove public id() interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: the last two nits Created 5 years, 5 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.cc ('k') | base/threading/thread_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/thread_id_name_manager_unittest.cc
diff --git a/base/threading/thread_id_name_manager_unittest.cc b/base/threading/thread_id_name_manager_unittest.cc
index b17c68141207ecf8e4cd2fb6fef654fb274d5336..350dc0fa73b8dc653de9a2aa28697775436fc913 100644
--- a/base/threading/thread_id_name_manager_unittest.cc
+++ b/base/threading/thread_id_name_manager_unittest.cc
@@ -24,8 +24,8 @@ TEST_F(ThreadIdNameManagerTest, AddThreads) {
thread_a.StartAndWaitForTesting();
thread_b.StartAndWaitForTesting();
- EXPECT_STREQ(kAThread, manager->GetName(thread_a.thread_id()));
- EXPECT_STREQ(kBThread, manager->GetName(thread_b.thread_id()));
+ EXPECT_STREQ(kAThread, manager->GetName(thread_a.GetThreadId()));
+ EXPECT_STREQ(kBThread, manager->GetName(thread_b.GetThreadId()));
thread_b.Stop();
thread_a.Stop();
@@ -41,10 +41,10 @@ TEST_F(ThreadIdNameManagerTest, RemoveThreads) {
thread_b.StartAndWaitForTesting();
thread_b.Stop();
}
- EXPECT_STREQ(kAThread, manager->GetName(thread_a.thread_id()));
+ EXPECT_STREQ(kAThread, manager->GetName(thread_a.GetThreadId()));
thread_a.Stop();
- EXPECT_STREQ("", manager->GetName(thread_a.thread_id()));
+ EXPECT_STREQ("", manager->GetName(thread_a.GetThreadId()));
}
TEST_F(ThreadIdNameManagerTest, RestartThread) {
@@ -52,13 +52,13 @@ TEST_F(ThreadIdNameManagerTest, RestartThread) {
base::Thread thread_a(kAThread);
thread_a.StartAndWaitForTesting();
- base::PlatformThreadId a_id = thread_a.thread_id();
+ base::PlatformThreadId a_id = thread_a.GetThreadId();
EXPECT_STREQ(kAThread, manager->GetName(a_id));
thread_a.Stop();
thread_a.StartAndWaitForTesting();
EXPECT_STREQ("", manager->GetName(a_id));
- EXPECT_STREQ(kAThread, manager->GetName(thread_a.thread_id()));
+ EXPECT_STREQ(kAThread, manager->GetName(thread_a.GetThreadId()));
thread_a.Stop();
}
« no previous file with comments | « base/threading/thread.cc ('k') | base/threading/thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698