rename MaxDataFrame.ByteOffset to MaximumData

This commit is contained in:
Marten Seemann 2020-07-02 16:23:25 +07:00
parent 00f8028e52
commit f4519cfd32
16 changed files with 32 additions and 32 deletions

View file

@ -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())