github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/ackhandler/received_packet_handler.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  
     3  // Source: github.com/tumi8/quic-go/noninternal/ackhandler (interfaces: ReceivedPacketHandler)
     4  
     5  // Package mockackhandler is a generated GoMock package.
     6  package mockackhandler
     7  
     8  import (
     9  	reflect "reflect"
    10  	time "time"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  	protocol "github.com/tumi8/quic-go/noninternal/protocol"
    14  	wire "github.com/tumi8/quic-go/noninternal/wire"
    15  )
    16  
    17  // MockReceivedPacketHandler is a mock of ReceivedPacketHandler interface.
    18  type MockReceivedPacketHandler struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockReceivedPacketHandlerMockRecorder
    21  }
    22  
    23  // MockReceivedPacketHandlerMockRecorder is the mock recorder for MockReceivedPacketHandler.
    24  type MockReceivedPacketHandlerMockRecorder struct {
    25  	mock *MockReceivedPacketHandler
    26  }
    27  
    28  // NewMockReceivedPacketHandler creates a new mock instance.
    29  func NewMockReceivedPacketHandler(ctrl *gomock.Controller) *MockReceivedPacketHandler {
    30  	mock := &MockReceivedPacketHandler{ctrl: ctrl}
    31  	mock.recorder = &MockReceivedPacketHandlerMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use.
    36  func (m *MockReceivedPacketHandler) EXPECT() *MockReceivedPacketHandlerMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // DropPackets mocks base method.
    41  func (m *MockReceivedPacketHandler) DropPackets(arg0 protocol.EncryptionLevel) {
    42  	m.ctrl.T.Helper()
    43  	m.ctrl.Call(m, "DropPackets", arg0)
    44  }
    45  
    46  // DropPackets indicates an expected call of DropPackets.
    47  func (mr *MockReceivedPacketHandlerMockRecorder) DropPackets(arg0 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DropPackets", reflect.TypeOf((*MockReceivedPacketHandler)(nil).DropPackets), arg0)
    50  }
    51  
    52  // GetAckFrame mocks base method.
    53  func (m *MockReceivedPacketHandler) GetAckFrame(arg0 protocol.EncryptionLevel, arg1 bool) *wire.AckFrame {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "GetAckFrame", arg0, arg1)
    56  	ret0, _ := ret[0].(*wire.AckFrame)
    57  	return ret0
    58  }
    59  
    60  // GetAckFrame indicates an expected call of GetAckFrame.
    61  func (mr *MockReceivedPacketHandlerMockRecorder) GetAckFrame(arg0, arg1 interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAckFrame", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAckFrame), arg0, arg1)
    64  }
    65  
    66  // GetAlarmTimeout mocks base method.
    67  func (m *MockReceivedPacketHandler) GetAlarmTimeout() time.Time {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "GetAlarmTimeout")
    70  	ret0, _ := ret[0].(time.Time)
    71  	return ret0
    72  }
    73  
    74  // GetAlarmTimeout indicates an expected call of GetAlarmTimeout.
    75  func (mr *MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlarmTimeout", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAlarmTimeout))
    78  }
    79  
    80  // IsPotentiallyDuplicate mocks base method.
    81  func (m *MockReceivedPacketHandler) IsPotentiallyDuplicate(arg0 protocol.PacketNumber, arg1 protocol.EncryptionLevel) bool {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "IsPotentiallyDuplicate", arg0, arg1)
    84  	ret0, _ := ret[0].(bool)
    85  	return ret0
    86  }
    87  
    88  // IsPotentiallyDuplicate indicates an expected call of IsPotentiallyDuplicate.
    89  func (mr *MockReceivedPacketHandlerMockRecorder) IsPotentiallyDuplicate(arg0, arg1 interface{}) *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsPotentiallyDuplicate", reflect.TypeOf((*MockReceivedPacketHandler)(nil).IsPotentiallyDuplicate), arg0, arg1)
    92  }
    93  
    94  // ReceivedPacket mocks base method.
    95  func (m *MockReceivedPacketHandler) ReceivedPacket(arg0 protocol.PacketNumber, arg1 protocol.ECN, arg2 protocol.EncryptionLevel, arg3 time.Time, arg4 bool) error {
    96  	m.ctrl.T.Helper()
    97  	ret := m.ctrl.Call(m, "ReceivedPacket", arg0, arg1, arg2, arg3, arg4)
    98  	ret0, _ := ret[0].(error)
    99  	return ret0
   100  }
   101  
   102  // ReceivedPacket indicates an expected call of ReceivedPacket.
   103  func (mr *MockReceivedPacketHandlerMockRecorder) ReceivedPacket(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   104  	mr.mock.ctrl.T.Helper()
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedPacket", reflect.TypeOf((*MockReceivedPacketHandler)(nil).ReceivedPacket), arg0, arg1, arg2, arg3, arg4)
   106  }