class FakeSystemClock

Defined at line 22 of file ../../src/cobalt/bin/testing/fake_clock.h

An implementation of SystemClockInterface that returns a configurable Unix

timestamp in seconds. For use in tests.

Public Methods

void FakeSystemClock (int64_t now_secs)

Defined at line 24 of file ../../src/cobalt/bin/testing/fake_clock.h

std::chrono::system_clock::time_point now ()

Defined at line 26 of file ../../src/cobalt/bin/testing/fake_clock.h

void SetNowSecs (int64_t now_secs)

Defined at line 30 of file ../../src/cobalt/bin/testing/fake_clock.h