mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
simplify pruning of old ACK ranges
This commit is contained in:
parent
f317a471bb
commit
a5fc72047e
11 changed files with 94 additions and 50 deletions
49
internal/ackhandler/mock_sent_packet_tracker_test.go
Normal file
49
internal/ackhandler/mock_sent_packet_tracker_test.go
Normal file
|
@ -0,0 +1,49 @@
|
|||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/lucas-clemente/quic-go/internal/ackhandler (interfaces: SentPacketTracker)
|
||||
|
||||
// Package ackhandler is a generated GoMock package.
|
||||
package ackhandler
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
protocol "github.com/lucas-clemente/quic-go/internal/protocol"
|
||||
)
|
||||
|
||||
// MockSentPacketTracker is a mock of SentPacketTracker interface
|
||||
type MockSentPacketTracker struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockSentPacketTrackerMockRecorder
|
||||
}
|
||||
|
||||
// MockSentPacketTrackerMockRecorder is the mock recorder for MockSentPacketTracker
|
||||
type MockSentPacketTrackerMockRecorder struct {
|
||||
mock *MockSentPacketTracker
|
||||
}
|
||||
|
||||
// NewMockSentPacketTracker creates a new mock instance
|
||||
func NewMockSentPacketTracker(ctrl *gomock.Controller) *MockSentPacketTracker {
|
||||
mock := &MockSentPacketTracker{ctrl: ctrl}
|
||||
mock.recorder = &MockSentPacketTrackerMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
func (m *MockSentPacketTracker) EXPECT() *MockSentPacketTrackerMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// GetLowestPacketNotConfirmedAcked mocks base method
|
||||
func (m *MockSentPacketTracker) GetLowestPacketNotConfirmedAcked() protocol.PacketNumber {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetLowestPacketNotConfirmedAcked")
|
||||
ret0, _ := ret[0].(protocol.PacketNumber)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetLowestPacketNotConfirmedAcked indicates an expected call of GetLowestPacketNotConfirmedAcked
|
||||
func (mr *MockSentPacketTrackerMockRecorder) GetLowestPacketNotConfirmedAcked() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLowestPacketNotConfirmedAcked", reflect.TypeOf((*MockSentPacketTracker)(nil).GetLowestPacketNotConfirmedAcked))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue