blob: b1ddf6e069a6c3374f7f5a19b358926d8082c3c4 [file] [log] [blame]
// Copyright (c) 2019 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.
namespace quic {
// Returns a UDP port that is currently unused. Check-fails if none are
// available. May return 0 in which case the bind() call will cause the OS
// to use an unused port.
inline int QuicPickServerPortForTestsOrDie() {
return 0;
// Indicates that a specified port previously returned by
// QuicPickServerPortForTestsOrDie is no longer used.
inline void QuicRecyclePort(int /*port*/) {}
} // namespace quic