mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 13:17:36 +03:00
rename MaxDataFrame.ByteOffset to MaximumData
This commit is contained in:
parent
00f8028e52
commit
f4519cfd32
16 changed files with 32 additions and 32 deletions
|
@ -17,7 +17,7 @@ var _ = Describe("MAX_DATA frame", func() {
|
|||
b := bytes.NewReader(data)
|
||||
frame, err := parseMaxDataFrame(b, versionIETFFrames)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(frame.ByteOffset).To(Equal(protocol.ByteCount(0xdecafbad123456)))
|
||||
Expect(frame.MaximumData).To(Equal(protocol.ByteCount(0xdecafbad123456)))
|
||||
Expect(b.Len()).To(BeZero())
|
||||
})
|
||||
|
||||
|
@ -36,7 +36,7 @@ var _ = Describe("MAX_DATA frame", func() {
|
|||
Context("writing", func() {
|
||||
It("has proper min length", func() {
|
||||
f := &MaxDataFrame{
|
||||
ByteOffset: 0xdeadbeef,
|
||||
MaximumData: 0xdeadbeef,
|
||||
}
|
||||
Expect(f.Length(versionIETFFrames)).To(Equal(1 + utils.VarIntLen(0xdeadbeef)))
|
||||
})
|
||||
|
@ -44,7 +44,7 @@ var _ = Describe("MAX_DATA frame", func() {
|
|||
It("writes a MAX_DATA frame", func() {
|
||||
b := &bytes.Buffer{}
|
||||
f := &MaxDataFrame{
|
||||
ByteOffset: 0xdeadbeefcafe,
|
||||
MaximumData: 0xdeadbeefcafe,
|
||||
}
|
||||
err := f.Write(b, versionIETFFrames)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue