github.com/MerlinKodo/quic-go@v0.39.2/mock_packet_handler_manager_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MerlinKodo/quic-go (interfaces: PacketHandlerManager)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -build_flags=-tags=gomock -package quic -self_package github.com/MerlinKodo/quic-go -destination mock_packet_handler_manager_test.go github.com/MerlinKodo/quic-go PacketHandlerManager
     7  //
     8  // Package quic is a generated GoMock package.
     9  package quic
    10  
    11  import (
    12  	reflect "reflect"
    13  
    14  	protocol "github.com/MerlinKodo/quic-go/internal/protocol"
    15  	gomock "go.uber.org/mock/gomock"
    16  )
    17  
    18  // MockPacketHandlerManager is a mock of PacketHandlerManager interface.
    19  type MockPacketHandlerManager struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockPacketHandlerManagerMockRecorder
    22  }
    23  
    24  // MockPacketHandlerManagerMockRecorder is the mock recorder for MockPacketHandlerManager.
    25  type MockPacketHandlerManagerMockRecorder struct {
    26  	mock *MockPacketHandlerManager
    27  }
    28  
    29  // NewMockPacketHandlerManager creates a new mock instance.
    30  func NewMockPacketHandlerManager(ctrl *gomock.Controller) *MockPacketHandlerManager {
    31  	mock := &MockPacketHandlerManager{ctrl: ctrl}
    32  	mock.recorder = &MockPacketHandlerManagerMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockPacketHandlerManager) EXPECT() *MockPacketHandlerManagerMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // Add mocks base method.
    42  func (m *MockPacketHandlerManager) Add(arg0 protocol.ConnectionID, arg1 packetHandler) bool {
    43  	m.ctrl.T.Helper()
    44  	ret := m.ctrl.Call(m, "Add", arg0, arg1)
    45  	ret0, _ := ret[0].(bool)
    46  	return ret0
    47  }
    48  
    49  // Add indicates an expected call of Add.
    50  func (mr *MockPacketHandlerManagerMockRecorder) Add(arg0, arg1 any) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockPacketHandlerManager)(nil).Add), arg0, arg1)
    53  }
    54  
    55  // AddResetToken mocks base method.
    56  func (m *MockPacketHandlerManager) AddResetToken(arg0 protocol.StatelessResetToken, arg1 packetHandler) {
    57  	m.ctrl.T.Helper()
    58  	m.ctrl.Call(m, "AddResetToken", arg0, arg1)
    59  }
    60  
    61  // AddResetToken indicates an expected call of AddResetToken.
    62  func (mr *MockPacketHandlerManagerMockRecorder) AddResetToken(arg0, arg1 any) *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddResetToken", reflect.TypeOf((*MockPacketHandlerManager)(nil).AddResetToken), arg0, arg1)
    65  }
    66  
    67  // AddWithConnID mocks base method.
    68  func (m *MockPacketHandlerManager) AddWithConnID(arg0, arg1 protocol.ConnectionID, arg2 func() (packetHandler, bool)) bool {
    69  	m.ctrl.T.Helper()
    70  	ret := m.ctrl.Call(m, "AddWithConnID", arg0, arg1, arg2)
    71  	ret0, _ := ret[0].(bool)
    72  	return ret0
    73  }
    74  
    75  // AddWithConnID indicates an expected call of AddWithConnID.
    76  func (mr *MockPacketHandlerManagerMockRecorder) AddWithConnID(arg0, arg1, arg2 any) *gomock.Call {
    77  	mr.mock.ctrl.T.Helper()
    78  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWithConnID", reflect.TypeOf((*MockPacketHandlerManager)(nil).AddWithConnID), arg0, arg1, arg2)
    79  }
    80  
    81  // Close mocks base method.
    82  func (m *MockPacketHandlerManager) Close(arg0 error) {
    83  	m.ctrl.T.Helper()
    84  	m.ctrl.Call(m, "Close", arg0)
    85  }
    86  
    87  // Close indicates an expected call of Close.
    88  func (mr *MockPacketHandlerManagerMockRecorder) Close(arg0 any) *gomock.Call {
    89  	mr.mock.ctrl.T.Helper()
    90  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockPacketHandlerManager)(nil).Close), arg0)
    91  }
    92  
    93  // CloseServer mocks base method.
    94  func (m *MockPacketHandlerManager) CloseServer() {
    95  	m.ctrl.T.Helper()
    96  	m.ctrl.Call(m, "CloseServer")
    97  }
    98  
    99  // CloseServer indicates an expected call of CloseServer.
   100  func (mr *MockPacketHandlerManagerMockRecorder) CloseServer() *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseServer", reflect.TypeOf((*MockPacketHandlerManager)(nil).CloseServer))
   103  }
   104  
   105  // Get mocks base method.
   106  func (m *MockPacketHandlerManager) Get(arg0 protocol.ConnectionID) (packetHandler, bool) {
   107  	m.ctrl.T.Helper()
   108  	ret := m.ctrl.Call(m, "Get", arg0)
   109  	ret0, _ := ret[0].(packetHandler)
   110  	ret1, _ := ret[1].(bool)
   111  	return ret0, ret1
   112  }
   113  
   114  // Get indicates an expected call of Get.
   115  func (mr *MockPacketHandlerManagerMockRecorder) Get(arg0 any) *gomock.Call {
   116  	mr.mock.ctrl.T.Helper()
   117  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPacketHandlerManager)(nil).Get), arg0)
   118  }
   119  
   120  // GetByResetToken mocks base method.
   121  func (m *MockPacketHandlerManager) GetByResetToken(arg0 protocol.StatelessResetToken) (packetHandler, bool) {
   122  	m.ctrl.T.Helper()
   123  	ret := m.ctrl.Call(m, "GetByResetToken", arg0)
   124  	ret0, _ := ret[0].(packetHandler)
   125  	ret1, _ := ret[1].(bool)
   126  	return ret0, ret1
   127  }
   128  
   129  // GetByResetToken indicates an expected call of GetByResetToken.
   130  func (mr *MockPacketHandlerManagerMockRecorder) GetByResetToken(arg0 any) *gomock.Call {
   131  	mr.mock.ctrl.T.Helper()
   132  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByResetToken", reflect.TypeOf((*MockPacketHandlerManager)(nil).GetByResetToken), arg0)
   133  }
   134  
   135  // GetStatelessResetToken mocks base method.
   136  func (m *MockPacketHandlerManager) GetStatelessResetToken(arg0 protocol.ConnectionID) protocol.StatelessResetToken {
   137  	m.ctrl.T.Helper()
   138  	ret := m.ctrl.Call(m, "GetStatelessResetToken", arg0)
   139  	ret0, _ := ret[0].(protocol.StatelessResetToken)
   140  	return ret0
   141  }
   142  
   143  // GetStatelessResetToken indicates an expected call of GetStatelessResetToken.
   144  func (mr *MockPacketHandlerManagerMockRecorder) GetStatelessResetToken(arg0 any) *gomock.Call {
   145  	mr.mock.ctrl.T.Helper()
   146  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatelessResetToken", reflect.TypeOf((*MockPacketHandlerManager)(nil).GetStatelessResetToken), arg0)
   147  }
   148  
   149  // Remove mocks base method.
   150  func (m *MockPacketHandlerManager) Remove(arg0 protocol.ConnectionID) {
   151  	m.ctrl.T.Helper()
   152  	m.ctrl.Call(m, "Remove", arg0)
   153  }
   154  
   155  // Remove indicates an expected call of Remove.
   156  func (mr *MockPacketHandlerManagerMockRecorder) Remove(arg0 any) *gomock.Call {
   157  	mr.mock.ctrl.T.Helper()
   158  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockPacketHandlerManager)(nil).Remove), arg0)
   159  }
   160  
   161  // RemoveResetToken mocks base method.
   162  func (m *MockPacketHandlerManager) RemoveResetToken(arg0 protocol.StatelessResetToken) {
   163  	m.ctrl.T.Helper()
   164  	m.ctrl.Call(m, "RemoveResetToken", arg0)
   165  }
   166  
   167  // RemoveResetToken indicates an expected call of RemoveResetToken.
   168  func (mr *MockPacketHandlerManagerMockRecorder) RemoveResetToken(arg0 any) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveResetToken", reflect.TypeOf((*MockPacketHandlerManager)(nil).RemoveResetToken), arg0)
   171  }
   172  
   173  // ReplaceWithClosed mocks base method.
   174  func (m *MockPacketHandlerManager) ReplaceWithClosed(arg0 []protocol.ConnectionID, arg1 protocol.Perspective, arg2 []byte) {
   175  	m.ctrl.T.Helper()
   176  	m.ctrl.Call(m, "ReplaceWithClosed", arg0, arg1, arg2)
   177  }
   178  
   179  // ReplaceWithClosed indicates an expected call of ReplaceWithClosed.
   180  func (mr *MockPacketHandlerManagerMockRecorder) ReplaceWithClosed(arg0, arg1, arg2 any) *gomock.Call {
   181  	mr.mock.ctrl.T.Helper()
   182  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplaceWithClosed", reflect.TypeOf((*MockPacketHandlerManager)(nil).ReplaceWithClosed), arg0, arg1, arg2)
   183  }
   184  
   185  // Retire mocks base method.
   186  func (m *MockPacketHandlerManager) Retire(arg0 protocol.ConnectionID) {
   187  	m.ctrl.T.Helper()
   188  	m.ctrl.Call(m, "Retire", arg0)
   189  }
   190  
   191  // Retire indicates an expected call of Retire.
   192  func (mr *MockPacketHandlerManagerMockRecorder) Retire(arg0 any) *gomock.Call {
   193  	mr.mock.ctrl.T.Helper()
   194  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Retire", reflect.TypeOf((*MockPacketHandlerManager)(nil).Retire), arg0)
   195  }