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