mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
29 lines
829 B
Go
29 lines
829 B
Go
package wire
|
|
|
|
import (
|
|
"github.com/lucas-clemente/quic-go/internal/protocol"
|
|
"github.com/lucas-clemente/quic-go/internal/utils"
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
|
|
"testing"
|
|
)
|
|
|
|
func TestCrypto(t *testing.T) {
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "Wire Suite")
|
|
}
|
|
|
|
const (
|
|
// a QUIC version that uses big endian encoding
|
|
versionBigEndian = protocol.Version39
|
|
// a QUIC version that uses the MAX_DATA / MAX_STREAM_DATA and BLOCKED / STREAM_BLOCKED frames
|
|
versionMaxDataFrame = protocol.VersionTLS
|
|
)
|
|
|
|
var _ = BeforeSuite(func() {
|
|
Expect(utils.GetByteOrder(versionBigEndian)).To(Equal(utils.BigEndian))
|
|
Expect(utils.GetByteOrder(versionMaxDataFrame)).To(Equal(utils.BigEndian))
|
|
Expect(versionBigEndian.UsesMaxDataFrame()).To(BeFalse())
|
|
Expect(versionMaxDataFrame.UsesMaxDataFrame()).To(BeTrue())
|
|
})
|