The problem is that in some opt builds we remove RTC_DCHECK, and hence the test that expects death through RTC_DCHECK fails. Adding RTC_DCHECK_IS_ON ensures that test is coupled with builds that include RTC_DCHECK.
Bug: webrtc:358039777
Change-Id: I7721849dc76ce976ac4a084273cedad44f96fef2
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/366524
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43386}