testutils: expose aliases for all frame types (#4293)

This commit is contained in:
Marten Seemann 2024-01-31 12:47:03 +07:00 committed by GitHub
parent 86441f1fdc
commit 72c79dbdf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

26
testutils/frames.go Normal file
View file

@ -0,0 +1,26 @@
package testutils
import "github.com/quic-go/quic-go/internal/wire"
type (
Frame = wire.Frame
AckFrame = wire.AckFrame
ConnectionCloseFrame = wire.ConnectionCloseFrame
CryptoFrame = wire.CryptoFrame
DataBlockedFrame = wire.DataBlockedFrame
HandshakeDoneFrame = wire.HandshakeDoneFrame
MaxDataFrame = wire.MaxDataFrame
MaxStreamDataFrame = wire.MaxStreamDataFrame
MaxStreamsFrame = wire.MaxStreamsFrame
NewConnectionIDFrame = wire.NewConnectionIDFrame
NewTokenFrame = wire.NewTokenFrame
PathChallengeFrame = wire.PathChallengeFrame
PathResponseFrame = wire.PathResponseFrame
PingFrame = wire.PingFrame
ResetStreamFrame = wire.ResetStreamFrame
RetireConnectionIDFrame = wire.RetireConnectionIDFrame
StopSendingFrame = wire.StopSendingFrame
StreamDataBlockedFrame = wire.StreamDataBlockedFrame
StreamFrame = wire.StreamFrame
StreamsBlockedFrame = wire.StreamsBlockedFrame
)