mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-06 22:22:38 +03:00
Start splitting the fizz specific parts of the server (#160)
Summary: This is following a similar pattern than what was done for the client side. Pull Request resolved: https://github.com/facebookincubator/mvfst/pull/160 Reviewed By: yangchi Differential Revision: D23560951 Pulled By: xttjsn fbshipit-source-id: 351417cbfa3230112fff4c4de59b307f88389cf6
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a5619effd6
commit
04c63839e4
@@ -11,6 +11,7 @@
|
||||
#include <folly/io/async/test/MockAsyncUDPSocket.h>
|
||||
#include <quic/api/test/Mocks.h>
|
||||
#include <quic/common/test/TestUtils.h>
|
||||
#include <quic/fizz/server/handshake/FizzServerQuicHandshakeContext.h>
|
||||
#include <quic/logging/FileQLogger.h>
|
||||
#include <quic/logging/QLoggerConstants.h>
|
||||
#include <quic/server/state/ServerStateMachine.h>
|
||||
@@ -149,7 +150,8 @@ class QuicTransportFunctionsTest : public Test {
|
||||
}
|
||||
|
||||
std::unique_ptr<QuicServerConnectionState> createConn() {
|
||||
auto conn = std::make_unique<QuicServerConnectionState>();
|
||||
auto conn = std::make_unique<QuicServerConnectionState>(
|
||||
std::make_shared<FizzServerQuicHandshakeContext>());
|
||||
conn->serverConnectionId = getTestConnectionId();
|
||||
conn->clientConnectionId = getTestConnectionId();
|
||||
conn->version = QuicVersion::MVFST;
|
||||
@@ -1555,7 +1557,8 @@ TEST_F(QuicTransportFunctionsTest, WriteProbingOldData) {
|
||||
}
|
||||
|
||||
TEST_F(QuicTransportFunctionsTest, WriteProbingCryptoData) {
|
||||
QuicServerConnectionState conn;
|
||||
QuicServerConnectionState conn(
|
||||
std::make_shared<FizzServerQuicHandshakeContext>());
|
||||
conn.serverConnectionId = getTestConnectionId();
|
||||
conn.clientConnectionId = getTestConnectionId();
|
||||
// writeCryptoDataProbesToSocketForTest writes Initial LongHeader, thus it
|
||||
|
Reference in New Issue
Block a user