chrome/browser/chromeos/power/session_length_limiter_unittest.cc
// Creates a SessionLengthLimiter after setting a limit. Verifies that the
// limiter starts a timer and that when the session length reaches the limit,
// the session is terminated.
Creates a SessionLengthLimiter after setting a limit. Verifies that the
limiter starts a timer and that when the session length reaches the limit,
the session is terminated.
Creates a SessionLengthLimiter after setting a limit . Verifies that the limiter starts a timer and that when the session length reaches the limit the session is terminated .
TEST_F(SessionLengthLimiterTest, RunWithSessionLengthLimit) {
  base::ThreadTaskRunnerHandle runner_handler(runner_);
  SetSessionLengthLimitPref(60 * 1000);  
  CreateSessionLengthLimiter(false);
  while (*remaining_ > kZeroTimeDelta)
    VerifyTimerTick();
  ExpectStopSession();
  VerifyTimerTick();
}
TEST_F ( SessionLengthLimiterTest , RunWithSessionLengthLimit ) { base :: ThreadTaskRunnerHandle runner_handler ( runner_ ) ; SetSessionLengthLimitPref ( 60 * 1000 ) ; CreateSessionLengthLimiter ( false ) ; while ( * remaining_ > kZeroTimeDelta ) VerifyTimerTick ( ) ; ExpectStopSession ( ) ; VerifyTimerTick ( ) ; }
Creates a SessionLengthLimiter after setting a limit.
Creates a SessionLengthLimiter after setting a limit .
// Set a 60 second session time limit. // 60 seconds. // Create a SessionLengthLimiter. // Check timer ticks until the remaining session time reaches zero. // Check that the next timer tick leads to the session being terminated.