github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/internal/mocks/ackhandler/sent_packet_handler.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler (interfaces: SentPacketHandler) 3 // 4 // Generated by this command: 5 // 6 // mockgen -typed -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler SentPacketHandler 7 // 8 // Package mockackhandler is a generated GoMock package. 9 package mockackhandler 10 11 import ( 12 reflect "reflect" 13 time "time" 14 15 ackhandler "github.com/danielpfeifer02/quic-go-prio-packs/internal/ackhandler" 16 protocol "github.com/danielpfeifer02/quic-go-prio-packs/internal/protocol" 17 wire "github.com/danielpfeifer02/quic-go-prio-packs/internal/wire" 18 gomock "go.uber.org/mock/gomock" 19 ) 20 21 // MockSentPacketHandler is a mock of SentPacketHandler interface. 22 type MockSentPacketHandler struct { 23 ctrl *gomock.Controller 24 recorder *MockSentPacketHandlerMockRecorder 25 } 26 27 // MockSentPacketHandlerMockRecorder is the mock recorder for MockSentPacketHandler. 28 type MockSentPacketHandlerMockRecorder struct { 29 mock *MockSentPacketHandler 30 } 31 32 // NewMockSentPacketHandler creates a new mock instance. 33 func NewMockSentPacketHandler(ctrl *gomock.Controller) *MockSentPacketHandler { 34 mock := &MockSentPacketHandler{ctrl: ctrl} 35 mock.recorder = &MockSentPacketHandlerMockRecorder{mock} 36 return mock 37 } 38 39 // EXPECT returns an object that allows the caller to indicate expected use. 40 func (m *MockSentPacketHandler) EXPECT() *MockSentPacketHandlerMockRecorder { 41 return m.recorder 42 } 43 44 // DropPackets mocks base method. 45 func (m *MockSentPacketHandler) DropPackets(arg0 protocol.EncryptionLevel) { 46 m.ctrl.T.Helper() 47 m.ctrl.Call(m, "DropPackets", arg0) 48 } 49 50 // DropPackets indicates an expected call of DropPackets. 51 func (mr *MockSentPacketHandlerMockRecorder) DropPackets(arg0 any) *SentPacketHandlerDropPacketsCall { 52 mr.mock.ctrl.T.Helper() 53 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DropPackets", reflect.TypeOf((*MockSentPacketHandler)(nil).DropPackets), arg0) 54 return &SentPacketHandlerDropPacketsCall{Call: call} 55 } 56 57 // SentPacketHandlerDropPacketsCall wrap *gomock.Call 58 type SentPacketHandlerDropPacketsCall struct { 59 *gomock.Call 60 } 61 62 // Return rewrite *gomock.Call.Return 63 func (c *SentPacketHandlerDropPacketsCall) Return() *SentPacketHandlerDropPacketsCall { 64 c.Call = c.Call.Return() 65 return c 66 } 67 68 // Do rewrite *gomock.Call.Do 69 func (c *SentPacketHandlerDropPacketsCall) Do(f func(protocol.EncryptionLevel)) *SentPacketHandlerDropPacketsCall { 70 c.Call = c.Call.Do(f) 71 return c 72 } 73 74 // DoAndReturn rewrite *gomock.Call.DoAndReturn 75 func (c *SentPacketHandlerDropPacketsCall) DoAndReturn(f func(protocol.EncryptionLevel)) *SentPacketHandlerDropPacketsCall { 76 c.Call = c.Call.DoAndReturn(f) 77 return c 78 } 79 80 // ECNMode mocks base method. 81 func (m *MockSentPacketHandler) ECNMode(arg0 bool) protocol.ECN { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "ECNMode", arg0) 84 ret0, _ := ret[0].(protocol.ECN) 85 return ret0 86 } 87 88 // ECNMode indicates an expected call of ECNMode. 89 func (mr *MockSentPacketHandlerMockRecorder) ECNMode(arg0 any) *SentPacketHandlerECNModeCall { 90 mr.mock.ctrl.T.Helper() 91 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ECNMode", reflect.TypeOf((*MockSentPacketHandler)(nil).ECNMode), arg0) 92 return &SentPacketHandlerECNModeCall{Call: call} 93 } 94 95 // SentPacketHandlerECNModeCall wrap *gomock.Call 96 type SentPacketHandlerECNModeCall struct { 97 *gomock.Call 98 } 99 100 // Return rewrite *gomock.Call.Return 101 func (c *SentPacketHandlerECNModeCall) Return(arg0 protocol.ECN) *SentPacketHandlerECNModeCall { 102 c.Call = c.Call.Return(arg0) 103 return c 104 } 105 106 // Do rewrite *gomock.Call.Do 107 func (c *SentPacketHandlerECNModeCall) Do(f func(bool) protocol.ECN) *SentPacketHandlerECNModeCall { 108 c.Call = c.Call.Do(f) 109 return c 110 } 111 112 // DoAndReturn rewrite *gomock.Call.DoAndReturn 113 func (c *SentPacketHandlerECNModeCall) DoAndReturn(f func(bool) protocol.ECN) *SentPacketHandlerECNModeCall { 114 c.Call = c.Call.DoAndReturn(f) 115 return c 116 } 117 118 // GetLossDetectionTimeout mocks base method. 119 func (m *MockSentPacketHandler) GetLossDetectionTimeout() time.Time { 120 m.ctrl.T.Helper() 121 ret := m.ctrl.Call(m, "GetLossDetectionTimeout") 122 ret0, _ := ret[0].(time.Time) 123 return ret0 124 } 125 126 // GetLossDetectionTimeout indicates an expected call of GetLossDetectionTimeout. 127 func (mr *MockSentPacketHandlerMockRecorder) GetLossDetectionTimeout() *SentPacketHandlerGetLossDetectionTimeoutCall { 128 mr.mock.ctrl.T.Helper() 129 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLossDetectionTimeout", reflect.TypeOf((*MockSentPacketHandler)(nil).GetLossDetectionTimeout)) 130 return &SentPacketHandlerGetLossDetectionTimeoutCall{Call: call} 131 } 132 133 // SentPacketHandlerGetLossDetectionTimeoutCall wrap *gomock.Call 134 type SentPacketHandlerGetLossDetectionTimeoutCall struct { 135 *gomock.Call 136 } 137 138 // Return rewrite *gomock.Call.Return 139 func (c *SentPacketHandlerGetLossDetectionTimeoutCall) Return(arg0 time.Time) *SentPacketHandlerGetLossDetectionTimeoutCall { 140 c.Call = c.Call.Return(arg0) 141 return c 142 } 143 144 // Do rewrite *gomock.Call.Do 145 func (c *SentPacketHandlerGetLossDetectionTimeoutCall) Do(f func() time.Time) *SentPacketHandlerGetLossDetectionTimeoutCall { 146 c.Call = c.Call.Do(f) 147 return c 148 } 149 150 // DoAndReturn rewrite *gomock.Call.DoAndReturn 151 func (c *SentPacketHandlerGetLossDetectionTimeoutCall) DoAndReturn(f func() time.Time) *SentPacketHandlerGetLossDetectionTimeoutCall { 152 c.Call = c.Call.DoAndReturn(f) 153 return c 154 } 155 156 // OnLossDetectionTimeout mocks base method. 157 func (m *MockSentPacketHandler) OnLossDetectionTimeout() error { 158 m.ctrl.T.Helper() 159 ret := m.ctrl.Call(m, "OnLossDetectionTimeout") 160 ret0, _ := ret[0].(error) 161 return ret0 162 } 163 164 // OnLossDetectionTimeout indicates an expected call of OnLossDetectionTimeout. 165 func (mr *MockSentPacketHandlerMockRecorder) OnLossDetectionTimeout() *SentPacketHandlerOnLossDetectionTimeoutCall { 166 mr.mock.ctrl.T.Helper() 167 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnLossDetectionTimeout", reflect.TypeOf((*MockSentPacketHandler)(nil).OnLossDetectionTimeout)) 168 return &SentPacketHandlerOnLossDetectionTimeoutCall{Call: call} 169 } 170 171 // SentPacketHandlerOnLossDetectionTimeoutCall wrap *gomock.Call 172 type SentPacketHandlerOnLossDetectionTimeoutCall struct { 173 *gomock.Call 174 } 175 176 // Return rewrite *gomock.Call.Return 177 func (c *SentPacketHandlerOnLossDetectionTimeoutCall) Return(arg0 error) *SentPacketHandlerOnLossDetectionTimeoutCall { 178 c.Call = c.Call.Return(arg0) 179 return c 180 } 181 182 // Do rewrite *gomock.Call.Do 183 func (c *SentPacketHandlerOnLossDetectionTimeoutCall) Do(f func() error) *SentPacketHandlerOnLossDetectionTimeoutCall { 184 c.Call = c.Call.Do(f) 185 return c 186 } 187 188 // DoAndReturn rewrite *gomock.Call.DoAndReturn 189 func (c *SentPacketHandlerOnLossDetectionTimeoutCall) DoAndReturn(f func() error) *SentPacketHandlerOnLossDetectionTimeoutCall { 190 c.Call = c.Call.DoAndReturn(f) 191 return c 192 } 193 194 // PeekPacketNumber mocks base method. 195 func (m *MockSentPacketHandler) PeekPacketNumber(arg0 protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen) { 196 m.ctrl.T.Helper() 197 ret := m.ctrl.Call(m, "PeekPacketNumber", arg0) 198 ret0, _ := ret[0].(protocol.PacketNumber) 199 ret1, _ := ret[1].(protocol.PacketNumberLen) 200 return ret0, ret1 201 } 202 203 // PeekPacketNumber indicates an expected call of PeekPacketNumber. 204 func (mr *MockSentPacketHandlerMockRecorder) PeekPacketNumber(arg0 any) *SentPacketHandlerPeekPacketNumberCall { 205 mr.mock.ctrl.T.Helper() 206 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeekPacketNumber", reflect.TypeOf((*MockSentPacketHandler)(nil).PeekPacketNumber), arg0) 207 return &SentPacketHandlerPeekPacketNumberCall{Call: call} 208 } 209 210 // SentPacketHandlerPeekPacketNumberCall wrap *gomock.Call 211 type SentPacketHandlerPeekPacketNumberCall struct { 212 *gomock.Call 213 } 214 215 // Return rewrite *gomock.Call.Return 216 func (c *SentPacketHandlerPeekPacketNumberCall) Return(arg0 protocol.PacketNumber, arg1 protocol.PacketNumberLen) *SentPacketHandlerPeekPacketNumberCall { 217 c.Call = c.Call.Return(arg0, arg1) 218 return c 219 } 220 221 // Do rewrite *gomock.Call.Do 222 func (c *SentPacketHandlerPeekPacketNumberCall) Do(f func(protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen)) *SentPacketHandlerPeekPacketNumberCall { 223 c.Call = c.Call.Do(f) 224 return c 225 } 226 227 // DoAndReturn rewrite *gomock.Call.DoAndReturn 228 func (c *SentPacketHandlerPeekPacketNumberCall) DoAndReturn(f func(protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen)) *SentPacketHandlerPeekPacketNumberCall { 229 c.Call = c.Call.DoAndReturn(f) 230 return c 231 } 232 233 // PopPacketNumber mocks base method. 234 func (m *MockSentPacketHandler) PopPacketNumber(arg0 protocol.EncryptionLevel) protocol.PacketNumber { 235 m.ctrl.T.Helper() 236 ret := m.ctrl.Call(m, "PopPacketNumber", arg0) 237 ret0, _ := ret[0].(protocol.PacketNumber) 238 return ret0 239 } 240 241 // PopPacketNumber indicates an expected call of PopPacketNumber. 242 func (mr *MockSentPacketHandlerMockRecorder) PopPacketNumber(arg0 any) *SentPacketHandlerPopPacketNumberCall { 243 mr.mock.ctrl.T.Helper() 244 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PopPacketNumber", reflect.TypeOf((*MockSentPacketHandler)(nil).PopPacketNumber), arg0) 245 return &SentPacketHandlerPopPacketNumberCall{Call: call} 246 } 247 248 // SentPacketHandlerPopPacketNumberCall wrap *gomock.Call 249 type SentPacketHandlerPopPacketNumberCall struct { 250 *gomock.Call 251 } 252 253 // Return rewrite *gomock.Call.Return 254 func (c *SentPacketHandlerPopPacketNumberCall) Return(arg0 protocol.PacketNumber) *SentPacketHandlerPopPacketNumberCall { 255 c.Call = c.Call.Return(arg0) 256 return c 257 } 258 259 // Do rewrite *gomock.Call.Do 260 func (c *SentPacketHandlerPopPacketNumberCall) Do(f func(protocol.EncryptionLevel) protocol.PacketNumber) *SentPacketHandlerPopPacketNumberCall { 261 c.Call = c.Call.Do(f) 262 return c 263 } 264 265 // DoAndReturn rewrite *gomock.Call.DoAndReturn 266 func (c *SentPacketHandlerPopPacketNumberCall) DoAndReturn(f func(protocol.EncryptionLevel) protocol.PacketNumber) *SentPacketHandlerPopPacketNumberCall { 267 c.Call = c.Call.DoAndReturn(f) 268 return c 269 } 270 271 // QueueProbePacket mocks base method. 272 func (m *MockSentPacketHandler) QueueProbePacket(arg0 protocol.EncryptionLevel) bool { 273 m.ctrl.T.Helper() 274 ret := m.ctrl.Call(m, "QueueProbePacket", arg0) 275 ret0, _ := ret[0].(bool) 276 return ret0 277 } 278 279 // QueueProbePacket indicates an expected call of QueueProbePacket. 280 func (mr *MockSentPacketHandlerMockRecorder) QueueProbePacket(arg0 any) *SentPacketHandlerQueueProbePacketCall { 281 mr.mock.ctrl.T.Helper() 282 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueProbePacket", reflect.TypeOf((*MockSentPacketHandler)(nil).QueueProbePacket), arg0) 283 return &SentPacketHandlerQueueProbePacketCall{Call: call} 284 } 285 286 // SentPacketHandlerQueueProbePacketCall wrap *gomock.Call 287 type SentPacketHandlerQueueProbePacketCall struct { 288 *gomock.Call 289 } 290 291 // Return rewrite *gomock.Call.Return 292 func (c *SentPacketHandlerQueueProbePacketCall) Return(arg0 bool) *SentPacketHandlerQueueProbePacketCall { 293 c.Call = c.Call.Return(arg0) 294 return c 295 } 296 297 // Do rewrite *gomock.Call.Do 298 func (c *SentPacketHandlerQueueProbePacketCall) Do(f func(protocol.EncryptionLevel) bool) *SentPacketHandlerQueueProbePacketCall { 299 c.Call = c.Call.Do(f) 300 return c 301 } 302 303 // DoAndReturn rewrite *gomock.Call.DoAndReturn 304 func (c *SentPacketHandlerQueueProbePacketCall) DoAndReturn(f func(protocol.EncryptionLevel) bool) *SentPacketHandlerQueueProbePacketCall { 305 c.Call = c.Call.DoAndReturn(f) 306 return c 307 } 308 309 // ReceivedAck mocks base method. 310 func (m *MockSentPacketHandler) ReceivedAck(arg0 *wire.AckFrame, arg1 protocol.EncryptionLevel, arg2 time.Time) (bool, error) { 311 m.ctrl.T.Helper() 312 ret := m.ctrl.Call(m, "ReceivedAck", arg0, arg1, arg2) 313 ret0, _ := ret[0].(bool) 314 ret1, _ := ret[1].(error) 315 return ret0, ret1 316 } 317 318 // ReceivedAck indicates an expected call of ReceivedAck. 319 func (mr *MockSentPacketHandlerMockRecorder) ReceivedAck(arg0, arg1, arg2 any) *SentPacketHandlerReceivedAckCall { 320 mr.mock.ctrl.T.Helper() 321 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedAck", reflect.TypeOf((*MockSentPacketHandler)(nil).ReceivedAck), arg0, arg1, arg2) 322 return &SentPacketHandlerReceivedAckCall{Call: call} 323 } 324 325 // SentPacketHandlerReceivedAckCall wrap *gomock.Call 326 type SentPacketHandlerReceivedAckCall struct { 327 *gomock.Call 328 } 329 330 // Return rewrite *gomock.Call.Return 331 func (c *SentPacketHandlerReceivedAckCall) Return(arg0 bool, arg1 error) *SentPacketHandlerReceivedAckCall { 332 c.Call = c.Call.Return(arg0, arg1) 333 return c 334 } 335 336 // Do rewrite *gomock.Call.Do 337 func (c *SentPacketHandlerReceivedAckCall) Do(f func(*wire.AckFrame, protocol.EncryptionLevel, time.Time) (bool, error)) *SentPacketHandlerReceivedAckCall { 338 c.Call = c.Call.Do(f) 339 return c 340 } 341 342 // DoAndReturn rewrite *gomock.Call.DoAndReturn 343 func (c *SentPacketHandlerReceivedAckCall) DoAndReturn(f func(*wire.AckFrame, protocol.EncryptionLevel, time.Time) (bool, error)) *SentPacketHandlerReceivedAckCall { 344 c.Call = c.Call.DoAndReturn(f) 345 return c 346 } 347 348 // ReceivedBytes mocks base method. 349 func (m *MockSentPacketHandler) ReceivedBytes(arg0 protocol.ByteCount) { 350 m.ctrl.T.Helper() 351 m.ctrl.Call(m, "ReceivedBytes", arg0) 352 } 353 354 // ReceivedBytes indicates an expected call of ReceivedBytes. 355 func (mr *MockSentPacketHandlerMockRecorder) ReceivedBytes(arg0 any) *SentPacketHandlerReceivedBytesCall { 356 mr.mock.ctrl.T.Helper() 357 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedBytes", reflect.TypeOf((*MockSentPacketHandler)(nil).ReceivedBytes), arg0) 358 return &SentPacketHandlerReceivedBytesCall{Call: call} 359 } 360 361 // SentPacketHandlerReceivedBytesCall wrap *gomock.Call 362 type SentPacketHandlerReceivedBytesCall struct { 363 *gomock.Call 364 } 365 366 // Return rewrite *gomock.Call.Return 367 func (c *SentPacketHandlerReceivedBytesCall) Return() *SentPacketHandlerReceivedBytesCall { 368 c.Call = c.Call.Return() 369 return c 370 } 371 372 // Do rewrite *gomock.Call.Do 373 func (c *SentPacketHandlerReceivedBytesCall) Do(f func(protocol.ByteCount)) *SentPacketHandlerReceivedBytesCall { 374 c.Call = c.Call.Do(f) 375 return c 376 } 377 378 // DoAndReturn rewrite *gomock.Call.DoAndReturn 379 func (c *SentPacketHandlerReceivedBytesCall) DoAndReturn(f func(protocol.ByteCount)) *SentPacketHandlerReceivedBytesCall { 380 c.Call = c.Call.DoAndReturn(f) 381 return c 382 } 383 384 // ResetForRetry mocks base method. 385 func (m *MockSentPacketHandler) ResetForRetry(arg0 time.Time) error { 386 m.ctrl.T.Helper() 387 ret := m.ctrl.Call(m, "ResetForRetry", arg0) 388 ret0, _ := ret[0].(error) 389 return ret0 390 } 391 392 // ResetForRetry indicates an expected call of ResetForRetry. 393 func (mr *MockSentPacketHandlerMockRecorder) ResetForRetry(arg0 any) *SentPacketHandlerResetForRetryCall { 394 mr.mock.ctrl.T.Helper() 395 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetForRetry", reflect.TypeOf((*MockSentPacketHandler)(nil).ResetForRetry), arg0) 396 return &SentPacketHandlerResetForRetryCall{Call: call} 397 } 398 399 // SentPacketHandlerResetForRetryCall wrap *gomock.Call 400 type SentPacketHandlerResetForRetryCall struct { 401 *gomock.Call 402 } 403 404 // Return rewrite *gomock.Call.Return 405 func (c *SentPacketHandlerResetForRetryCall) Return(arg0 error) *SentPacketHandlerResetForRetryCall { 406 c.Call = c.Call.Return(arg0) 407 return c 408 } 409 410 // Do rewrite *gomock.Call.Do 411 func (c *SentPacketHandlerResetForRetryCall) Do(f func(time.Time) error) *SentPacketHandlerResetForRetryCall { 412 c.Call = c.Call.Do(f) 413 return c 414 } 415 416 // DoAndReturn rewrite *gomock.Call.DoAndReturn 417 func (c *SentPacketHandlerResetForRetryCall) DoAndReturn(f func(time.Time) error) *SentPacketHandlerResetForRetryCall { 418 c.Call = c.Call.DoAndReturn(f) 419 return c 420 } 421 422 // SendMode mocks base method. 423 func (m *MockSentPacketHandler) SendMode(arg0 time.Time) ackhandler.SendMode { 424 m.ctrl.T.Helper() 425 ret := m.ctrl.Call(m, "SendMode", arg0) 426 ret0, _ := ret[0].(ackhandler.SendMode) 427 return ret0 428 } 429 430 // SendMode indicates an expected call of SendMode. 431 func (mr *MockSentPacketHandlerMockRecorder) SendMode(arg0 any) *SentPacketHandlerSendModeCall { 432 mr.mock.ctrl.T.Helper() 433 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMode", reflect.TypeOf((*MockSentPacketHandler)(nil).SendMode), arg0) 434 return &SentPacketHandlerSendModeCall{Call: call} 435 } 436 437 // SentPacketHandlerSendModeCall wrap *gomock.Call 438 type SentPacketHandlerSendModeCall struct { 439 *gomock.Call 440 } 441 442 // Return rewrite *gomock.Call.Return 443 func (c *SentPacketHandlerSendModeCall) Return(arg0 ackhandler.SendMode) *SentPacketHandlerSendModeCall { 444 c.Call = c.Call.Return(arg0) 445 return c 446 } 447 448 // Do rewrite *gomock.Call.Do 449 func (c *SentPacketHandlerSendModeCall) Do(f func(time.Time) ackhandler.SendMode) *SentPacketHandlerSendModeCall { 450 c.Call = c.Call.Do(f) 451 return c 452 } 453 454 // DoAndReturn rewrite *gomock.Call.DoAndReturn 455 func (c *SentPacketHandlerSendModeCall) DoAndReturn(f func(time.Time) ackhandler.SendMode) *SentPacketHandlerSendModeCall { 456 c.Call = c.Call.DoAndReturn(f) 457 return c 458 } 459 460 // SentPacket mocks base method. 461 func (m *MockSentPacketHandler) SentPacket(arg0 time.Time, arg1, arg2 protocol.PacketNumber, arg3 []ackhandler.StreamFrame, arg4 []ackhandler.Frame, arg5 protocol.EncryptionLevel, arg6 protocol.ECN, arg7 protocol.ByteCount, arg8 bool) { 462 m.ctrl.T.Helper() 463 m.ctrl.Call(m, "SentPacket", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 464 } 465 466 // SentPacket indicates an expected call of SentPacket. 467 func (mr *MockSentPacketHandlerMockRecorder) SentPacket(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 any) *SentPacketHandlerSentPacketCall { 468 mr.mock.ctrl.T.Helper() 469 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentPacket", reflect.TypeOf((*MockSentPacketHandler)(nil).SentPacket), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 470 return &SentPacketHandlerSentPacketCall{Call: call} 471 } 472 473 // SentPacketHandlerSentPacketCall wrap *gomock.Call 474 type SentPacketHandlerSentPacketCall struct { 475 *gomock.Call 476 } 477 478 // Return rewrite *gomock.Call.Return 479 func (c *SentPacketHandlerSentPacketCall) Return() *SentPacketHandlerSentPacketCall { 480 c.Call = c.Call.Return() 481 return c 482 } 483 484 // Do rewrite *gomock.Call.Do 485 func (c *SentPacketHandlerSentPacketCall) Do(f func(time.Time, protocol.PacketNumber, protocol.PacketNumber, []ackhandler.StreamFrame, []ackhandler.Frame, protocol.EncryptionLevel, protocol.ECN, protocol.ByteCount, bool)) *SentPacketHandlerSentPacketCall { 486 c.Call = c.Call.Do(f) 487 return c 488 } 489 490 // DoAndReturn rewrite *gomock.Call.DoAndReturn 491 func (c *SentPacketHandlerSentPacketCall) DoAndReturn(f func(time.Time, protocol.PacketNumber, protocol.PacketNumber, []ackhandler.StreamFrame, []ackhandler.Frame, protocol.EncryptionLevel, protocol.ECN, protocol.ByteCount, bool)) *SentPacketHandlerSentPacketCall { 492 c.Call = c.Call.DoAndReturn(f) 493 return c 494 } 495 496 // SetHandshakeConfirmed mocks base method. 497 func (m *MockSentPacketHandler) SetHandshakeConfirmed() { 498 m.ctrl.T.Helper() 499 m.ctrl.Call(m, "SetHandshakeConfirmed") 500 } 501 502 // SetHandshakeConfirmed indicates an expected call of SetHandshakeConfirmed. 503 func (mr *MockSentPacketHandlerMockRecorder) SetHandshakeConfirmed() *SentPacketHandlerSetHandshakeConfirmedCall { 504 mr.mock.ctrl.T.Helper() 505 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHandshakeConfirmed", reflect.TypeOf((*MockSentPacketHandler)(nil).SetHandshakeConfirmed)) 506 return &SentPacketHandlerSetHandshakeConfirmedCall{Call: call} 507 } 508 509 // SentPacketHandlerSetHandshakeConfirmedCall wrap *gomock.Call 510 type SentPacketHandlerSetHandshakeConfirmedCall struct { 511 *gomock.Call 512 } 513 514 // Return rewrite *gomock.Call.Return 515 func (c *SentPacketHandlerSetHandshakeConfirmedCall) Return() *SentPacketHandlerSetHandshakeConfirmedCall { 516 c.Call = c.Call.Return() 517 return c 518 } 519 520 // Do rewrite *gomock.Call.Do 521 func (c *SentPacketHandlerSetHandshakeConfirmedCall) Do(f func()) *SentPacketHandlerSetHandshakeConfirmedCall { 522 c.Call = c.Call.Do(f) 523 return c 524 } 525 526 // DoAndReturn rewrite *gomock.Call.DoAndReturn 527 func (c *SentPacketHandlerSetHandshakeConfirmedCall) DoAndReturn(f func()) *SentPacketHandlerSetHandshakeConfirmedCall { 528 c.Call = c.Call.DoAndReturn(f) 529 return c 530 } 531 532 // SetMaxDatagramSize mocks base method. 533 func (m *MockSentPacketHandler) SetMaxDatagramSize(arg0 protocol.ByteCount) { 534 m.ctrl.T.Helper() 535 m.ctrl.Call(m, "SetMaxDatagramSize", arg0) 536 } 537 538 // SetMaxDatagramSize indicates an expected call of SetMaxDatagramSize. 539 func (mr *MockSentPacketHandlerMockRecorder) SetMaxDatagramSize(arg0 any) *SentPacketHandlerSetMaxDatagramSizeCall { 540 mr.mock.ctrl.T.Helper() 541 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxDatagramSize", reflect.TypeOf((*MockSentPacketHandler)(nil).SetMaxDatagramSize), arg0) 542 return &SentPacketHandlerSetMaxDatagramSizeCall{Call: call} 543 } 544 545 // SentPacketHandlerSetMaxDatagramSizeCall wrap *gomock.Call 546 type SentPacketHandlerSetMaxDatagramSizeCall struct { 547 *gomock.Call 548 } 549 550 // Return rewrite *gomock.Call.Return 551 func (c *SentPacketHandlerSetMaxDatagramSizeCall) Return() *SentPacketHandlerSetMaxDatagramSizeCall { 552 c.Call = c.Call.Return() 553 return c 554 } 555 556 // Do rewrite *gomock.Call.Do 557 func (c *SentPacketHandlerSetMaxDatagramSizeCall) Do(f func(protocol.ByteCount)) *SentPacketHandlerSetMaxDatagramSizeCall { 558 c.Call = c.Call.Do(f) 559 return c 560 } 561 562 // DoAndReturn rewrite *gomock.Call.DoAndReturn 563 func (c *SentPacketHandlerSetMaxDatagramSizeCall) DoAndReturn(f func(protocol.ByteCount)) *SentPacketHandlerSetMaxDatagramSizeCall { 564 c.Call = c.Call.DoAndReturn(f) 565 return c 566 } 567 568 // TimeUntilSend mocks base method. 569 func (m *MockSentPacketHandler) TimeUntilSend() time.Time { 570 m.ctrl.T.Helper() 571 ret := m.ctrl.Call(m, "TimeUntilSend") 572 ret0, _ := ret[0].(time.Time) 573 return ret0 574 } 575 576 // TimeUntilSend indicates an expected call of TimeUntilSend. 577 func (mr *MockSentPacketHandlerMockRecorder) TimeUntilSend() *SentPacketHandlerTimeUntilSendCall { 578 mr.mock.ctrl.T.Helper() 579 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TimeUntilSend", reflect.TypeOf((*MockSentPacketHandler)(nil).TimeUntilSend)) 580 return &SentPacketHandlerTimeUntilSendCall{Call: call} 581 } 582 583 // SentPacketHandlerTimeUntilSendCall wrap *gomock.Call 584 type SentPacketHandlerTimeUntilSendCall struct { 585 *gomock.Call 586 } 587 588 // Return rewrite *gomock.Call.Return 589 func (c *SentPacketHandlerTimeUntilSendCall) Return(arg0 time.Time) *SentPacketHandlerTimeUntilSendCall { 590 c.Call = c.Call.Return(arg0) 591 return c 592 } 593 594 // Do rewrite *gomock.Call.Do 595 func (c *SentPacketHandlerTimeUntilSendCall) Do(f func() time.Time) *SentPacketHandlerTimeUntilSendCall { 596 c.Call = c.Call.Do(f) 597 return c 598 } 599 600 // DoAndReturn rewrite *gomock.Call.DoAndReturn 601 func (c *SentPacketHandlerTimeUntilSendCall) DoAndReturn(f func() time.Time) *SentPacketHandlerTimeUntilSendCall { 602 c.Call = c.Call.DoAndReturn(f) 603 return c 604 }