From 1ace3aee71264279928a574ba44d75b7d8d0b4ba Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 21 Mar 2018 10:03:52 +0100 Subject: tests/test-service.c: Explicitly use curly braces for one-liner if statements. --- tests/test-service.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/test-service.cc b/tests/test-service.cc index ddb02d6..fccdb1d 100644 --- a/tests/test-service.cc +++ b/tests/test-service.cc @@ -525,7 +525,9 @@ TEST_F (ServiceTest, ConfirmationDisabledByBackend) ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-screensaver")); ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.logout")); if (action_menuitem_exists ("indicator.reboot")) + { ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.reboot")); + } ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.power-off")); // now toggle the can-prompt flag @@ -539,7 +541,9 @@ TEST_F (ServiceTest, ConfirmationDisabledByBackend) ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-greeter")); ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.logout")); if (action_menuitem_exists ("indicator.reboot")) + { ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.reboot")); + } ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.power-off")); // cleanup @@ -572,7 +576,9 @@ TEST_F (ServiceTest, ConfirmationDisabledByUser) ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-screensaver")); ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.logout")); if (action_menuitem_exists ("indicator.reboot")) + { ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.reboot")); + } ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.power-off")); // now toggle the can-prompt flag @@ -586,7 +592,9 @@ TEST_F (ServiceTest, ConfirmationDisabledByUser) ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.switch-to-greeter")); ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.logout")); if (action_menuitem_exists ("indicator.reboot")) + { ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.reboot")); + } ASSERT_EQ (confirm, action_menuitem_label_is_ellipsized ("indicator.power-off")); // cleanup -- cgit v1.2.3