rename AckFrame to AckFrameLegacy

This commit is contained in:
Marten Seemann 2016-06-18 22:06:42 +07:00
parent c01e16da71
commit 288cb9e143
13 changed files with 110 additions and 110 deletions

View file

@ -81,7 +81,7 @@ var _ = Describe("Packet unpacker", func() {
})
It("unpacks ack frames", func() {
f := &frames.AckFrame{
f := &frames.AckFrameLegacy{
LargestObserved: 0x13,
Entropy: 0x37,
}
@ -91,7 +91,7 @@ var _ = Describe("Packet unpacker", func() {
packet, err := unpacker.Unpack(hdrBin, hdr, r)
Expect(err).ToNot(HaveOccurred())
Expect(packet.frames).To(HaveLen(1))
readFrame := packet.frames[0].(*frames.AckFrame)
readFrame := packet.frames[0].(*frames.AckFrameLegacy)
Expect(readFrame.LargestObserved).To(Equal(protocol.PacketNumber(0x13)))
Expect(readFrame.Entropy).To(Equal(byte(0x37)))
})