mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-25 15:43:13 +03:00
Remove ServerHandshake::getContext (#167)
Summary: We can remove the reference to the context in the handshake and use `state_.context()` instead. Depends on https://github.com/facebookincubator/mvfst/issues/165 Pull Request resolved: https://github.com/facebookincubator/mvfst/pull/167 Reviewed By: yangchi Differential Revision: D23658708 Pulled By: xttjsn fbshipit-source-id: 8cc42ea7677317b2bba562ba88d00a71a830bde0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6eb3e7837f
commit
fc5ccd14b2
@@ -28,6 +28,7 @@
|
||||
#include <quic/fizz/client/handshake/FizzClientExtensions.h>
|
||||
#include <quic/fizz/handshake/FizzBridge.h>
|
||||
#include <quic/fizz/handshake/QuicFizzFactory.h>
|
||||
#include <quic/fizz/server/handshake/FizzServerHandshake.h>
|
||||
#include <quic/fizz/server/handshake/FizzServerQuicHandshakeContext.h>
|
||||
#include <quic/handshake/HandshakeLayer.h>
|
||||
#include <quic/server/handshake/AppToken.h>
|
||||
@@ -836,9 +837,10 @@ TEST_F(ServerHandshakeZeroRttTest, TestResumption) {
|
||||
}
|
||||
|
||||
TEST_F(ServerHandshakeZeroRttTest, TestRejectZeroRttNotEnabled) {
|
||||
auto realServerCtx = handshake->getContext();
|
||||
auto realServerCtx =
|
||||
dynamic_cast<FizzServerHandshake*>(handshake)->getContext();
|
||||
auto nonConstServerCtx =
|
||||
const_cast<fizz::server::FizzServerContext*>(realServerCtx.get());
|
||||
const_cast<fizz::server::FizzServerContext*>(realServerCtx);
|
||||
nonConstServerCtx->setEarlyDataSettings(
|
||||
false, fizz::server::ClockSkewTolerance(), nullptr);
|
||||
EXPECT_CALL(*validator_, validate(_)).Times(0);
|
||||
|
||||
Reference in New Issue
Block a user