Index: chrome/browser/extensions/api/cast_streaming/performance_test.cc |
diff --git a/chrome/browser/extensions/api/cast_streaming/performance_test.cc b/chrome/browser/extensions/api/cast_streaming/performance_test.cc |
index 2615d3f123685aa9c4769da0fd32693758ea4f3b..32b360cc8fff21445f16c827e9e264caebe1a3de 100644 |
--- a/chrome/browser/extensions/api/cast_streaming/performance_test.cc |
+++ b/chrome/browser/extensions/api/cast_streaming/performance_test.cc |
@@ -48,7 +48,7 @@ |
#include "net/base/net_errors.h" |
#include "net/base/net_util.h" |
#include "net/base/rand_callback.h" |
-#include "net/udp/udp_socket.h" |
+#include "net/udp/udp_server_socket.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "testing/perf/perf_test.h" |
#include "ui/compositor/compositor_switches.h" |
@@ -343,13 +343,10 @@ class CastV2PerformanceTest |
localhost.push_back(0); |
localhost.push_back(0); |
localhost.push_back(1); |
- scoped_ptr<net::UDPSocket> receive_socket( |
- new net::UDPSocket(net::DatagramSocket::DEFAULT_BIND, |
- net::RandIntCallback(), |
- NULL, |
- net::NetLog::Source())); |
+ scoped_ptr<net::UDPServerSocket> receive_socket( |
+ new net::UDPServerSocket(NULL, net::NetLog::Source())); |
receive_socket->AllowAddressReuse(); |
- CHECK_EQ(net::OK, receive_socket->Bind(net::IPEndPoint(localhost, 0))); |
+ CHECK_EQ(net::OK, receive_socket->Listen(net::IPEndPoint(localhost, 0))); |
net::IPEndPoint endpoint; |
CHECK_EQ(net::OK, receive_socket->GetLocalAddress(&endpoint)); |
return endpoint; |