| Index: base/threading/platform_thread_unittest.cc
|
| diff --git a/base/threading/platform_thread_unittest.cc b/base/threading/platform_thread_unittest.cc
|
| index 52f8d1ba6f31c5158fe6b49e2003c90a844da8f3..8085ce574eb8719d40f0015920d7a267b15b7de0 100644
|
| --- a/base/threading/platform_thread_unittest.cc
|
| +++ b/base/threading/platform_thread_unittest.cc
|
| @@ -262,6 +262,12 @@ TEST(PlatformThreadTest, MAYBE_ThreadPriorityCurrentThread) {
|
| ThreadPriorityTestThread thread;
|
| PlatformThreadHandle handle;
|
|
|
| + if (IsBumpingPriorityAllowed()) {
|
| + // Bump the priority in order to verify that new threads are started with
|
| + // normal priority.
|
| + PlatformThread::SetCurrentThreadPriority(ThreadPriority::DISPLAY);
|
| + }
|
| +
|
| ASSERT_FALSE(thread.IsRunning());
|
| ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
|
| thread.WaitForTerminationReady();
|
|
|