Index: utils_unittest.cc |
diff --git a/utils_unittest.cc b/utils_unittest.cc |
index 575d91fbb99bee3a244b3c2fe4f3fdd5a6e2e0f3..70eb6c7101ccfc88d268f9414bf107002faa6aa8 100644 |
--- a/utils_unittest.cc |
+++ b/utils_unittest.cc |
@@ -157,4 +157,15 @@ TEST(UtilsTest, PartitionNumberTest) { |
EXPECT_EQ("3", utils::PartitionNumber("/dev/mmc0p3")); |
} |
+TEST(UtilsTest, ComparePriorities) { |
+ EXPECT_LT(utils::ComparePriorities(utils::kProcessPriorityLow, |
+ utils::kProcessPriorityNormal), 0); |
+ EXPECT_GT(utils::ComparePriorities(utils::kProcessPriorityNormal, |
+ utils::kProcessPriorityLow), 0); |
+ EXPECT_EQ(utils::ComparePriorities(utils::kProcessPriorityNormal, |
+ utils::kProcessPriorityNormal), 0); |
+ EXPECT_GT(utils::ComparePriorities(utils::kProcessPriorityHigh, |
+ utils::kProcessPriorityNormal), 0); |
+} |
+ |
} // namespace chromeos_update_engine |