Qingsi Wang 5d16d7fd52 Add a DCHECK for null port in FakePortAllocator.
If the socket server of the thread where FakePortAllocator lives is not
configured to be a VirtualSocketServer, there is a chance that we have a
null port in FakePortAllocator::StartGettingPort after creating the test
UDP port (for example, no permission to create a real socket if using a
PhysicalSocketServer), and subsequently this results in a crash when
connecting a signal in the port to a slot.

Bug: webrtc:9406
Change-Id: I1ba4526f7b9e104bed556f61d9348edc426fc1fc
Reviewed-on: https://webrtc-review.googlesource.com/83480
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Commit-Queue: Qingsi Wang <qingsi@google.com>
Cr-Commit-Position: refs/heads/master@{#23606}
2018-06-14 00:37:15 +00:00
..
2018-05-31 08:42:10 +00:00
2018-05-31 08:42:10 +00:00
2017-12-06 21:33:36 +00:00
2017-12-19 07:09:19 +00:00
2017-12-06 21:33:36 +00:00
2017-12-06 21:33:36 +00:00
2017-12-06 21:33:36 +00:00
2017-12-06 21:33:36 +00:00
2017-12-06 21:33:36 +00:00