| 38 | } |
| 39 | |
| 40 | static void CheckNotification(const Checkable::Ptr& checkable, bool expected, NotificationType type = NotificationRecovery) |
| 41 | { |
| 42 | BOOST_CHECK((expected && checkable->GetExtension("requested_notifications").ToBool()) || (!expected && !checkable->GetExtension("requested_notifications").ToBool())); |
| 43 | |
| 44 | if (expected && checkable->GetExtension("requested_notifications").ToBool()) |
| 45 | BOOST_CHECK(checkable->GetExtension("notification_type") == type); |
| 46 | |
| 47 | checkable->SetExtension("requested_notifications", false); |
| 48 | } |
| 49 | |
| 50 | BOOST_AUTO_TEST_CASE(host_1attempt) |
| 51 | { |
no test coverage detected