commit | 5a000165d2646d4ce6a0dc236e55b8dc33a90d61 | [log] [tgz] |
---|---|---|
author | Sebastian Jansson <srte@webrtc.org> | Fri Apr 12 11:21:32 2019 +0200 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Apr 12 13:01:03 2019 +0000 |
tree | f5756da45019039fe7f1ca35e49ce678d883a9d4 | |
parent | e8cbf30231e9ecf097360857dc425bf19856e12c [diff] [blame] |
Cleanup: Using DCHECK comparison macros for unit types. This provides nicer error messages. Bug: webrtc:9883 Change-Id: I7664c12f34bec2ba46a4057b1f45958daf3944b8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132707 Reviewed-by: Åsa Persson <asapersson@webrtc.org> Commit-Queue: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27590}
diff --git a/test/time_controller/simulated_time_controller.cc b/test/time_controller/simulated_time_controller.cc index ba5e162..a592474 100644 --- a/test/time_controller/simulated_time_controller.cc +++ b/test/time_controller/simulated_time_controller.cc
@@ -382,7 +382,7 @@ void SimulatedTimeControllerImpl::AdvanceTime(Timestamp target_time) { rtc::CritScope time_lock(&time_lock_); - RTC_DCHECK(target_time >= current_time_); + RTC_DCHECK_GE(target_time, current_time_); current_time_ = target_time; }