pseudotcp: Allow the ‘current’ time to be set
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 6 Aug 2014 14:37:47 +0000 (15:37 +0100)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 21 Aug 2014 18:33:11 +0000 (14:33 -0400)
commite87f334a3846641acc9817b424561239acc2538e
treeb0c7154b02fe07958c25395bc3d3e5b5d390af02
parent6b6983e1f15f09c4feccbe797cb956d0395a4917
pseudotcp: Allow the ‘current’ time to be set

This is needed for the upcoming new test suite for pseudo-TCP. It
shouldn’t be used in normal code — only in tests.

Ideally, the pseudo-TCP code should originally never have called
g_get_monotonic_time() itself, and should have always taken a time
parameter from the caller; then it would be more testable.
Unfortunately, API guarantees prevent this from being changed now.
agent/pseudotcp.c
agent/pseudotcp.h
docs/reference/libnice/libnice-sections.txt