Index: base/process/process_util_unittest.cc |
diff --git a/base/process/process_util_unittest.cc b/base/process/process_util_unittest.cc |
index 9188fd3fd652e1b1148aa43793f3290f2b69e65b..d846d1acfae2634c4aff68f1498b21eaac1b45f8 100644 |
--- a/base/process/process_util_unittest.cc |
+++ b/base/process/process_util_unittest.cc |
@@ -311,45 +311,6 @@ TEST_F(ProcessUtilTest, GetTerminationStatusKill) { |
remove(signal_file.c_str()); |
} |
-// Ensure that the priority of a process is restored correctly after |
-// backgrounding and restoring. |
-// Note: a platform may not be willing or able to lower the priority of |
-// a process. The calls to SetProcessBackground should be noops then. |
-TEST_F(ProcessUtilTest, SetProcessBackgrounded) { |
- base::ProcessHandle handle = SpawnChild("SimpleChildProcess"); |
- base::Process process(handle); |
- int old_priority = process.GetPriority(); |
-#if defined(OS_WIN) |
- EXPECT_TRUE(process.SetProcessBackgrounded(true)); |
- EXPECT_TRUE(process.IsProcessBackgrounded()); |
- EXPECT_TRUE(process.SetProcessBackgrounded(false)); |
- EXPECT_FALSE(process.IsProcessBackgrounded()); |
-#else |
- process.SetProcessBackgrounded(true); |
- process.SetProcessBackgrounded(false); |
-#endif |
- int new_priority = process.GetPriority(); |
- EXPECT_EQ(old_priority, new_priority); |
-} |
- |
-// Same as SetProcessBackgrounded but to this very process. It uses |
-// a different code path at least for Windows. |
-TEST_F(ProcessUtilTest, SetProcessBackgroundedSelf) { |
- base::Process process(base::Process::Current().handle()); |
- int old_priority = process.GetPriority(); |
-#if defined(OS_WIN) |
- EXPECT_TRUE(process.SetProcessBackgrounded(true)); |
- EXPECT_TRUE(process.IsProcessBackgrounded()); |
- EXPECT_TRUE(process.SetProcessBackgrounded(false)); |
- EXPECT_FALSE(process.IsProcessBackgrounded()); |
-#else |
- process.SetProcessBackgrounded(true); |
- process.SetProcessBackgrounded(false); |
-#endif |
- int new_priority = process.GetPriority(); |
- EXPECT_EQ(old_priority, new_priority); |
-} |
- |
#if defined(OS_WIN) |
// TODO(estade): if possible, port this test. |
TEST_F(ProcessUtilTest, GetAppOutput) { |