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