/*
 *  Copyright 2017 The WebRTC Project Authors. All rights reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#include "p2p/base/port_interface.h"

#include <string>

#include "absl/strings/string_view.h"

namespace cricket {

PortInterface::PortInterface() = default;

PortInterface::~PortInterface() = default;

bool PortInterface::SupportsProtocol(const std::string& protocol) const {
  return SupportsProtocol(absl::string_view(protocol));
}

}  // namespace cricket
