github.com/TugasAkhir-QUIC/quic-go@v0.0.2-0.20240215011318-d20e25a9054c/internal/mocks/congestion.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/TugasAkhir-QUIC/quic-go/internal/congestion (interfaces: SendAlgorithmWithDebugInfos) 3 // 4 // Generated by this command: 5 // 6 // mockgen.exe -typed -build_flags=-tags=gomock -package mocks -destination congestion.go github.com/TugasAkhir-QUIC/quic-go/internal/congestion SendAlgorithmWithDebugInfos 7 // 8 // Package mocks is a generated GoMock package. 9 package mocks 10 11 import ( 12 reflect "reflect" 13 time "time" 14 15 congestion "github.com/TugasAkhir-QUIC/quic-go/internal/congestion" 16 protocol "github.com/TugasAkhir-QUIC/quic-go/internal/protocol" 17 gomock "go.uber.org/mock/gomock" 18 ) 19 20 // MockSendAlgorithmWithDebugInfos is a mock of SendAlgorithmWithDebugInfos interface. 21 type MockSendAlgorithmWithDebugInfos struct { 22 ctrl *gomock.Controller 23 recorder *MockSendAlgorithmWithDebugInfosMockRecorder 24 } 25 26 // MockSendAlgorithmWithDebugInfosMockRecorder is the mock recorder for MockSendAlgorithmWithDebugInfos. 27 type MockSendAlgorithmWithDebugInfosMockRecorder struct { 28 mock *MockSendAlgorithmWithDebugInfos 29 } 30 31 // NewMockSendAlgorithmWithDebugInfos creates a new mock instance. 32 func NewMockSendAlgorithmWithDebugInfos(ctrl *gomock.Controller) *MockSendAlgorithmWithDebugInfos { 33 mock := &MockSendAlgorithmWithDebugInfos{ctrl: ctrl} 34 mock.recorder = &MockSendAlgorithmWithDebugInfosMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockSendAlgorithmWithDebugInfos) EXPECT() *MockSendAlgorithmWithDebugInfosMockRecorder { 40 return m.recorder 41 } 42 43 // BandwidthEstimate mocks base method. 44 func (m *MockSendAlgorithmWithDebugInfos) BandwidthEstimate() congestion.Bandwidth { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "BandwidthEstimate") 47 ret0, _ := ret[0].(congestion.Bandwidth) 48 return ret0 49 } 50 51 // BandwidthEstimate indicates an expected call of BandwidthEstimate. 52 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) BandwidthEstimate() *SendAlgorithmWithDebugInfosBandwidthEstimateCall { 53 mr.mock.ctrl.T.Helper() 54 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BandwidthEstimate", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).BandwidthEstimate)) 55 return &SendAlgorithmWithDebugInfosBandwidthEstimateCall{Call: call} 56 } 57 58 // SendAlgorithmWithDebugInfosBandwidthEstimateCall wrap *gomock.Call 59 type SendAlgorithmWithDebugInfosBandwidthEstimateCall struct { 60 *gomock.Call 61 } 62 63 // Return rewrite *gomock.Call.Return 64 func (c *SendAlgorithmWithDebugInfosBandwidthEstimateCall) Return(arg0 congestion.Bandwidth) *SendAlgorithmWithDebugInfosBandwidthEstimateCall { 65 c.Call = c.Call.Return(arg0) 66 return c 67 } 68 69 // Do rewrite *gomock.Call.Do 70 func (c *SendAlgorithmWithDebugInfosBandwidthEstimateCall) Do(f func() congestion.Bandwidth) *SendAlgorithmWithDebugInfosBandwidthEstimateCall { 71 c.Call = c.Call.Do(f) 72 return c 73 } 74 75 // DoAndReturn rewrite *gomock.Call.DoAndReturn 76 func (c *SendAlgorithmWithDebugInfosBandwidthEstimateCall) DoAndReturn(f func() congestion.Bandwidth) *SendAlgorithmWithDebugInfosBandwidthEstimateCall { 77 c.Call = c.Call.DoAndReturn(f) 78 return c 79 } 80 81 // CanSend mocks base method. 82 func (m *MockSendAlgorithmWithDebugInfos) CanSend(arg0 protocol.ByteCount) bool { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "CanSend", arg0) 85 ret0, _ := ret[0].(bool) 86 return ret0 87 } 88 89 // CanSend indicates an expected call of CanSend. 90 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) CanSend(arg0 any) *SendAlgorithmWithDebugInfosCanSendCall { 91 mr.mock.ctrl.T.Helper() 92 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanSend", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).CanSend), arg0) 93 return &SendAlgorithmWithDebugInfosCanSendCall{Call: call} 94 } 95 96 // SendAlgorithmWithDebugInfosCanSendCall wrap *gomock.Call 97 type SendAlgorithmWithDebugInfosCanSendCall struct { 98 *gomock.Call 99 } 100 101 // Return rewrite *gomock.Call.Return 102 func (c *SendAlgorithmWithDebugInfosCanSendCall) Return(arg0 bool) *SendAlgorithmWithDebugInfosCanSendCall { 103 c.Call = c.Call.Return(arg0) 104 return c 105 } 106 107 // Do rewrite *gomock.Call.Do 108 func (c *SendAlgorithmWithDebugInfosCanSendCall) Do(f func(protocol.ByteCount) bool) *SendAlgorithmWithDebugInfosCanSendCall { 109 c.Call = c.Call.Do(f) 110 return c 111 } 112 113 // DoAndReturn rewrite *gomock.Call.DoAndReturn 114 func (c *SendAlgorithmWithDebugInfosCanSendCall) DoAndReturn(f func(protocol.ByteCount) bool) *SendAlgorithmWithDebugInfosCanSendCall { 115 c.Call = c.Call.DoAndReturn(f) 116 return c 117 } 118 119 // GetCongestionWindow mocks base method. 120 func (m *MockSendAlgorithmWithDebugInfos) GetCongestionWindow() protocol.ByteCount { 121 m.ctrl.T.Helper() 122 ret := m.ctrl.Call(m, "GetCongestionWindow") 123 ret0, _ := ret[0].(protocol.ByteCount) 124 return ret0 125 } 126 127 // GetCongestionWindow indicates an expected call of GetCongestionWindow. 128 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) GetCongestionWindow() *SendAlgorithmWithDebugInfosGetCongestionWindowCall { 129 mr.mock.ctrl.T.Helper() 130 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCongestionWindow", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).GetCongestionWindow)) 131 return &SendAlgorithmWithDebugInfosGetCongestionWindowCall{Call: call} 132 } 133 134 // SendAlgorithmWithDebugInfosGetCongestionWindowCall wrap *gomock.Call 135 type SendAlgorithmWithDebugInfosGetCongestionWindowCall struct { 136 *gomock.Call 137 } 138 139 // Return rewrite *gomock.Call.Return 140 func (c *SendAlgorithmWithDebugInfosGetCongestionWindowCall) Return(arg0 protocol.ByteCount) *SendAlgorithmWithDebugInfosGetCongestionWindowCall { 141 c.Call = c.Call.Return(arg0) 142 return c 143 } 144 145 // Do rewrite *gomock.Call.Do 146 func (c *SendAlgorithmWithDebugInfosGetCongestionWindowCall) Do(f func() protocol.ByteCount) *SendAlgorithmWithDebugInfosGetCongestionWindowCall { 147 c.Call = c.Call.Do(f) 148 return c 149 } 150 151 // DoAndReturn rewrite *gomock.Call.DoAndReturn 152 func (c *SendAlgorithmWithDebugInfosGetCongestionWindowCall) DoAndReturn(f func() protocol.ByteCount) *SendAlgorithmWithDebugInfosGetCongestionWindowCall { 153 c.Call = c.Call.DoAndReturn(f) 154 return c 155 } 156 157 // HasPacingBudget mocks base method. 158 func (m *MockSendAlgorithmWithDebugInfos) HasPacingBudget(arg0 time.Time) bool { 159 m.ctrl.T.Helper() 160 ret := m.ctrl.Call(m, "HasPacingBudget", arg0) 161 ret0, _ := ret[0].(bool) 162 return ret0 163 } 164 165 // HasPacingBudget indicates an expected call of HasPacingBudget. 166 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) HasPacingBudget(arg0 any) *SendAlgorithmWithDebugInfosHasPacingBudgetCall { 167 mr.mock.ctrl.T.Helper() 168 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasPacingBudget", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).HasPacingBudget), arg0) 169 return &SendAlgorithmWithDebugInfosHasPacingBudgetCall{Call: call} 170 } 171 172 // SendAlgorithmWithDebugInfosHasPacingBudgetCall wrap *gomock.Call 173 type SendAlgorithmWithDebugInfosHasPacingBudgetCall struct { 174 *gomock.Call 175 } 176 177 // Return rewrite *gomock.Call.Return 178 func (c *SendAlgorithmWithDebugInfosHasPacingBudgetCall) Return(arg0 bool) *SendAlgorithmWithDebugInfosHasPacingBudgetCall { 179 c.Call = c.Call.Return(arg0) 180 return c 181 } 182 183 // Do rewrite *gomock.Call.Do 184 func (c *SendAlgorithmWithDebugInfosHasPacingBudgetCall) Do(f func(time.Time) bool) *SendAlgorithmWithDebugInfosHasPacingBudgetCall { 185 c.Call = c.Call.Do(f) 186 return c 187 } 188 189 // DoAndReturn rewrite *gomock.Call.DoAndReturn 190 func (c *SendAlgorithmWithDebugInfosHasPacingBudgetCall) DoAndReturn(f func(time.Time) bool) *SendAlgorithmWithDebugInfosHasPacingBudgetCall { 191 c.Call = c.Call.DoAndReturn(f) 192 return c 193 } 194 195 // InRecovery mocks base method. 196 func (m *MockSendAlgorithmWithDebugInfos) InRecovery() bool { 197 m.ctrl.T.Helper() 198 ret := m.ctrl.Call(m, "InRecovery") 199 ret0, _ := ret[0].(bool) 200 return ret0 201 } 202 203 // InRecovery indicates an expected call of InRecovery. 204 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) InRecovery() *SendAlgorithmWithDebugInfosInRecoveryCall { 205 mr.mock.ctrl.T.Helper() 206 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InRecovery", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).InRecovery)) 207 return &SendAlgorithmWithDebugInfosInRecoveryCall{Call: call} 208 } 209 210 // SendAlgorithmWithDebugInfosInRecoveryCall wrap *gomock.Call 211 type SendAlgorithmWithDebugInfosInRecoveryCall struct { 212 *gomock.Call 213 } 214 215 // Return rewrite *gomock.Call.Return 216 func (c *SendAlgorithmWithDebugInfosInRecoveryCall) Return(arg0 bool) *SendAlgorithmWithDebugInfosInRecoveryCall { 217 c.Call = c.Call.Return(arg0) 218 return c 219 } 220 221 // Do rewrite *gomock.Call.Do 222 func (c *SendAlgorithmWithDebugInfosInRecoveryCall) Do(f func() bool) *SendAlgorithmWithDebugInfosInRecoveryCall { 223 c.Call = c.Call.Do(f) 224 return c 225 } 226 227 // DoAndReturn rewrite *gomock.Call.DoAndReturn 228 func (c *SendAlgorithmWithDebugInfosInRecoveryCall) DoAndReturn(f func() bool) *SendAlgorithmWithDebugInfosInRecoveryCall { 229 c.Call = c.Call.DoAndReturn(f) 230 return c 231 } 232 233 // InSlowStart mocks base method. 234 func (m *MockSendAlgorithmWithDebugInfos) InSlowStart() bool { 235 m.ctrl.T.Helper() 236 ret := m.ctrl.Call(m, "InSlowStart") 237 ret0, _ := ret[0].(bool) 238 return ret0 239 } 240 241 // InSlowStart indicates an expected call of InSlowStart. 242 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) InSlowStart() *SendAlgorithmWithDebugInfosInSlowStartCall { 243 mr.mock.ctrl.T.Helper() 244 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InSlowStart", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).InSlowStart)) 245 return &SendAlgorithmWithDebugInfosInSlowStartCall{Call: call} 246 } 247 248 // SendAlgorithmWithDebugInfosInSlowStartCall wrap *gomock.Call 249 type SendAlgorithmWithDebugInfosInSlowStartCall struct { 250 *gomock.Call 251 } 252 253 // Return rewrite *gomock.Call.Return 254 func (c *SendAlgorithmWithDebugInfosInSlowStartCall) Return(arg0 bool) *SendAlgorithmWithDebugInfosInSlowStartCall { 255 c.Call = c.Call.Return(arg0) 256 return c 257 } 258 259 // Do rewrite *gomock.Call.Do 260 func (c *SendAlgorithmWithDebugInfosInSlowStartCall) Do(f func() bool) *SendAlgorithmWithDebugInfosInSlowStartCall { 261 c.Call = c.Call.Do(f) 262 return c 263 } 264 265 // DoAndReturn rewrite *gomock.Call.DoAndReturn 266 func (c *SendAlgorithmWithDebugInfosInSlowStartCall) DoAndReturn(f func() bool) *SendAlgorithmWithDebugInfosInSlowStartCall { 267 c.Call = c.Call.DoAndReturn(f) 268 return c 269 } 270 271 // MaybeExitSlowStart mocks base method. 272 func (m *MockSendAlgorithmWithDebugInfos) MaybeExitSlowStart() { 273 m.ctrl.T.Helper() 274 m.ctrl.Call(m, "MaybeExitSlowStart") 275 } 276 277 // MaybeExitSlowStart indicates an expected call of MaybeExitSlowStart. 278 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) MaybeExitSlowStart() *SendAlgorithmWithDebugInfosMaybeExitSlowStartCall { 279 mr.mock.ctrl.T.Helper() 280 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaybeExitSlowStart", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).MaybeExitSlowStart)) 281 return &SendAlgorithmWithDebugInfosMaybeExitSlowStartCall{Call: call} 282 } 283 284 // SendAlgorithmWithDebugInfosMaybeExitSlowStartCall wrap *gomock.Call 285 type SendAlgorithmWithDebugInfosMaybeExitSlowStartCall struct { 286 *gomock.Call 287 } 288 289 // Return rewrite *gomock.Call.Return 290 func (c *SendAlgorithmWithDebugInfosMaybeExitSlowStartCall) Return() *SendAlgorithmWithDebugInfosMaybeExitSlowStartCall { 291 c.Call = c.Call.Return() 292 return c 293 } 294 295 // Do rewrite *gomock.Call.Do 296 func (c *SendAlgorithmWithDebugInfosMaybeExitSlowStartCall) Do(f func()) *SendAlgorithmWithDebugInfosMaybeExitSlowStartCall { 297 c.Call = c.Call.Do(f) 298 return c 299 } 300 301 // DoAndReturn rewrite *gomock.Call.DoAndReturn 302 func (c *SendAlgorithmWithDebugInfosMaybeExitSlowStartCall) DoAndReturn(f func()) *SendAlgorithmWithDebugInfosMaybeExitSlowStartCall { 303 c.Call = c.Call.DoAndReturn(f) 304 return c 305 } 306 307 // OnCongestionEvent mocks base method. 308 func (m *MockSendAlgorithmWithDebugInfos) OnCongestionEvent(arg0 protocol.PacketNumber, arg1, arg2 protocol.ByteCount) { 309 m.ctrl.T.Helper() 310 m.ctrl.Call(m, "OnCongestionEvent", arg0, arg1, arg2) 311 } 312 313 // OnCongestionEvent indicates an expected call of OnCongestionEvent. 314 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) OnCongestionEvent(arg0, arg1, arg2 any) *SendAlgorithmWithDebugInfosOnCongestionEventCall { 315 mr.mock.ctrl.T.Helper() 316 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnCongestionEvent", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).OnCongestionEvent), arg0, arg1, arg2) 317 return &SendAlgorithmWithDebugInfosOnCongestionEventCall{Call: call} 318 } 319 320 // SendAlgorithmWithDebugInfosOnCongestionEventCall wrap *gomock.Call 321 type SendAlgorithmWithDebugInfosOnCongestionEventCall struct { 322 *gomock.Call 323 } 324 325 // Return rewrite *gomock.Call.Return 326 func (c *SendAlgorithmWithDebugInfosOnCongestionEventCall) Return() *SendAlgorithmWithDebugInfosOnCongestionEventCall { 327 c.Call = c.Call.Return() 328 return c 329 } 330 331 // Do rewrite *gomock.Call.Do 332 func (c *SendAlgorithmWithDebugInfosOnCongestionEventCall) Do(f func(protocol.PacketNumber, protocol.ByteCount, protocol.ByteCount)) *SendAlgorithmWithDebugInfosOnCongestionEventCall { 333 c.Call = c.Call.Do(f) 334 return c 335 } 336 337 // DoAndReturn rewrite *gomock.Call.DoAndReturn 338 func (c *SendAlgorithmWithDebugInfosOnCongestionEventCall) DoAndReturn(f func(protocol.PacketNumber, protocol.ByteCount, protocol.ByteCount)) *SendAlgorithmWithDebugInfosOnCongestionEventCall { 339 c.Call = c.Call.DoAndReturn(f) 340 return c 341 } 342 343 // OnPacketAcked mocks base method. 344 func (m *MockSendAlgorithmWithDebugInfos) OnPacketAcked(arg0 protocol.PacketNumber, arg1, arg2 protocol.ByteCount, arg3 time.Time) { 345 m.ctrl.T.Helper() 346 m.ctrl.Call(m, "OnPacketAcked", arg0, arg1, arg2, arg3) 347 } 348 349 // OnPacketAcked indicates an expected call of OnPacketAcked. 350 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) OnPacketAcked(arg0, arg1, arg2, arg3 any) *SendAlgorithmWithDebugInfosOnPacketAckedCall { 351 mr.mock.ctrl.T.Helper() 352 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPacketAcked", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).OnPacketAcked), arg0, arg1, arg2, arg3) 353 return &SendAlgorithmWithDebugInfosOnPacketAckedCall{Call: call} 354 } 355 356 // SendAlgorithmWithDebugInfosOnPacketAckedCall wrap *gomock.Call 357 type SendAlgorithmWithDebugInfosOnPacketAckedCall struct { 358 *gomock.Call 359 } 360 361 // Return rewrite *gomock.Call.Return 362 func (c *SendAlgorithmWithDebugInfosOnPacketAckedCall) Return() *SendAlgorithmWithDebugInfosOnPacketAckedCall { 363 c.Call = c.Call.Return() 364 return c 365 } 366 367 // Do rewrite *gomock.Call.Do 368 func (c *SendAlgorithmWithDebugInfosOnPacketAckedCall) Do(f func(protocol.PacketNumber, protocol.ByteCount, protocol.ByteCount, time.Time)) *SendAlgorithmWithDebugInfosOnPacketAckedCall { 369 c.Call = c.Call.Do(f) 370 return c 371 } 372 373 // DoAndReturn rewrite *gomock.Call.DoAndReturn 374 func (c *SendAlgorithmWithDebugInfosOnPacketAckedCall) DoAndReturn(f func(protocol.PacketNumber, protocol.ByteCount, protocol.ByteCount, time.Time)) *SendAlgorithmWithDebugInfosOnPacketAckedCall { 375 c.Call = c.Call.DoAndReturn(f) 376 return c 377 } 378 379 // OnPacketSent mocks base method. 380 func (m *MockSendAlgorithmWithDebugInfos) OnPacketSent(arg0 time.Time, arg1 protocol.ByteCount, arg2 protocol.PacketNumber, arg3 protocol.ByteCount, arg4 bool) { 381 m.ctrl.T.Helper() 382 m.ctrl.Call(m, "OnPacketSent", arg0, arg1, arg2, arg3, arg4) 383 } 384 385 // OnPacketSent indicates an expected call of OnPacketSent. 386 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) OnPacketSent(arg0, arg1, arg2, arg3, arg4 any) *SendAlgorithmWithDebugInfosOnPacketSentCall { 387 mr.mock.ctrl.T.Helper() 388 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPacketSent", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).OnPacketSent), arg0, arg1, arg2, arg3, arg4) 389 return &SendAlgorithmWithDebugInfosOnPacketSentCall{Call: call} 390 } 391 392 // SendAlgorithmWithDebugInfosOnPacketSentCall wrap *gomock.Call 393 type SendAlgorithmWithDebugInfosOnPacketSentCall struct { 394 *gomock.Call 395 } 396 397 // Return rewrite *gomock.Call.Return 398 func (c *SendAlgorithmWithDebugInfosOnPacketSentCall) Return() *SendAlgorithmWithDebugInfosOnPacketSentCall { 399 c.Call = c.Call.Return() 400 return c 401 } 402 403 // Do rewrite *gomock.Call.Do 404 func (c *SendAlgorithmWithDebugInfosOnPacketSentCall) Do(f func(time.Time, protocol.ByteCount, protocol.PacketNumber, protocol.ByteCount, bool)) *SendAlgorithmWithDebugInfosOnPacketSentCall { 405 c.Call = c.Call.Do(f) 406 return c 407 } 408 409 // DoAndReturn rewrite *gomock.Call.DoAndReturn 410 func (c *SendAlgorithmWithDebugInfosOnPacketSentCall) DoAndReturn(f func(time.Time, protocol.ByteCount, protocol.PacketNumber, protocol.ByteCount, bool)) *SendAlgorithmWithDebugInfosOnPacketSentCall { 411 c.Call = c.Call.DoAndReturn(f) 412 return c 413 } 414 415 // OnRetransmissionTimeout mocks base method. 416 func (m *MockSendAlgorithmWithDebugInfos) OnRetransmissionTimeout(arg0 bool) { 417 m.ctrl.T.Helper() 418 m.ctrl.Call(m, "OnRetransmissionTimeout", arg0) 419 } 420 421 // OnRetransmissionTimeout indicates an expected call of OnRetransmissionTimeout. 422 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) OnRetransmissionTimeout(arg0 any) *SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall { 423 mr.mock.ctrl.T.Helper() 424 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnRetransmissionTimeout", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).OnRetransmissionTimeout), arg0) 425 return &SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall{Call: call} 426 } 427 428 // SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall wrap *gomock.Call 429 type SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall struct { 430 *gomock.Call 431 } 432 433 // Return rewrite *gomock.Call.Return 434 func (c *SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall) Return() *SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall { 435 c.Call = c.Call.Return() 436 return c 437 } 438 439 // Do rewrite *gomock.Call.Do 440 func (c *SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall) Do(f func(bool)) *SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall { 441 c.Call = c.Call.Do(f) 442 return c 443 } 444 445 // DoAndReturn rewrite *gomock.Call.DoAndReturn 446 func (c *SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall) DoAndReturn(f func(bool)) *SendAlgorithmWithDebugInfosOnRetransmissionTimeoutCall { 447 c.Call = c.Call.DoAndReturn(f) 448 return c 449 } 450 451 // SetMaxDatagramSize mocks base method. 452 func (m *MockSendAlgorithmWithDebugInfos) SetMaxDatagramSize(arg0 protocol.ByteCount) { 453 m.ctrl.T.Helper() 454 m.ctrl.Call(m, "SetMaxDatagramSize", arg0) 455 } 456 457 // SetMaxDatagramSize indicates an expected call of SetMaxDatagramSize. 458 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) SetMaxDatagramSize(arg0 any) *SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall { 459 mr.mock.ctrl.T.Helper() 460 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxDatagramSize", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).SetMaxDatagramSize), arg0) 461 return &SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall{Call: call} 462 } 463 464 // SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall wrap *gomock.Call 465 type SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall struct { 466 *gomock.Call 467 } 468 469 // Return rewrite *gomock.Call.Return 470 func (c *SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall) Return() *SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall { 471 c.Call = c.Call.Return() 472 return c 473 } 474 475 // Do rewrite *gomock.Call.Do 476 func (c *SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall) Do(f func(protocol.ByteCount)) *SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall { 477 c.Call = c.Call.Do(f) 478 return c 479 } 480 481 // DoAndReturn rewrite *gomock.Call.DoAndReturn 482 func (c *SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall) DoAndReturn(f func(protocol.ByteCount)) *SendAlgorithmWithDebugInfosSetMaxDatagramSizeCall { 483 c.Call = c.Call.DoAndReturn(f) 484 return c 485 } 486 487 // TimeUntilSend mocks base method. 488 func (m *MockSendAlgorithmWithDebugInfos) TimeUntilSend(arg0 protocol.ByteCount) time.Time { 489 m.ctrl.T.Helper() 490 ret := m.ctrl.Call(m, "TimeUntilSend", arg0) 491 ret0, _ := ret[0].(time.Time) 492 return ret0 493 } 494 495 // TimeUntilSend indicates an expected call of TimeUntilSend. 496 func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) TimeUntilSend(arg0 any) *SendAlgorithmWithDebugInfosTimeUntilSendCall { 497 mr.mock.ctrl.T.Helper() 498 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TimeUntilSend", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).TimeUntilSend), arg0) 499 return &SendAlgorithmWithDebugInfosTimeUntilSendCall{Call: call} 500 } 501 502 // SendAlgorithmWithDebugInfosTimeUntilSendCall wrap *gomock.Call 503 type SendAlgorithmWithDebugInfosTimeUntilSendCall struct { 504 *gomock.Call 505 } 506 507 // Return rewrite *gomock.Call.Return 508 func (c *SendAlgorithmWithDebugInfosTimeUntilSendCall) Return(arg0 time.Time) *SendAlgorithmWithDebugInfosTimeUntilSendCall { 509 c.Call = c.Call.Return(arg0) 510 return c 511 } 512 513 // Do rewrite *gomock.Call.Do 514 func (c *SendAlgorithmWithDebugInfosTimeUntilSendCall) Do(f func(protocol.ByteCount) time.Time) *SendAlgorithmWithDebugInfosTimeUntilSendCall { 515 c.Call = c.Call.Do(f) 516 return c 517 } 518 519 // DoAndReturn rewrite *gomock.Call.DoAndReturn 520 func (c *SendAlgorithmWithDebugInfosTimeUntilSendCall) DoAndReturn(f func(protocol.ByteCount) time.Time) *SendAlgorithmWithDebugInfosTimeUntilSendCall { 521 c.Call = c.Call.DoAndReturn(f) 522 return c 523 }