diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-21 10:03:52 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-21 10:22:31 +0100 |
commit | 1ace3aee71264279928a574ba44d75b7d8d0b4ba (patch) | |
tree | fd4f37ab24a533ea36a0f756947f50669893b17a /tests | |
parent | ba9a3978d407b63998acf2ed173fbdb965dcfc74 (diff) | |
download | ayatana-indicator-session-1ace3aee71264279928a574ba44d75b7d8d0b4ba.tar.gz ayatana-indicator-session-1ace3aee71264279928a574ba44d75b7d8d0b4ba.tar.bz2 ayatana-indicator-session-1ace3aee71264279928a574ba44d75b7d8d0b4ba.zip |
tests/test-service.c: Explicitly use curly braces for one-liner if statements.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-service.cc | 8 |
1 files changed, 8 insertions, 0 deletions
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 |