Lines Matching full:watchdog

1 #include "watchdog.hpp"
15 namespace watchdog namespace
23 // Test Watchdog functionality
35 wdog(std::make_unique<Watchdog>( in WdogTest()
36 bus, TEST_PATH, event, Watchdog::ActionTargetMap(), std::nullopt, in WdogTest()
43 // Initially the watchdog would be disabled in WdogTest()
53 // Watchdog object
54 std::unique_ptr<Watchdog> wdog;
65 // Returns how long it took for the current watchdog timer to be
88 /** @brief Make sure that watchdog is started and not enabled */
98 auto newAction = Watchdog::Action::PowerOff; in TEST_F()
117 /** @brief Make sure that watchdog is started and enabled */
137 /** @brief Make sure that watchdog is started and enabled.
138 * Later, disable watchdog
153 /** @brief Make sure that watchdog is started and enabled.
179 /** @brief Make sure that watchdog is started and enabled.
181 * and then expect the watchdog to expire in 5 quantums
245 /** @brief Make sure that watchdog is started and enabled.
262 /** @brief Make sure the watchdog is started and enabled with a fallback
264 * Make sure that fallback runs to completion and ensure the watchdog
277 Watchdog::Fallback fallback; in TEST_F()
278 fallback.action = Watchdog::Action::PowerOff; in TEST_F()
282 wdog = std::make_unique<Watchdog>(bus, TEST_PATH, event, in TEST_F()
283 Watchdog::ActionTargetMap(), fallback); in TEST_F()
306 EXPECT_EQ(Watchdog::Action::None, in TEST_F()
307 wdog->expireAction(Watchdog::Action::None)); in TEST_F()
329 // We should now have disabled the watchdog after the fallback expires in TEST_F()
335 // Make sure enabling the watchdog again works in TEST_F()
345 /** @brief Make sure the watchdog is started and enabled with a fallback
347 * Make sure that we can re-enable the watchdog during fallback
359 Watchdog::Fallback fallback; in TEST_F()
360 fallback.action = Watchdog::Action::PowerOff; in TEST_F()
364 wdog = std::make_unique<Watchdog>(bus, TEST_PATH, event, in TEST_F()
365 Watchdog::ActionTargetMap(), fallback); in TEST_F()
395 /** @brief Make sure the watchdog is started and enabled with a fallback
398 * will enable the primary watchdog with primary interval.
412 Watchdog::Fallback fallback; in TEST_F()
413 fallback.action = Watchdog::Action::PowerOff; in TEST_F()
417 wdog = std::make_unique<Watchdog>(bus, TEST_PATH, event, in TEST_F()
418 Watchdog::ActionTargetMap(), fallback); in TEST_F()
452 /** @brief Make sure the watchdog is started and with a fallback without
454 * Then enable the watchdog
456 * Make sure that fallback runs to completion and ensure the watchdog
469 Watchdog::Fallback fallback; in TEST_F()
470 fallback.action = Watchdog::Action::PowerOff; in TEST_F()
474 wdog = std::make_unique<Watchdog>(bus, TEST_PATH, event, in TEST_F()
475 Watchdog::ActionTargetMap(), fallback, in TEST_F()
536 * Initiate default Watchdog in order to get the default
538 * Initiate watchdog with minInterval greater than default
544 // Initiate default Watchdog and get the default interval value. in TEST_F()
546 wdog = std::make_unique<Watchdog>(bus, TEST_PATH, event); in TEST_F()
552 // We initiate a new Watchdog with min interval greater than the default in TEST_F()
555 wdog = std::make_unique<Watchdog>(bus, TEST_PATH, event, in TEST_F()
556 Watchdog::ActionTargetMap(), std::nullopt, in TEST_F()
579 } // namespace watchdog