1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-08-08 09:42:06 +03:00

Pass FizzServerContext using FizzServerQuicHandshakeContext (#165)

Summary:
This remove one more fizz specific element from the common API

Depends on https://github.com/facebookincubator/mvfst/issues/162

Pull Request resolved: https://github.com/facebookincubator/mvfst/pull/165

Reviewed By: yangchi

Differential Revision: D23637314

Pulled By: xttjsn

fbshipit-source-id: a3436510accc37687f6e3ea770fd120fa314ecdc
This commit is contained in:
Amaury Séchet
2020-09-14 13:06:11 -07:00
committed by Facebook GitHub Bot
parent 05554a6a1e
commit a92dfc18eb
27 changed files with 196 additions and 139 deletions

View File

@@ -151,7 +151,7 @@ class QuicTransportFunctionsTest : public Test {
std::unique_ptr<QuicServerConnectionState> createConn() {
auto conn = std::make_unique<QuicServerConnectionState>(
std::make_shared<FizzServerQuicHandshakeContext>());
FizzServerQuicHandshakeContext::Builder().build());
conn->serverConnectionId = getTestConnectionId();
conn->clientConnectionId = getTestConnectionId();
conn->version = QuicVersion::MVFST;
@@ -1549,7 +1549,7 @@ TEST_F(QuicTransportFunctionsTest, WriteProbingOldData) {
TEST_F(QuicTransportFunctionsTest, WriteProbingCryptoData) {
QuicServerConnectionState conn(
std::make_shared<FizzServerQuicHandshakeContext>());
FizzServerQuicHandshakeContext::Builder().build());
conn.serverConnectionId = getTestConnectionId();
conn.clientConnectionId = getTestConnectionId();
// writeCryptoDataProbesToSocketForTest writes Initial LongHeader, thus it