introduce a UsesStopWaitingFrames() method for version numbers

This commit is contained in:
Marten Seemann
2018-03-02 16:00:11 +07:00
parent a1c9e706b0
commit 656dff6163
4 changed files with 15 additions and 5 deletions

View File

@@ -70,6 +70,11 @@ var _ = Describe("Version", func() {
Expect(VersionTLS.UsesIETFFrameFormat()).To(BeTrue())
})
It("tells if a version uses STOP_WAITING frames", func() {
Expect(Version39.UsesStopWaitingFrames()).To(BeTrue())
Expect(VersionTLS.UsesStopWaitingFrames()).To(BeFalse())
})
It("says if a stream contributes to connection-level flowcontrol, for gQUIC", func() {
Expect(Version39.StreamContributesToConnectionFlowControl(1)).To(BeFalse())
Expect(Version39.StreamContributesToConnectionFlowControl(2)).To(BeTrue())