1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "net/base/ip_endpoint.h" 6 7 namespace media { 8 namespace cast { 9 namespace test { 10 11 // Determine a unused UDP port for the in-process receiver to listen on. 12 // Method: Bind a UDP socket on port 0, and then check which port the 13 // operating system assigned to it. 14 net::IPEndPoint GetFreeLocalPort(); 15 16 } // namespace test 17 } // namespace cast 18 } // namespace media 19