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