github.com/MerlinKodo/quic-go@v0.39.2/internal/mocks/ackhandler/received_packet_handler.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MerlinKodo/quic-go/internal/ackhandler (interfaces: ReceivedPacketHandler)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/MerlinKodo/quic-go/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/MerlinKodo/quic-go/internal/protocol"
    16  	wire "github.com/MerlinKodo/quic-go/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) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DropPackets", reflect.TypeOf((*MockReceivedPacketHandler)(nil).DropPackets), arg0)
    53  }
    54  
    55  // GetAckFrame mocks base method.
    56  func (m *MockReceivedPacketHandler) GetAckFrame(arg0 protocol.EncryptionLevel, arg1 bool) *wire.AckFrame {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "GetAckFrame", arg0, arg1)
    59  	ret0, _ := ret[0].(*wire.AckFrame)
    60  	return ret0
    61  }
    62  
    63  // GetAckFrame indicates an expected call of GetAckFrame.
    64  func (mr *MockReceivedPacketHandlerMockRecorder) GetAckFrame(arg0, arg1 any) *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAckFrame", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAckFrame), arg0, arg1)
    67  }
    68  
    69  // GetAlarmTimeout mocks base method.
    70  func (m *MockReceivedPacketHandler) GetAlarmTimeout() time.Time {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "GetAlarmTimeout")
    73  	ret0, _ := ret[0].(time.Time)
    74  	return ret0
    75  }
    76  
    77  // GetAlarmTimeout indicates an expected call of GetAlarmTimeout.
    78  func (mr *MockReceivedPacketHandlerMockRecorder) GetAlarmTimeout() *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlarmTimeout", reflect.TypeOf((*MockReceivedPacketHandler)(nil).GetAlarmTimeout))
    81  }
    82  
    83  // IsPotentiallyDuplicate mocks base method.
    84  func (m *MockReceivedPacketHandler) IsPotentiallyDuplicate(arg0 protocol.PacketNumber, arg1 protocol.EncryptionLevel) bool {
    85  	m.ctrl.T.Helper()
    86  	ret := m.ctrl.Call(m, "IsPotentiallyDuplicate", arg0, arg1)
    87  	ret0, _ := ret[0].(bool)
    88  	return ret0
    89  }
    90  
    91  // IsPotentiallyDuplicate indicates an expected call of IsPotentiallyDuplicate.
    92  func (mr *MockReceivedPacketHandlerMockRecorder) IsPotentiallyDuplicate(arg0, arg1 any) *gomock.Call {
    93  	mr.mock.ctrl.T.Helper()
    94  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsPotentiallyDuplicate", reflect.TypeOf((*MockReceivedPacketHandler)(nil).IsPotentiallyDuplicate), arg0, arg1)
    95  }
    96  
    97  // ReceivedPacket mocks base method.
    98  func (m *MockReceivedPacketHandler) ReceivedPacket(arg0 protocol.PacketNumber, arg1 protocol.ECN, arg2 protocol.EncryptionLevel, arg3 time.Time, arg4 bool) error {
    99  	m.ctrl.T.Helper()
   100  	ret := m.ctrl.Call(m, "ReceivedPacket", arg0, arg1, arg2, arg3, arg4)
   101  	ret0, _ := ret[0].(error)
   102  	return ret0
   103  }
   104  
   105  // ReceivedPacket indicates an expected call of ReceivedPacket.
   106  func (mr *MockReceivedPacketHandlerMockRecorder) ReceivedPacket(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call {
   107  	mr.mock.ctrl.T.Helper()
   108  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedPacket", reflect.TypeOf((*MockReceivedPacketHandler)(nil).ReceivedPacket), arg0, arg1, arg2, arg3, arg4)
   109  }