Chromium Code Reviews
DescriptionMake RTCPeerConnectionHandlerTest use the webrtc signaling thread.
The MockPeerConnectionDependecyFactory creates a new thread to act as
the webrtc signaling thread, but the RTCPeerConnectionHandlerTest
overrode its signaling_thread() helper method to yield the current
thread. This meant that different components used different threads as
their webrtc signaling thread in RTCPeerConnectionHandlerTest.
This causes problems if you introduce code that relies on the main and
and the webrtc signaling thread being different threads or if you DCHECK
which thread you belong to depending on which component you ask for the
webrtc signaling thread.
Code updated to use the same thread as the webrtc signaling thread in
all cases. base::RunLoop().RunUntilIdle() has been replaced by a helper
method RunMessageLoopsUntilIdle() which makes sure both webrtc and main
thread message loops has a chance to execute.
BUG=705901
Review-Url: https://codereview.chromium.org/2924563002
Cr-Commit-Position: refs/heads/master@{#476987}
Committed: https://chromium.googlesource.com/chromium/src/+/7e5d04b9bd8981b6cabd916203aa32423f41d493
Patch Set 1 #
Messages
Total messages: 11 (7 generated)
|
||||||||||||||||||||||||||||