Index: webrtc/base/timeutils.h |
diff --git a/webrtc/base/timeutils.h b/webrtc/base/timeutils.h |
index 113793ade3c81567a317ad7a3669bc08d3aa72c9..78ebacee38df5087737de039fa20a6e8c485c9f6 100644 |
--- a/webrtc/base/timeutils.h |
+++ b/webrtc/base/timeutils.h |
@@ -39,10 +39,8 @@ |
// Sets the global source of time. This is useful mainly for unit tests. |
// |
-// Returns the previously set ClockInterface, or nullptr if none is set. |
-// |
-// Does not transfer ownership of the clock. SetClockForTesting(nullptr) |
-// should be called before the ClockInterface is deleted. |
+// Does not transfer ownership of the clock. |
+// SetClock(nullptr) should be called before the ClockInterface is deleted. |
// |
// This method is not thread-safe; it should only be used when no other thread |
// is running (for example, at the start/end of a unit test, or start/end of |
@@ -51,7 +49,7 @@ |
// TODO(deadbeef): Instead of having functions that access this global |
// ClockInterface, we may want to pass the ClockInterface into everything |
// that uses it, eliminating the need for a global variable and this function. |
-ClockInterface* SetClockForTesting(ClockInterface* clock); |
+void SetClock(ClockInterface* clock); |
// Returns the current time in milliseconds in 32 bits. |
uint32_t Time32(); |