mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-25 15:43:13 +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
@@ -15,6 +15,7 @@
|
||||
#include <quic/client/state/ClientStateMachine.h>
|
||||
#include <quic/common/test/TestUtils.h>
|
||||
#include <quic/fizz/client/handshake/FizzClientQuicHandshakeContext.h>
|
||||
#include <quic/fizz/server/handshake/FizzServerQuicHandshakeContext.h>
|
||||
#include <quic/server/state/ServerStateMachine.h>
|
||||
|
||||
using namespace folly;
|
||||
@@ -52,6 +53,9 @@ class QuicStreamFunctionsTest : public Test {
|
||||
|
||||
class QuicServerStreamFunctionsTest : public Test {
|
||||
public:
|
||||
QuicServerStreamFunctionsTest()
|
||||
: conn(std::make_shared<FizzServerQuicHandshakeContext>()) {}
|
||||
|
||||
void SetUp() override {
|
||||
conn.flowControlState.peerAdvertisedInitialMaxStreamOffsetBidiLocal =
|
||||
kDefaultStreamWindowSize;
|
||||
@@ -1102,7 +1106,8 @@ TEST_F(QuicStreamFunctionsTest, IsBidirectionalStream) {
|
||||
TEST_F(QuicStreamFunctionsTest, IsSendingStream) {
|
||||
QuicClientConnectionState clientState(
|
||||
FizzClientQuicHandshakeContext::Builder().build());
|
||||
QuicServerConnectionState serverState;
|
||||
QuicServerConnectionState serverState(
|
||||
std::make_shared<FizzServerQuicHandshakeContext>());
|
||||
QuicNodeType nodeType;
|
||||
StreamId id;
|
||||
|
||||
@@ -1130,7 +1135,8 @@ TEST_F(QuicStreamFunctionsTest, IsSendingStream) {
|
||||
TEST_F(QuicStreamFunctionsTest, IsReceivingStream) {
|
||||
QuicClientConnectionState clientState(
|
||||
FizzClientQuicHandshakeContext::Builder().build());
|
||||
QuicServerConnectionState serverState;
|
||||
QuicServerConnectionState serverState(
|
||||
std::make_shared<FizzServerQuicHandshakeContext>());
|
||||
QuicNodeType nodeType;
|
||||
StreamId id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user