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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler (interfaces: ReceivedPacketHandler)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler ReceivedPacketHandler
     7  //
     8  // Package mockackhandler is a generated GoMock package.
     9  package mockackhandler
    10  
    11  import (
    12  	reflect "reflect"
    13  	time "time"
    14  
    15  	protocol "github.com/danielpfeifer02/quic-go-prio-packs/internal/protocol"
    16  	wire "github.com/danielpfeifer02/quic-go-prio-packs/internal/wire"
    17  	gomock "go.uber.org/mock/gomock"
    18  )
    19  
    20  // MockReceivedPacketHandler is a mock of ReceivedPacketHandler interface.
    21  type MockReceivedPacketHandler struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockReceivedPacketHandlerMockRecorder
    24  }
    25  
    26  // MockReceivedPacketHandlerMockRecorder is the mock recorder for MockReceivedPacketHandler.
    27  type MockReceivedPacketHandlerMockRecorder struct {
    28  	mock *MockReceivedPacketHandler
    29  }
    30  
    31  // NewMockReceivedPacketHandler creates a new mock instance.
    32  func NewMockReceivedPacketHandler(ctrl *gomock.Controller) *MockReceivedPacketHandler {
    33  	mock := &MockReceivedPacketHandler{ctrl: ctrl}
    34  	mock.recorder = &MockReceivedPacketHandlerMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockReceivedPacketHandler) EXPECT() *MockReceivedPacketHandlerMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // DropPackets mocks base method.
    44  func (m *MockReceivedPacketHandler) DropPackets(arg0 protocol.EncryptionLevel) {
    45  	m.ctrl.T.Helper()
    46  	m.ctrl.Call(m, "DropPackets", arg0)
    47  }
    48  
    49  // DropPackets indicates an expected call of DropPackets.
    50  func (mr *MockReceivedPacketHandlerMockRecorder) DropPackets(arg0 any) *ReceivedPacketHandlerDropPacketsCall {
    51  	mr.mock.ctrl.T.Helper()
    52  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DropPackets", reflect.TypeOf((*MockReceivedPacketHandler)(nil).DropPackets), arg0)
    53  	return &ReceivedPacketHandlerDropPacketsCall{Call: call}
    54  }
    55  
    56  // ReceivedPacketHandlerDropPacketsCall wrap *gomock.Call
    57  type ReceivedPacketHandlerDropPacketsCall struct {
    58  	*gomock.Call
    59  }
    60  
    61  // Return rewrite *gomock.Call.Return
    62  func (c *ReceivedPacketHandlerDropPacketsCall) Return() *ReceivedPacketHandlerDropPacketsCall {
    63  	c.Call = c.Call.Return()
    64  	return c
    65  }
    66  
    67  // Do rewrite *gomock.Call.Do
    68  func (c *ReceivedPacketHandlerDropPacketsCall) Do(f func(protocol.EncryptionLevel)) *ReceivedPacketHandlerDropPacketsCall {
    69  	c.Call = c.Call.Do(f)
    70  	return c
    71  }
    72  
    73  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    74  func (c *ReceivedPacketHandlerDropPacketsCall) DoAndReturn(f func(protocol.EncryptionLevel)) *ReceivedPacketHandlerDropPacketsCall {
    75  	c.Call = c.Call.DoAndReturn(f)
    76  	return c
    77  }
    78  
    79  // GetAckFrame mocks base method.
    80  func (m *MockReceivedPacketHandler) GetAckFrame(arg0 protocol.EncryptionLevel, arg1 bool) *wire.AckFrame {
    81  	m.ctrl.T.Helper()
    82  	ret := m.ctrl.Call(m, "GetAckFrame", arg0, arg1)
    83  	ret0, _ := ret[0].(*wire.AckFrame)
    84  	return ret0
    85  }
    86  
    87  // GetAckFrame indicates an expected call of GetAckFrame.
    88  func (mr *MockReceivedPacketHandlerMockRecorder) GetAckFrame(arg0, arg1 any) *ReceivedPacketHandlerGetAckFrameCall {
    89  	mr.mock.ctrl.T.Helper()
    90  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAckFrame", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAckFrame), arg0, arg1)
    91  	return &ReceivedPacketHandlerGetAckFrameCall{Call: call}
    92  }
    93  
    94  // ReceivedPacketHandlerGetAckFrameCall wrap *gomock.Call
    95  type ReceivedPacketHandlerGetAckFrameCall struct {
    96  	*gomock.Call
    97  }
    98  
    99  // Return rewrite *gomock.Call.Return
   100  func (c *ReceivedPacketHandlerGetAckFrameCall) Return(arg0 *wire.AckFrame) *ReceivedPacketHandlerGetAckFrameCall {
   101  	c.Call = c.Call.Return(arg0)
   102  	return c
   103  }
   104  
   105  // Do rewrite *gomock.Call.Do
   106  func (c *ReceivedPacketHandlerGetAckFrameCall) Do(f func(protocol.EncryptionLevel, bool) *wire.AckFrame) *ReceivedPacketHandlerGetAckFrameCall {
   107  	c.Call = c.Call.Do(f)
   108  	return c
   109  }
   110  
   111  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   112  func (c *ReceivedPacketHandlerGetAckFrameCall) DoAndReturn(f func(protocol.EncryptionLevel, bool) *wire.AckFrame) *ReceivedPacketHandlerGetAckFrameCall {
   113  	c.Call = c.Call.DoAndReturn(f)
   114  	return c
   115  }
   116  
   117  // GetAlarmTimeout mocks base method.
   118  func (m *MockReceivedPacketHandler) GetAlarmTimeout() time.Time {
   119  	m.ctrl.T.Helper()
   120  	ret := m.ctrl.Call(m, "GetAlarmTimeout")
   121  	ret0, _ := ret[0].(time.Time)
   122  	return ret0
   123  }
   124  
   125  // GetAlarmTimeout indicates an expected call of GetAlarmTimeout.
   126  func (mr *MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout() *ReceivedPacketHandlerGetAlarmTimeoutCall {
   127  	mr.mock.ctrl.T.Helper()
   128  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlarmTimeout", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAlarmTimeout))
   129  	return &ReceivedPacketHandlerGetAlarmTimeoutCall{Call: call}
   130  }
   131  
   132  // ReceivedPacketHandlerGetAlarmTimeoutCall wrap *gomock.Call
   133  type ReceivedPacketHandlerGetAlarmTimeoutCall struct {
   134  	*gomock.Call
   135  }
   136  
   137  // Return rewrite *gomock.Call.Return
   138  func (c *ReceivedPacketHandlerGetAlarmTimeoutCall) Return(arg0 time.Time) *ReceivedPacketHandlerGetAlarmTimeoutCall {
   139  	c.Call = c.Call.Return(arg0)
   140  	return c
   141  }
   142  
   143  // Do rewrite *gomock.Call.Do
   144  func (c *ReceivedPacketHandlerGetAlarmTimeoutCall) Do(f func() time.Time) *ReceivedPacketHandlerGetAlarmTimeoutCall {
   145  	c.Call = c.Call.Do(f)
   146  	return c
   147  }
   148  
   149  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   150  func (c *ReceivedPacketHandlerGetAlarmTimeoutCall) DoAndReturn(f func() time.Time) *ReceivedPacketHandlerGetAlarmTimeoutCall {
   151  	c.Call = c.Call.DoAndReturn(f)
   152  	return c
   153  }
   154  
   155  // IsPotentiallyDuplicate mocks base method.
   156  func (m *MockReceivedPacketHandler) IsPotentiallyDuplicate(arg0 protocol.PacketNumber, arg1 protocol.EncryptionLevel) bool {
   157  	m.ctrl.T.Helper()
   158  	ret := m.ctrl.Call(m, "IsPotentiallyDuplicate", arg0, arg1)
   159  	ret0, _ := ret[0].(bool)
   160  	return ret0
   161  }
   162  
   163  // IsPotentiallyDuplicate indicates an expected call of IsPotentiallyDuplicate.
   164  func (mr *MockReceivedPacketHandlerMockRecorder) IsPotentiallyDuplicate(arg0, arg1 any) *ReceivedPacketHandlerIsPotentiallyDuplicateCall {
   165  	mr.mock.ctrl.T.Helper()
   166  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsPotentiallyDuplicate", reflect.TypeOf((*MockReceivedPacketHandler)(nil).IsPotentiallyDuplicate), arg0, arg1)
   167  	return &ReceivedPacketHandlerIsPotentiallyDuplicateCall{Call: call}
   168  }
   169  
   170  // ReceivedPacketHandlerIsPotentiallyDuplicateCall wrap *gomock.Call
   171  type ReceivedPacketHandlerIsPotentiallyDuplicateCall struct {
   172  	*gomock.Call
   173  }
   174  
   175  // Return rewrite *gomock.Call.Return
   176  func (c *ReceivedPacketHandlerIsPotentiallyDuplicateCall) Return(arg0 bool) *ReceivedPacketHandlerIsPotentiallyDuplicateCall {
   177  	c.Call = c.Call.Return(arg0)
   178  	return c
   179  }
   180  
   181  // Do rewrite *gomock.Call.Do
   182  func (c *ReceivedPacketHandlerIsPotentiallyDuplicateCall) Do(f func(protocol.PacketNumber, protocol.EncryptionLevel) bool) *ReceivedPacketHandlerIsPotentiallyDuplicateCall {
   183  	c.Call = c.Call.Do(f)
   184  	return c
   185  }
   186  
   187  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   188  func (c *ReceivedPacketHandlerIsPotentiallyDuplicateCall) DoAndReturn(f func(protocol.PacketNumber, protocol.EncryptionLevel) bool) *ReceivedPacketHandlerIsPotentiallyDuplicateCall {
   189  	c.Call = c.Call.DoAndReturn(f)
   190  	return c
   191  }
   192  
   193  // ReceivedPacket mocks base method.
   194  func (m *MockReceivedPacketHandler) ReceivedPacket(arg0 protocol.PacketNumber, arg1 protocol.ECN, arg2 protocol.EncryptionLevel, arg3 time.Time, arg4 bool) error {
   195  	m.ctrl.T.Helper()
   196  	ret := m.ctrl.Call(m, "ReceivedPacket", arg0, arg1, arg2, arg3, arg4)
   197  	ret0, _ := ret[0].(error)
   198  	return ret0
   199  }
   200  
   201  // ReceivedPacket indicates an expected call of ReceivedPacket.
   202  func (mr *MockReceivedPacketHandlerMockRecorder) ReceivedPacket(arg0, arg1, arg2, arg3, arg4 any) *ReceivedPacketHandlerReceivedPacketCall {
   203  	mr.mock.ctrl.T.Helper()
   204  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedPacket", reflect.TypeOf((*MockReceivedPacketHandler)(nil).ReceivedPacket), arg0, arg1, arg2, arg3, arg4)
   205  	return &ReceivedPacketHandlerReceivedPacketCall{Call: call}
   206  }
   207  
   208  // ReceivedPacketHandlerReceivedPacketCall wrap *gomock.Call
   209  type ReceivedPacketHandlerReceivedPacketCall struct {
   210  	*gomock.Call
   211  }
   212  
   213  // Return rewrite *gomock.Call.Return
   214  func (c *ReceivedPacketHandlerReceivedPacketCall) Return(arg0 error) *ReceivedPacketHandlerReceivedPacketCall {
   215  	c.Call = c.Call.Return(arg0)
   216  	return c
   217  }
   218  
   219  // Do rewrite *gomock.Call.Do
   220  func (c *ReceivedPacketHandlerReceivedPacketCall) Do(f func(protocol.PacketNumber, protocol.ECN, protocol.EncryptionLevel, time.Time, bool) error) *ReceivedPacketHandlerReceivedPacketCall {
   221  	c.Call = c.Call.Do(f)
   222  	return c
   223  }
   224  
   225  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   226  func (c *ReceivedPacketHandlerReceivedPacketCall) DoAndReturn(f func(protocol.PacketNumber, protocol.ECN, protocol.EncryptionLevel, time.Time, bool) error) *ReceivedPacketHandlerReceivedPacketCall {
   227  	c.Call = c.Call.DoAndReturn(f)
   228  	return c
   229  }