Lines Matching full:interval

42         wdog->interval(milliseconds(defaultInterval).count());  in WdogTest()
56 // This is the default interval as given in Interface definition
101 EXPECT_EQ(newIntervalMs, wdog->interval(newIntervalMs)); in TEST_F()
104 EXPECT_EQ(newIntervalMs, wdog->interval()); in TEST_F()
125 // Get the configured interval in TEST_F()
206 /** @brief Make sure the Interval can be updated directly.
212 EXPECT_EQ(expireTimeMs, wdog->interval(expireTimeMs)); in TEST_F()
214 // Expect an update in the Interval in TEST_F()
215 EXPECT_EQ(expireTimeMs, wdog->interval()); in TEST_F()
218 /** @brief Make sure the Interval can be updated while the timer is running.
222 const auto oldInterval = milliseconds(wdog->interval()); in TEST_F()
230 milliseconds(wdog->interval(milliseconds(newInterval).count()))); in TEST_F()
232 // Expect only the interval to update in TEST_F()
236 EXPECT_EQ(newInterval, milliseconds(wdog->interval())); in TEST_F()
238 // Expect reset to use the new interval in TEST_F()
246 * Wait default interval quantums and make sure that wdog has died
275 // The interval is set to be noticeably different from the default in TEST_F()
279 fallback.interval = static_cast<uint64_t>(fallbackIntervalMs); in TEST_F()
284 EXPECT_EQ(primaryInterval, milliseconds(wdog->interval(primaryIntervalMs))); in TEST_F()
302 // We should still be ticking in fallback when setting action or interval in TEST_F()
305 EXPECT_EQ(newInterval, milliseconds(wdog->interval(newIntervalMs))); in TEST_F()
316 // fallback interval in TEST_F()
317 EXPECT_EQ(fallback.interval, wdog->timeRemaining(primaryInterval.count())); in TEST_F()
357 // The interval is set to be noticeably different from the default in TEST_F()
361 fallback.interval = static_cast<uint64_t>(fallbackIntervalMs); in TEST_F()
366 EXPECT_EQ(primaryInterval, milliseconds(wdog->interval(primaryIntervalMs))); in TEST_F()
397 * Make sure that changing the primary interval and calling reset timer
398 * will enable the primary watchdog with primary interval.
410 // The interval is set to be noticeably different from the default in TEST_F()
414 fallback.interval = static_cast<uint64_t>(fallbackIntervalMs); in TEST_F()
419 EXPECT_EQ(primaryInterval, milliseconds(wdog->interval(primaryIntervalMs))); in TEST_F()
439 // Setting the interval should take effect once resetTimer re-enables wdog in TEST_F()
440 EXPECT_EQ(newIntervalMs, wdog->interval(newIntervalMs)); in TEST_F()
467 // The interval is set to be noticeably different from the default in TEST_F()
471 fallback.interval = static_cast<uint64_t>(fallbackIntervalMs); in TEST_F()
478 // Make sure default interval is biggger than min interval in TEST_F()
480 milliseconds(wdog->interval())); in TEST_F()
482 EXPECT_EQ(primaryInterval, milliseconds(wdog->interval(primaryIntervalMs))); in TEST_F()
517 /** @brief Test minimal interval
518 * The minimal interval was set 2 seconds
519 * Test that when setting interval to 1s , it is still returning 2s
527 // Check first that the current interval is greater than minInterval in TEST_F()
528 EXPECT_LT(minIntervalMs, wdog->interval()); in TEST_F()
529 // Check that the interval was not set to smaller value than minInterval in TEST_F()
530 EXPECT_EQ(minIntervalMs, wdog->interval(newIntervalMs)); in TEST_F()
531 // Check that the interval was not set to smaller value than minInterval in TEST_F()
532 EXPECT_EQ(minIntervalMs, wdog->interval()); in TEST_F()
535 /** @brief Test minimal interval
537 * interval.
539 * interval, and make sure the default interval was set to the
544 // Initiate default Watchdog and get the default interval value. in TEST_F()
547 auto defaultIntervalMs = wdog->interval(); in TEST_F()
552 // We initiate a new Watchdog with min interval greater than the default in TEST_F()
558 // Check that the interval was set to the minInterval in TEST_F()
559 EXPECT_EQ(minIntervalMs, wdog->interval()); in TEST_F()