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