MCPcopy Create free account
hub / github.com/anyrtcIO-Community/anyRTC-RTMP-OpenSource / SetClockForTesting

Function SetClockForTesting

webrtc/base/timeutils.cc:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33ClockInterface* g_clock = nullptr;
34
35ClockInterface* SetClockForTesting(ClockInterface* clock) {
36 ClockInterface* prev = g_clock;
37 g_clock = clock;
38 return prev;
39}
40
41uint64_t SystemTimeNanos() {
42 int64_t ticks;

Callers 2

ScopedFakeClockMethod · 0.85
~ScopedFakeClockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected