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