DescriptionAdding the ability to use a simulated clock for unit tests.
This will be useful for any tests that test objects with time-dependent
behavior. It will allow such tests to be written in such a way that their
outcome is more repeatable (less flaky), and will also allow such tests
to finish quicker. For example, a test for STUN timeout doesn't need to
wait the full timeout interval in real time; it can simply advance the
simulated clock.
BUG=webrtc:4925
R=pthatcher@webrtc.org
Committed: https://crrev.com/b3c6810be3283963db5779a50f3df957b5881f91
Cr-Commit-Position: refs/heads/master@{#12950}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Responding to juberti@'s comments and adding myself as owner to ownerless TODOs. #
Total comments: 19
Patch Set 3 : Responding to comments. Introducing TimeDelta, removing MacClock/PosixClock/WindowsClock. #Patch Set 4 : Removing errant ';' #Patch Set 5 : Adding TODOs. #Patch Set 6 : Merge with master #Patch Set 7 : Moving new file to correct .gyp file. #Patch Set 8 : Fixing TSAN error. #Patch Set 9 : Fixing ASan error (MessageQueueHandlers not being destroyed) #Patch Set 10 : Removing unused code #Patch Set 11 : Fixing compile warning. #
Messages
Total messages: 31 (13 generated)
|