| Index: net/socket/socket_test_util.cc
|
| diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc
|
| index 148b11c5698927c210c7a8b46b7b0224313b3d03..475c6519dc4d50864e43c79d0b91f52fd2ba5bf1 100644
|
| --- a/net/socket/socket_test_util.cc
|
| +++ b/net/socket/socket_test_util.cc
|
| @@ -663,6 +663,12 @@ MockClientSocketFactory::CreateDatagramClientSocket(
|
| const RandIntCallback& rand_int_cb,
|
| net::NetLog* net_log,
|
| const net::NetLog::Source& source) {
|
| + // Socket connect is supposed to call for some random suggestions for ports.
|
| + // We call 3 times so that the quic_stream_factory will know this function
|
| + // was consulted (it has a DCHECK), but will not actually DCHECK the
|
| + // resulting ephemeral port (which we don't set).
|
| + for (int count = 3; count > 0; --count)
|
| + rand_int_cb.Run(1000, 2000);
|
| SocketDataProvider* data_provider = mock_data_.GetNext();
|
| scoped_ptr<MockUDPClientSocket> socket(
|
| new MockUDPClientSocket(data_provider, net_log));
|
| @@ -1803,6 +1809,12 @@ DeterministicMockClientSocketFactory::CreateDatagramClientSocket(
|
| const RandIntCallback& rand_int_cb,
|
| net::NetLog* net_log,
|
| const NetLog::Source& source) {
|
| + // Socket connect is supposed to call for some random suggestions for ports.
|
| + // We call 3 times so that the quic_stream_factory will know this function
|
| + // was consulted (it has a DCHECK), but will not actually DCHECK the
|
| + // resulting ephemeral port (which we don't set).
|
| + for (int count = 3; count > 0; --count)
|
| + rand_int_cb.Run(1000, 2000);
|
| DeterministicSocketData* data_provider = mock_data().GetNext();
|
| scoped_ptr<DeterministicMockUDPClientSocket> socket(
|
| new DeterministicMockUDPClientSocket(net_log, data_provider));
|
|
|