Using RTC_DCHECK for test validation is wrong to begin with (gets compiled out in non-debug builds, which measn we may miss validations), but becomes extra problematic when we include code with side-effects inside the DCHECK, which results in release-build tests having a different flow than intended Bug: webrtc:15572 Change-Id: I89d5b55f903b9d93fe4a929548d1b9fcde8941be Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/323182 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41005}