| Index: media/cast/test/utility/net_utility.h
|
| diff --git a/media/cast/test/utility/net_utility.h b/media/cast/test/utility/net_utility.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c1199be7a873f9f623c593915585ed13ca684460
|
| --- /dev/null
|
| +++ b/media/cast/test/utility/net_utility.h
|
| @@ -0,0 +1,18 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "net/base/ip_endpoint.h"
|
| +
|
| +namespace media {
|
| +namespace cast {
|
| +namespace test {
|
| +
|
| +// Determine a unused UDP port for the in-process receiver to listen on.
|
| +// Method: Bind a UDP socket on port 0, and then check which port the
|
| +// operating system assigned to it.
|
| +net::IPEndPoint GetFreeLocalPort();
|
| +
|
| +} // namespace test
|
| +} // namespace cast
|
| +} // namespace media
|
|
|