clockForTesting property

  1. @visibleForTesting
int Function()? clockForTesting
getter/setter pair

Replaces the session clock (epoch milliseconds) in tests, so a test can simulate a day. Null, the default, keeps the system clock.

Implementation

@visibleForTesting
int Function()? clockForTesting;