TimeController: Rename Sleep to AdvanceTime.
This change renames TimeController's Sleep method to AdvanceTime, unifying
the same name with the same semantic as for downstream projects.
Bug: webrtc:11154
Change-Id: Id79bcf0eafcd0b47a76407ba220479d84df5a736
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161092
Commit-Queue: Markus Handell <handellm@webrtc.org>
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29989}
diff --git a/api/test/time_controller.h b/api/test/time_controller.h
index 4723716..616622b 100644
--- a/api/test/time_controller.h
+++ b/api/test/time_controller.h
@@ -39,7 +39,7 @@
const char* thread_name) = 0;
// Allow task queues and process threads created by this instance to execute
// for the given |duration|.
- virtual void Sleep(TimeDelta duration) = 0;
+ virtual void AdvanceTime(TimeDelta duration) = 0;
// Execute closure in an implementation defined scope where rtc::Event::Wait
// might yield to execute other tasks. This allows doing blocking waits on
// tasks on other task queues froma a task queue without deadlocking.