github.com/tumi8/quic-go@v0.37.4-tum/logging/mock_connection_tracer_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go/logging (interfaces: ConnectionTracer) 3 4 // Package logging is a generated GoMock package. 5 package logging 6 7 import ( 8 net "net" 9 reflect "reflect" 10 time "time" 11 12 gomock "github.com/golang/mock/gomock" 13 protocol "github.com/tumi8/quic-go/noninternal/protocol" 14 utils "github.com/tumi8/quic-go/noninternal/utils" 15 wire "github.com/tumi8/quic-go/noninternal/wire" 16 ) 17 18 // MockConnectionTracer is a mock of ConnectionTracer interface. 19 type MockConnectionTracer struct { 20 ctrl *gomock.Controller 21 recorder *MockConnectionTracerMockRecorder 22 } 23 24 // MockConnectionTracerMockRecorder is the mock recorder for MockConnectionTracer. 25 type MockConnectionTracerMockRecorder struct { 26 mock *MockConnectionTracer 27 } 28 29 // NewMockConnectionTracer creates a new mock instance. 30 func NewMockConnectionTracer(ctrl *gomock.Controller) *MockConnectionTracer { 31 mock := &MockConnectionTracer{ctrl: ctrl} 32 mock.recorder = &MockConnectionTracerMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockConnectionTracer) EXPECT() *MockConnectionTracerMockRecorder { 38 return m.recorder 39 } 40 41 // AcknowledgedPacket mocks base method. 42 func (m *MockConnectionTracer) AcknowledgedPacket(arg0 protocol.EncryptionLevel, arg1 protocol.PacketNumber) { 43 m.ctrl.T.Helper() 44 m.ctrl.Call(m, "AcknowledgedPacket", arg0, arg1) 45 } 46 47 // AcknowledgedPacket indicates an expected call of AcknowledgedPacket. 48 func (mr *MockConnectionTracerMockRecorder) AcknowledgedPacket(arg0, arg1 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcknowledgedPacket", reflect.TypeOf((*MockConnectionTracer)(nil).AcknowledgedPacket), arg0, arg1) 51 } 52 53 // BufferedPacket mocks base method. 54 func (m *MockConnectionTracer) BufferedPacket(arg0 PacketType, arg1 protocol.ByteCount) { 55 m.ctrl.T.Helper() 56 m.ctrl.Call(m, "BufferedPacket", arg0, arg1) 57 } 58 59 // BufferedPacket indicates an expected call of BufferedPacket. 60 func (mr *MockConnectionTracerMockRecorder) BufferedPacket(arg0, arg1 interface{}) *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BufferedPacket", reflect.TypeOf((*MockConnectionTracer)(nil).BufferedPacket), arg0, arg1) 63 } 64 65 // Close mocks base method. 66 func (m *MockConnectionTracer) Close() { 67 m.ctrl.T.Helper() 68 m.ctrl.Call(m, "Close") 69 } 70 71 // Close indicates an expected call of Close. 72 func (mr *MockConnectionTracerMockRecorder) Close() *gomock.Call { 73 mr.mock.ctrl.T.Helper() 74 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockConnectionTracer)(nil).Close)) 75 } 76 77 // ClosedConnection mocks base method. 78 func (m *MockConnectionTracer) ClosedConnection(arg0 error) { 79 m.ctrl.T.Helper() 80 m.ctrl.Call(m, "ClosedConnection", arg0) 81 } 82 83 // ClosedConnection indicates an expected call of ClosedConnection. 84 func (mr *MockConnectionTracerMockRecorder) ClosedConnection(arg0 interface{}) *gomock.Call { 85 mr.mock.ctrl.T.Helper() 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClosedConnection", reflect.TypeOf((*MockConnectionTracer)(nil).ClosedConnection), arg0) 87 } 88 89 // Debug mocks base method. 90 func (m *MockConnectionTracer) Debug(arg0, arg1 string) { 91 m.ctrl.T.Helper() 92 m.ctrl.Call(m, "Debug", arg0, arg1) 93 } 94 95 // Debug indicates an expected call of Debug. 96 func (mr *MockConnectionTracerMockRecorder) Debug(arg0, arg1 interface{}) *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Debug", reflect.TypeOf((*MockConnectionTracer)(nil).Debug), arg0, arg1) 99 } 100 101 // DroppedEncryptionLevel mocks base method. 102 func (m *MockConnectionTracer) DroppedEncryptionLevel(arg0 protocol.EncryptionLevel) { 103 m.ctrl.T.Helper() 104 m.ctrl.Call(m, "DroppedEncryptionLevel", arg0) 105 } 106 107 // DroppedEncryptionLevel indicates an expected call of DroppedEncryptionLevel. 108 func (mr *MockConnectionTracerMockRecorder) DroppedEncryptionLevel(arg0 interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DroppedEncryptionLevel", reflect.TypeOf((*MockConnectionTracer)(nil).DroppedEncryptionLevel), arg0) 111 } 112 113 // DroppedKey mocks base method. 114 func (m *MockConnectionTracer) DroppedKey(arg0 protocol.KeyPhase) { 115 m.ctrl.T.Helper() 116 m.ctrl.Call(m, "DroppedKey", arg0) 117 } 118 119 // DroppedKey indicates an expected call of DroppedKey. 120 func (mr *MockConnectionTracerMockRecorder) DroppedKey(arg0 interface{}) *gomock.Call { 121 mr.mock.ctrl.T.Helper() 122 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DroppedKey", reflect.TypeOf((*MockConnectionTracer)(nil).DroppedKey), arg0) 123 } 124 125 // DroppedPacket mocks base method. 126 func (m *MockConnectionTracer) DroppedPacket(arg0 PacketType, arg1 protocol.ByteCount, arg2 PacketDropReason) { 127 m.ctrl.T.Helper() 128 m.ctrl.Call(m, "DroppedPacket", arg0, arg1, arg2) 129 } 130 131 // DroppedPacket indicates an expected call of DroppedPacket. 132 func (mr *MockConnectionTracerMockRecorder) DroppedPacket(arg0, arg1, arg2 interface{}) *gomock.Call { 133 mr.mock.ctrl.T.Helper() 134 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DroppedPacket", reflect.TypeOf((*MockConnectionTracer)(nil).DroppedPacket), arg0, arg1, arg2) 135 } 136 137 // LossTimerCanceled mocks base method. 138 func (m *MockConnectionTracer) LossTimerCanceled() { 139 m.ctrl.T.Helper() 140 m.ctrl.Call(m, "LossTimerCanceled") 141 } 142 143 // LossTimerCanceled indicates an expected call of LossTimerCanceled. 144 func (mr *MockConnectionTracerMockRecorder) LossTimerCanceled() *gomock.Call { 145 mr.mock.ctrl.T.Helper() 146 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LossTimerCanceled", reflect.TypeOf((*MockConnectionTracer)(nil).LossTimerCanceled)) 147 } 148 149 // LossTimerExpired mocks base method. 150 func (m *MockConnectionTracer) LossTimerExpired(arg0 TimerType, arg1 protocol.EncryptionLevel) { 151 m.ctrl.T.Helper() 152 m.ctrl.Call(m, "LossTimerExpired", arg0, arg1) 153 } 154 155 // LossTimerExpired indicates an expected call of LossTimerExpired. 156 func (mr *MockConnectionTracerMockRecorder) LossTimerExpired(arg0, arg1 interface{}) *gomock.Call { 157 mr.mock.ctrl.T.Helper() 158 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LossTimerExpired", reflect.TypeOf((*MockConnectionTracer)(nil).LossTimerExpired), arg0, arg1) 159 } 160 161 // LostPacket mocks base method. 162 func (m *MockConnectionTracer) LostPacket(arg0 protocol.EncryptionLevel, arg1 protocol.PacketNumber, arg2 PacketLossReason) { 163 m.ctrl.T.Helper() 164 m.ctrl.Call(m, "LostPacket", arg0, arg1, arg2) 165 } 166 167 // LostPacket indicates an expected call of LostPacket. 168 func (mr *MockConnectionTracerMockRecorder) LostPacket(arg0, arg1, arg2 interface{}) *gomock.Call { 169 mr.mock.ctrl.T.Helper() 170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LostPacket", reflect.TypeOf((*MockConnectionTracer)(nil).LostPacket), arg0, arg1, arg2) 171 } 172 173 // NegotiatedVersion mocks base method. 174 func (m *MockConnectionTracer) NegotiatedVersion(arg0 protocol.VersionNumber, arg1, arg2 []protocol.VersionNumber) { 175 m.ctrl.T.Helper() 176 m.ctrl.Call(m, "NegotiatedVersion", arg0, arg1, arg2) 177 } 178 179 // NegotiatedVersion indicates an expected call of NegotiatedVersion. 180 func (mr *MockConnectionTracerMockRecorder) NegotiatedVersion(arg0, arg1, arg2 interface{}) *gomock.Call { 181 mr.mock.ctrl.T.Helper() 182 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NegotiatedVersion", reflect.TypeOf((*MockConnectionTracer)(nil).NegotiatedVersion), arg0, arg1, arg2) 183 } 184 185 // ReceivedLongHeaderPacket mocks base method. 186 func (m *MockConnectionTracer) ReceivedLongHeaderPacket(arg0 *wire.ExtendedHeader, arg1 protocol.ByteCount, arg2 []Frame) { 187 m.ctrl.T.Helper() 188 m.ctrl.Call(m, "ReceivedLongHeaderPacket", arg0, arg1, arg2) 189 } 190 191 // ReceivedLongHeaderPacket indicates an expected call of ReceivedLongHeaderPacket. 192 func (mr *MockConnectionTracerMockRecorder) ReceivedLongHeaderPacket(arg0, arg1, arg2 interface{}) *gomock.Call { 193 mr.mock.ctrl.T.Helper() 194 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedLongHeaderPacket", reflect.TypeOf((*MockConnectionTracer)(nil).ReceivedLongHeaderPacket), arg0, arg1, arg2) 195 } 196 197 // ReceivedRetry mocks base method. 198 func (m *MockConnectionTracer) ReceivedRetry(arg0 *wire.Header) { 199 m.ctrl.T.Helper() 200 m.ctrl.Call(m, "ReceivedRetry", arg0) 201 } 202 203 // ReceivedRetry indicates an expected call of ReceivedRetry. 204 func (mr *MockConnectionTracerMockRecorder) ReceivedRetry(arg0 interface{}) *gomock.Call { 205 mr.mock.ctrl.T.Helper() 206 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedRetry", reflect.TypeOf((*MockConnectionTracer)(nil).ReceivedRetry), arg0) 207 } 208 209 // ReceivedShortHeaderPacket mocks base method. 210 func (m *MockConnectionTracer) ReceivedShortHeaderPacket(arg0 *ShortHeader, arg1 protocol.ByteCount, arg2 []Frame) { 211 m.ctrl.T.Helper() 212 m.ctrl.Call(m, "ReceivedShortHeaderPacket", arg0, arg1, arg2) 213 } 214 215 // ReceivedShortHeaderPacket indicates an expected call of ReceivedShortHeaderPacket. 216 func (mr *MockConnectionTracerMockRecorder) ReceivedShortHeaderPacket(arg0, arg1, arg2 interface{}) *gomock.Call { 217 mr.mock.ctrl.T.Helper() 218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedShortHeaderPacket", reflect.TypeOf((*MockConnectionTracer)(nil).ReceivedShortHeaderPacket), arg0, arg1, arg2) 219 } 220 221 // ReceivedTransportParameters mocks base method. 222 func (m *MockConnectionTracer) ReceivedTransportParameters(arg0 *wire.TransportParameters) { 223 m.ctrl.T.Helper() 224 m.ctrl.Call(m, "ReceivedTransportParameters", arg0) 225 } 226 227 // ReceivedTransportParameters indicates an expected call of ReceivedTransportParameters. 228 func (mr *MockConnectionTracerMockRecorder) ReceivedTransportParameters(arg0 interface{}) *gomock.Call { 229 mr.mock.ctrl.T.Helper() 230 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedTransportParameters", reflect.TypeOf((*MockConnectionTracer)(nil).ReceivedTransportParameters), arg0) 231 } 232 233 // ReceivedVersionNegotiationPacket mocks base method. 234 func (m *MockConnectionTracer) ReceivedVersionNegotiationPacket(arg0, arg1 protocol.ArbitraryLenConnectionID, arg2 []protocol.VersionNumber) { 235 m.ctrl.T.Helper() 236 m.ctrl.Call(m, "ReceivedVersionNegotiationPacket", arg0, arg1, arg2) 237 } 238 239 // ReceivedVersionNegotiationPacket indicates an expected call of ReceivedVersionNegotiationPacket. 240 func (mr *MockConnectionTracerMockRecorder) ReceivedVersionNegotiationPacket(arg0, arg1, arg2 interface{}) *gomock.Call { 241 mr.mock.ctrl.T.Helper() 242 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedVersionNegotiationPacket", reflect.TypeOf((*MockConnectionTracer)(nil).ReceivedVersionNegotiationPacket), arg0, arg1, arg2) 243 } 244 245 // RestoredTransportParameters mocks base method. 246 func (m *MockConnectionTracer) RestoredTransportParameters(arg0 *wire.TransportParameters) { 247 m.ctrl.T.Helper() 248 m.ctrl.Call(m, "RestoredTransportParameters", arg0) 249 } 250 251 // RestoredTransportParameters indicates an expected call of RestoredTransportParameters. 252 func (mr *MockConnectionTracerMockRecorder) RestoredTransportParameters(arg0 interface{}) *gomock.Call { 253 mr.mock.ctrl.T.Helper() 254 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoredTransportParameters", reflect.TypeOf((*MockConnectionTracer)(nil).RestoredTransportParameters), arg0) 255 } 256 257 // SentLongHeaderPacket mocks base method. 258 func (m *MockConnectionTracer) SentLongHeaderPacket(arg0 *wire.ExtendedHeader, arg1 protocol.ByteCount, arg2 *wire.AckFrame, arg3 []Frame) { 259 m.ctrl.T.Helper() 260 m.ctrl.Call(m, "SentLongHeaderPacket", arg0, arg1, arg2, arg3) 261 } 262 263 // SentLongHeaderPacket indicates an expected call of SentLongHeaderPacket. 264 func (mr *MockConnectionTracerMockRecorder) SentLongHeaderPacket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 265 mr.mock.ctrl.T.Helper() 266 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentLongHeaderPacket", reflect.TypeOf((*MockConnectionTracer)(nil).SentLongHeaderPacket), arg0, arg1, arg2, arg3) 267 } 268 269 // SentShortHeaderPacket mocks base method. 270 func (m *MockConnectionTracer) SentShortHeaderPacket(arg0 *ShortHeader, arg1 protocol.ByteCount, arg2 *wire.AckFrame, arg3 []Frame) { 271 m.ctrl.T.Helper() 272 m.ctrl.Call(m, "SentShortHeaderPacket", arg0, arg1, arg2, arg3) 273 } 274 275 // SentShortHeaderPacket indicates an expected call of SentShortHeaderPacket. 276 func (mr *MockConnectionTracerMockRecorder) SentShortHeaderPacket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 277 mr.mock.ctrl.T.Helper() 278 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentShortHeaderPacket", reflect.TypeOf((*MockConnectionTracer)(nil).SentShortHeaderPacket), arg0, arg1, arg2, arg3) 279 } 280 281 // SentTransportParameters mocks base method. 282 func (m *MockConnectionTracer) SentTransportParameters(arg0 *wire.TransportParameters) { 283 m.ctrl.T.Helper() 284 m.ctrl.Call(m, "SentTransportParameters", arg0) 285 } 286 287 // SentTransportParameters indicates an expected call of SentTransportParameters. 288 func (mr *MockConnectionTracerMockRecorder) SentTransportParameters(arg0 interface{}) *gomock.Call { 289 mr.mock.ctrl.T.Helper() 290 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentTransportParameters", reflect.TypeOf((*MockConnectionTracer)(nil).SentTransportParameters), arg0) 291 } 292 293 // SetLossTimer mocks base method. 294 func (m *MockConnectionTracer) SetLossTimer(arg0 TimerType, arg1 protocol.EncryptionLevel, arg2 time.Time) { 295 m.ctrl.T.Helper() 296 m.ctrl.Call(m, "SetLossTimer", arg0, arg1, arg2) 297 } 298 299 // SetLossTimer indicates an expected call of SetLossTimer. 300 func (mr *MockConnectionTracerMockRecorder) SetLossTimer(arg0, arg1, arg2 interface{}) *gomock.Call { 301 mr.mock.ctrl.T.Helper() 302 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLossTimer", reflect.TypeOf((*MockConnectionTracer)(nil).SetLossTimer), arg0, arg1, arg2) 303 } 304 305 // StartedConnection mocks base method. 306 func (m *MockConnectionTracer) StartedConnection(arg0, arg1 net.Addr, arg2, arg3 protocol.ConnectionID) { 307 m.ctrl.T.Helper() 308 m.ctrl.Call(m, "StartedConnection", arg0, arg1, arg2, arg3) 309 } 310 311 // StartedConnection indicates an expected call of StartedConnection. 312 func (mr *MockConnectionTracerMockRecorder) StartedConnection(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 313 mr.mock.ctrl.T.Helper() 314 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartedConnection", reflect.TypeOf((*MockConnectionTracer)(nil).StartedConnection), arg0, arg1, arg2, arg3) 315 } 316 317 // UpdatedCongestionState mocks base method. 318 func (m *MockConnectionTracer) UpdatedCongestionState(arg0 CongestionState) { 319 m.ctrl.T.Helper() 320 m.ctrl.Call(m, "UpdatedCongestionState", arg0) 321 } 322 323 // UpdatedCongestionState indicates an expected call of UpdatedCongestionState. 324 func (mr *MockConnectionTracerMockRecorder) UpdatedCongestionState(arg0 interface{}) *gomock.Call { 325 mr.mock.ctrl.T.Helper() 326 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatedCongestionState", reflect.TypeOf((*MockConnectionTracer)(nil).UpdatedCongestionState), arg0) 327 } 328 329 // UpdatedKey mocks base method. 330 func (m *MockConnectionTracer) UpdatedKey(arg0 protocol.KeyPhase, arg1 bool) { 331 m.ctrl.T.Helper() 332 m.ctrl.Call(m, "UpdatedKey", arg0, arg1) 333 } 334 335 // UpdatedKey indicates an expected call of UpdatedKey. 336 func (mr *MockConnectionTracerMockRecorder) UpdatedKey(arg0, arg1 interface{}) *gomock.Call { 337 mr.mock.ctrl.T.Helper() 338 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatedKey", reflect.TypeOf((*MockConnectionTracer)(nil).UpdatedKey), arg0, arg1) 339 } 340 341 // UpdatedKeyFromTLS mocks base method. 342 func (m *MockConnectionTracer) UpdatedKeyFromTLS(arg0 protocol.EncryptionLevel, arg1 protocol.Perspective) { 343 m.ctrl.T.Helper() 344 m.ctrl.Call(m, "UpdatedKeyFromTLS", arg0, arg1) 345 } 346 347 // UpdatedKeyFromTLS indicates an expected call of UpdatedKeyFromTLS. 348 func (mr *MockConnectionTracerMockRecorder) UpdatedKeyFromTLS(arg0, arg1 interface{}) *gomock.Call { 349 mr.mock.ctrl.T.Helper() 350 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatedKeyFromTLS", reflect.TypeOf((*MockConnectionTracer)(nil).UpdatedKeyFromTLS), arg0, arg1) 351 } 352 353 // UpdatedMetrics mocks base method. 354 func (m *MockConnectionTracer) UpdatedMetrics(arg0 *utils.RTTStats, arg1, arg2 protocol.ByteCount, arg3 int) { 355 m.ctrl.T.Helper() 356 m.ctrl.Call(m, "UpdatedMetrics", arg0, arg1, arg2, arg3) 357 } 358 359 // UpdatedMetrics indicates an expected call of UpdatedMetrics. 360 func (mr *MockConnectionTracerMockRecorder) UpdatedMetrics(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 361 mr.mock.ctrl.T.Helper() 362 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatedMetrics", reflect.TypeOf((*MockConnectionTracer)(nil).UpdatedMetrics), arg0, arg1, arg2, arg3) 363 } 364 365 // UpdatedPTOCount mocks base method. 366 func (m *MockConnectionTracer) UpdatedPTOCount(arg0 uint32) { 367 m.ctrl.T.Helper() 368 m.ctrl.Call(m, "UpdatedPTOCount", arg0) 369 } 370 371 // UpdatedPTOCount indicates an expected call of UpdatedPTOCount. 372 func (mr *MockConnectionTracerMockRecorder) UpdatedPTOCount(arg0 interface{}) *gomock.Call { 373 mr.mock.ctrl.T.Helper() 374 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatedPTOCount", reflect.TypeOf((*MockConnectionTracer)(nil).UpdatedPTOCount), arg0) 375 }