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