mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
add a RestoredTransportParameters method to the logging interface
This commit is contained in:
parent
96dbfbc320
commit
d04662a964
8 changed files with 44 additions and 0 deletions
|
@ -126,6 +126,13 @@ var _ = Describe("Tracing", func() {
|
|||
tracer.ReceivedTransportParameters(tp)
|
||||
})
|
||||
|
||||
It("traces the RestoredTransportParameters event", func() {
|
||||
tp := &wire.TransportParameters{InitialMaxData: 1337}
|
||||
tr1.EXPECT().RestoredTransportParameters(tp)
|
||||
tr2.EXPECT().RestoredTransportParameters(tp)
|
||||
tracer.RestoredTransportParameters(tp)
|
||||
})
|
||||
|
||||
It("traces the SentPacket event", func() {
|
||||
hdr := &ExtendedHeader{Header: Header{DestConnectionID: ConnectionID{1, 2, 3}}}
|
||||
ack := &AckFrame{AckRanges: []AckRange{{Smallest: 1, Largest: 10}}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue