xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/tools/quic_server_factory.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright (c) 2019 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 "quiche/quic/tools/quic_server_factory.h"
6 
7 #include <utility>
8 
9 #include "quiche/quic/tools/quic_server.h"
10 
11 namespace quic {
12 
CreateServer(quic::QuicSimpleServerBackend * backend,std::unique_ptr<quic::ProofSource> proof_source,const quic::ParsedQuicVersionVector & supported_versions)13 std::unique_ptr<quic::QuicSpdyServerBase> QuicServerFactory::CreateServer(
14     quic::QuicSimpleServerBackend* backend,
15     std::unique_ptr<quic::ProofSource> proof_source,
16     const quic::ParsedQuicVersionVector& supported_versions) {
17   return std::make_unique<quic::QuicServer>(std::move(proof_source), backend,
18                                             supported_versions);
19 }
20 
21 }  // namespace quic
22