Index: base/task_scheduler/task_scheduler_impl_unittest.cc |
diff --git a/base/task_scheduler/task_scheduler_impl_unittest.cc b/base/task_scheduler/task_scheduler_impl_unittest.cc |
index c491a4a13450b6edb31c8b233ed99ab16f1e5c0f..a9e83f88236b91b0d33a5e87e982b0823aba789a 100644 |
--- a/base/task_scheduler/task_scheduler_impl_unittest.cc |
+++ b/base/task_scheduler/task_scheduler_impl_unittest.cc |
@@ -6,7 +6,6 @@ |
#include <stddef.h> |
-#include <string> |
#include <utility> |
#include <vector> |
@@ -78,16 +77,6 @@ |
// !ENABLE_THREAD_RESTRICTIONS, even when |traits| don't allow file I/O. |
EXPECT_EQ(traits.with_file_io(), GetIOAllowed()); |
#endif |
- |
- // Verify that the thread the task is running on is named as expected. |
- const std::string current_thread_name(PlatformThread::GetName()); |
- EXPECT_NE(std::string::npos, current_thread_name.find("TaskScheduler")); |
- EXPECT_NE(std::string::npos, |
- current_thread_name.find( |
- traits.priority() == TaskPriority::BACKGROUND ? "Background" |
- : "Foreground")); |
- EXPECT_EQ(traits.with_file_io(), |
- current_thread_name.find("FileIO") != std::string::npos); |
} |
void VerifyTaskEnvironementAndSignalEvent(const TaskTraits& traits, |