github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/internal/ackhandler/mock_sent_packet_tracker_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler (interfaces: SentPacketTracker)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package ackhandler -destination mock_sent_packet_tracker_test.go github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler SentPacketTracker
     7  //
     8  // Package ackhandler is a generated GoMock package.
     9  package ackhandler
    10  
    11  import (
    12  	reflect "reflect"
    13  
    14  	protocol "github.com/danielpfeifer02/quic-go-prio-packs/internal/protocol"
    15  	gomock "go.uber.org/mock/gomock"
    16  )
    17  
    18  // MockSentPacketTracker is a mock of SentPacketTracker interface.
    19  type MockSentPacketTracker struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockSentPacketTrackerMockRecorder
    22  }
    23  
    24  // MockSentPacketTrackerMockRecorder is the mock recorder for MockSentPacketTracker.
    25  type MockSentPacketTrackerMockRecorder struct {
    26  	mock *MockSentPacketTracker
    27  }
    28  
    29  // NewMockSentPacketTracker creates a new mock instance.
    30  func NewMockSentPacketTracker(ctrl *gomock.Controller) *MockSentPacketTracker {
    31  	mock := &MockSentPacketTracker{ctrl: ctrl}
    32  	mock.recorder = &MockSentPacketTrackerMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockSentPacketTracker) EXPECT() *MockSentPacketTrackerMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // GetLowestPacketNotConfirmedAcked mocks base method.
    42  func (m *MockSentPacketTracker) GetLowestPacketNotConfirmedAcked() protocol.PacketNumber {
    43  	m.ctrl.T.Helper()
    44  	ret := m.ctrl.Call(m, "GetLowestPacketNotConfirmedAcked")
    45  	ret0, _ := ret[0].(protocol.PacketNumber)
    46  	return ret0
    47  }
    48  
    49  // GetLowestPacketNotConfirmedAcked indicates an expected call of GetLowestPacketNotConfirmedAcked.
    50  func (mr *MockSentPacketTrackerMockRecorder) GetLowestPacketNotConfirmedAcked() *SentPacketTrackerGetLowestPacketNotConfirmedAckedCall {
    51  	mr.mock.ctrl.T.Helper()
    52  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLowestPacketNotConfirmedAcked", reflect.TypeOf((*MockSentPacketTracker)(nil).GetLowestPacketNotConfirmedAcked))
    53  	return &SentPacketTrackerGetLowestPacketNotConfirmedAckedCall{Call: call}
    54  }
    55  
    56  // SentPacketTrackerGetLowestPacketNotConfirmedAckedCall wrap *gomock.Call
    57  type SentPacketTrackerGetLowestPacketNotConfirmedAckedCall struct {
    58  	*gomock.Call
    59  }
    60  
    61  // Return rewrite *gomock.Call.Return
    62  func (c *SentPacketTrackerGetLowestPacketNotConfirmedAckedCall) Return(arg0 protocol.PacketNumber) *SentPacketTrackerGetLowestPacketNotConfirmedAckedCall {
    63  	c.Call = c.Call.Return(arg0)
    64  	return c
    65  }
    66  
    67  // Do rewrite *gomock.Call.Do
    68  func (c *SentPacketTrackerGetLowestPacketNotConfirmedAckedCall) Do(f func() protocol.PacketNumber) *SentPacketTrackerGetLowestPacketNotConfirmedAckedCall {
    69  	c.Call = c.Call.Do(f)
    70  	return c
    71  }
    72  
    73  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    74  func (c *SentPacketTrackerGetLowestPacketNotConfirmedAckedCall) DoAndReturn(f func() protocol.PacketNumber) *SentPacketTrackerGetLowestPacketNotConfirmedAckedCall {
    75  	c.Call = c.Call.DoAndReturn(f)
    76  	return c
    77  }
    78  
    79  // ReceivedPacket mocks base method.
    80  func (m *MockSentPacketTracker) ReceivedPacket(arg0 protocol.EncryptionLevel) {
    81  	m.ctrl.T.Helper()
    82  	m.ctrl.Call(m, "ReceivedPacket", arg0)
    83  }
    84  
    85  // ReceivedPacket indicates an expected call of ReceivedPacket.
    86  func (mr *MockSentPacketTrackerMockRecorder) ReceivedPacket(arg0 any) *SentPacketTrackerReceivedPacketCall {
    87  	mr.mock.ctrl.T.Helper()
    88  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedPacket", reflect.TypeOf((*MockSentPacketTracker)(nil).ReceivedPacket), arg0)
    89  	return &SentPacketTrackerReceivedPacketCall{Call: call}
    90  }
    91  
    92  // SentPacketTrackerReceivedPacketCall wrap *gomock.Call
    93  type SentPacketTrackerReceivedPacketCall struct {
    94  	*gomock.Call
    95  }
    96  
    97  // Return rewrite *gomock.Call.Return
    98  func (c *SentPacketTrackerReceivedPacketCall) Return() *SentPacketTrackerReceivedPacketCall {
    99  	c.Call = c.Call.Return()
   100  	return c
   101  }
   102  
   103  // Do rewrite *gomock.Call.Do
   104  func (c *SentPacketTrackerReceivedPacketCall) Do(f func(protocol.EncryptionLevel)) *SentPacketTrackerReceivedPacketCall {
   105  	c.Call = c.Call.Do(f)
   106  	return c
   107  }
   108  
   109  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   110  func (c *SentPacketTrackerReceivedPacketCall) DoAndReturn(f func(protocol.EncryptionLevel)) *SentPacketTrackerReceivedPacketCall {
   111  	c.Call = c.Call.DoAndReturn(f)
   112  	return c
   113  }