return a coalesced packet when packing a probe packet

The coalesced packet will only consist of a single packet, but this will
make the refactoring easier.
This commit is contained in:
Marten Seemann 2022-09-04 13:08:57 +03:00
parent 7ad58d2426
commit 9e5f92b561
5 changed files with 75 additions and 49 deletions

View file

@ -50,10 +50,10 @@ func (mr *MockPackerMockRecorder) HandleTransportParameters(arg0 interface{}) *g
}
// MaybePackProbePacket mocks base method.
func (m *MockPacker) MaybePackProbePacket(arg0 protocol.EncryptionLevel) (*packedPacket, error) {
func (m *MockPacker) MaybePackProbePacket(arg0 protocol.EncryptionLevel) (*coalescedPacket, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MaybePackProbePacket", arg0)
ret0, _ := ret[0].(*packedPacket)
ret0, _ := ret[0].(*coalescedPacket)
ret1, _ := ret[1].(error)
return ret0, ret1
}