DCHECK_CURRENTLY_ON misleading in web_contents_video_capture_device_unittest.cc |
||
Issue descriptionVersion: 62.0.3167.0 DCHECK_CURRENTLY_ON will succeed for any thread label when run with TestBrowserThreadBundle with no additional threads because TestBrowserThreadBundle runs everything in one thread and MessageLoop.
,
Aug 3 2017
I'm not sure that it's misleading: The code on line 545 assumes that the current task runner is the one associated with BrowserThread::UI because it wants to block the current task runner while running a nested run loop. Regardless of what thread we're on, it's the event loop in the current call stack that matters. Worst case scenario is that the DCHECKs have no effect, but are at least documentative. ;-) Feel free to re-open if you disagree, or there's something I'm missing here. |
||
►
Sign in to add a comment |
||
Comment 1 by guidou@chromium.org
, Aug 2 2017Status: Assigned (was: Untriaged)