github.com/quic-go/quic-go@v0.44.0/mock_quic_conn_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/quic-go/quic-go (interfaces: QUICConn) 3 // 4 // Generated by this command: 5 // 6 // mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_quic_conn_test.go github.com/quic-go/quic-go QUICConn 7 // 8 9 // Package quic is a generated GoMock package. 10 package quic 11 12 import ( 13 context "context" 14 net "net" 15 reflect "reflect" 16 17 qerr "github.com/quic-go/quic-go/internal/qerr" 18 gomock "go.uber.org/mock/gomock" 19 ) 20 21 // MockQUICConn is a mock of QUICConn interface. 22 type MockQUICConn struct { 23 ctrl *gomock.Controller 24 recorder *MockQUICConnMockRecorder 25 } 26 27 // MockQUICConnMockRecorder is the mock recorder for MockQUICConn. 28 type MockQUICConnMockRecorder struct { 29 mock *MockQUICConn 30 } 31 32 // NewMockQUICConn creates a new mock instance. 33 func NewMockQUICConn(ctrl *gomock.Controller) *MockQUICConn { 34 mock := &MockQUICConn{ctrl: ctrl} 35 mock.recorder = &MockQUICConnMockRecorder{mock} 36 return mock 37 } 38 39 // EXPECT returns an object that allows the caller to indicate expected use. 40 func (m *MockQUICConn) EXPECT() *MockQUICConnMockRecorder { 41 return m.recorder 42 } 43 44 // AcceptStream mocks base method. 45 func (m *MockQUICConn) AcceptStream(arg0 context.Context) (Stream, error) { 46 m.ctrl.T.Helper() 47 ret := m.ctrl.Call(m, "AcceptStream", arg0) 48 ret0, _ := ret[0].(Stream) 49 ret1, _ := ret[1].(error) 50 return ret0, ret1 51 } 52 53 // AcceptStream indicates an expected call of AcceptStream. 54 func (mr *MockQUICConnMockRecorder) AcceptStream(arg0 any) *MockQUICConnAcceptStreamCall { 55 mr.mock.ctrl.T.Helper() 56 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptStream", reflect.TypeOf((*MockQUICConn)(nil).AcceptStream), arg0) 57 return &MockQUICConnAcceptStreamCall{Call: call} 58 } 59 60 // MockQUICConnAcceptStreamCall wrap *gomock.Call 61 type MockQUICConnAcceptStreamCall struct { 62 *gomock.Call 63 } 64 65 // Return rewrite *gomock.Call.Return 66 func (c *MockQUICConnAcceptStreamCall) Return(arg0 Stream, arg1 error) *MockQUICConnAcceptStreamCall { 67 c.Call = c.Call.Return(arg0, arg1) 68 return c 69 } 70 71 // Do rewrite *gomock.Call.Do 72 func (c *MockQUICConnAcceptStreamCall) Do(f func(context.Context) (Stream, error)) *MockQUICConnAcceptStreamCall { 73 c.Call = c.Call.Do(f) 74 return c 75 } 76 77 // DoAndReturn rewrite *gomock.Call.DoAndReturn 78 func (c *MockQUICConnAcceptStreamCall) DoAndReturn(f func(context.Context) (Stream, error)) *MockQUICConnAcceptStreamCall { 79 c.Call = c.Call.DoAndReturn(f) 80 return c 81 } 82 83 // AcceptUniStream mocks base method. 84 func (m *MockQUICConn) AcceptUniStream(arg0 context.Context) (ReceiveStream, error) { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "AcceptUniStream", arg0) 87 ret0, _ := ret[0].(ReceiveStream) 88 ret1, _ := ret[1].(error) 89 return ret0, ret1 90 } 91 92 // AcceptUniStream indicates an expected call of AcceptUniStream. 93 func (mr *MockQUICConnMockRecorder) AcceptUniStream(arg0 any) *MockQUICConnAcceptUniStreamCall { 94 mr.mock.ctrl.T.Helper() 95 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptUniStream", reflect.TypeOf((*MockQUICConn)(nil).AcceptUniStream), arg0) 96 return &MockQUICConnAcceptUniStreamCall{Call: call} 97 } 98 99 // MockQUICConnAcceptUniStreamCall wrap *gomock.Call 100 type MockQUICConnAcceptUniStreamCall struct { 101 *gomock.Call 102 } 103 104 // Return rewrite *gomock.Call.Return 105 func (c *MockQUICConnAcceptUniStreamCall) Return(arg0 ReceiveStream, arg1 error) *MockQUICConnAcceptUniStreamCall { 106 c.Call = c.Call.Return(arg0, arg1) 107 return c 108 } 109 110 // Do rewrite *gomock.Call.Do 111 func (c *MockQUICConnAcceptUniStreamCall) Do(f func(context.Context) (ReceiveStream, error)) *MockQUICConnAcceptUniStreamCall { 112 c.Call = c.Call.Do(f) 113 return c 114 } 115 116 // DoAndReturn rewrite *gomock.Call.DoAndReturn 117 func (c *MockQUICConnAcceptUniStreamCall) DoAndReturn(f func(context.Context) (ReceiveStream, error)) *MockQUICConnAcceptUniStreamCall { 118 c.Call = c.Call.DoAndReturn(f) 119 return c 120 } 121 122 // CloseWithError mocks base method. 123 func (m *MockQUICConn) CloseWithError(arg0 qerr.ApplicationErrorCode, arg1 string) error { 124 m.ctrl.T.Helper() 125 ret := m.ctrl.Call(m, "CloseWithError", arg0, arg1) 126 ret0, _ := ret[0].(error) 127 return ret0 128 } 129 130 // CloseWithError indicates an expected call of CloseWithError. 131 func (mr *MockQUICConnMockRecorder) CloseWithError(arg0, arg1 any) *MockQUICConnCloseWithErrorCall { 132 mr.mock.ctrl.T.Helper() 133 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseWithError", reflect.TypeOf((*MockQUICConn)(nil).CloseWithError), arg0, arg1) 134 return &MockQUICConnCloseWithErrorCall{Call: call} 135 } 136 137 // MockQUICConnCloseWithErrorCall wrap *gomock.Call 138 type MockQUICConnCloseWithErrorCall struct { 139 *gomock.Call 140 } 141 142 // Return rewrite *gomock.Call.Return 143 func (c *MockQUICConnCloseWithErrorCall) Return(arg0 error) *MockQUICConnCloseWithErrorCall { 144 c.Call = c.Call.Return(arg0) 145 return c 146 } 147 148 // Do rewrite *gomock.Call.Do 149 func (c *MockQUICConnCloseWithErrorCall) Do(f func(qerr.ApplicationErrorCode, string) error) *MockQUICConnCloseWithErrorCall { 150 c.Call = c.Call.Do(f) 151 return c 152 } 153 154 // DoAndReturn rewrite *gomock.Call.DoAndReturn 155 func (c *MockQUICConnCloseWithErrorCall) DoAndReturn(f func(qerr.ApplicationErrorCode, string) error) *MockQUICConnCloseWithErrorCall { 156 c.Call = c.Call.DoAndReturn(f) 157 return c 158 } 159 160 // ConnectionState mocks base method. 161 func (m *MockQUICConn) ConnectionState() ConnectionState { 162 m.ctrl.T.Helper() 163 ret := m.ctrl.Call(m, "ConnectionState") 164 ret0, _ := ret[0].(ConnectionState) 165 return ret0 166 } 167 168 // ConnectionState indicates an expected call of ConnectionState. 169 func (mr *MockQUICConnMockRecorder) ConnectionState() *MockQUICConnConnectionStateCall { 170 mr.mock.ctrl.T.Helper() 171 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectionState", reflect.TypeOf((*MockQUICConn)(nil).ConnectionState)) 172 return &MockQUICConnConnectionStateCall{Call: call} 173 } 174 175 // MockQUICConnConnectionStateCall wrap *gomock.Call 176 type MockQUICConnConnectionStateCall struct { 177 *gomock.Call 178 } 179 180 // Return rewrite *gomock.Call.Return 181 func (c *MockQUICConnConnectionStateCall) Return(arg0 ConnectionState) *MockQUICConnConnectionStateCall { 182 c.Call = c.Call.Return(arg0) 183 return c 184 } 185 186 // Do rewrite *gomock.Call.Do 187 func (c *MockQUICConnConnectionStateCall) Do(f func() ConnectionState) *MockQUICConnConnectionStateCall { 188 c.Call = c.Call.Do(f) 189 return c 190 } 191 192 // DoAndReturn rewrite *gomock.Call.DoAndReturn 193 func (c *MockQUICConnConnectionStateCall) DoAndReturn(f func() ConnectionState) *MockQUICConnConnectionStateCall { 194 c.Call = c.Call.DoAndReturn(f) 195 return c 196 } 197 198 // Context mocks base method. 199 func (m *MockQUICConn) Context() context.Context { 200 m.ctrl.T.Helper() 201 ret := m.ctrl.Call(m, "Context") 202 ret0, _ := ret[0].(context.Context) 203 return ret0 204 } 205 206 // Context indicates an expected call of Context. 207 func (mr *MockQUICConnMockRecorder) Context() *MockQUICConnContextCall { 208 mr.mock.ctrl.T.Helper() 209 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockQUICConn)(nil).Context)) 210 return &MockQUICConnContextCall{Call: call} 211 } 212 213 // MockQUICConnContextCall wrap *gomock.Call 214 type MockQUICConnContextCall struct { 215 *gomock.Call 216 } 217 218 // Return rewrite *gomock.Call.Return 219 func (c *MockQUICConnContextCall) Return(arg0 context.Context) *MockQUICConnContextCall { 220 c.Call = c.Call.Return(arg0) 221 return c 222 } 223 224 // Do rewrite *gomock.Call.Do 225 func (c *MockQUICConnContextCall) Do(f func() context.Context) *MockQUICConnContextCall { 226 c.Call = c.Call.Do(f) 227 return c 228 } 229 230 // DoAndReturn rewrite *gomock.Call.DoAndReturn 231 func (c *MockQUICConnContextCall) DoAndReturn(f func() context.Context) *MockQUICConnContextCall { 232 c.Call = c.Call.DoAndReturn(f) 233 return c 234 } 235 236 // HandshakeComplete mocks base method. 237 func (m *MockQUICConn) HandshakeComplete() <-chan struct{} { 238 m.ctrl.T.Helper() 239 ret := m.ctrl.Call(m, "HandshakeComplete") 240 ret0, _ := ret[0].(<-chan struct{}) 241 return ret0 242 } 243 244 // HandshakeComplete indicates an expected call of HandshakeComplete. 245 func (mr *MockQUICConnMockRecorder) HandshakeComplete() *MockQUICConnHandshakeCompleteCall { 246 mr.mock.ctrl.T.Helper() 247 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandshakeComplete", reflect.TypeOf((*MockQUICConn)(nil).HandshakeComplete)) 248 return &MockQUICConnHandshakeCompleteCall{Call: call} 249 } 250 251 // MockQUICConnHandshakeCompleteCall wrap *gomock.Call 252 type MockQUICConnHandshakeCompleteCall struct { 253 *gomock.Call 254 } 255 256 // Return rewrite *gomock.Call.Return 257 func (c *MockQUICConnHandshakeCompleteCall) Return(arg0 <-chan struct{}) *MockQUICConnHandshakeCompleteCall { 258 c.Call = c.Call.Return(arg0) 259 return c 260 } 261 262 // Do rewrite *gomock.Call.Do 263 func (c *MockQUICConnHandshakeCompleteCall) Do(f func() <-chan struct{}) *MockQUICConnHandshakeCompleteCall { 264 c.Call = c.Call.Do(f) 265 return c 266 } 267 268 // DoAndReturn rewrite *gomock.Call.DoAndReturn 269 func (c *MockQUICConnHandshakeCompleteCall) DoAndReturn(f func() <-chan struct{}) *MockQUICConnHandshakeCompleteCall { 270 c.Call = c.Call.DoAndReturn(f) 271 return c 272 } 273 274 // LocalAddr mocks base method. 275 func (m *MockQUICConn) LocalAddr() net.Addr { 276 m.ctrl.T.Helper() 277 ret := m.ctrl.Call(m, "LocalAddr") 278 ret0, _ := ret[0].(net.Addr) 279 return ret0 280 } 281 282 // LocalAddr indicates an expected call of LocalAddr. 283 func (mr *MockQUICConnMockRecorder) LocalAddr() *MockQUICConnLocalAddrCall { 284 mr.mock.ctrl.T.Helper() 285 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalAddr", reflect.TypeOf((*MockQUICConn)(nil).LocalAddr)) 286 return &MockQUICConnLocalAddrCall{Call: call} 287 } 288 289 // MockQUICConnLocalAddrCall wrap *gomock.Call 290 type MockQUICConnLocalAddrCall struct { 291 *gomock.Call 292 } 293 294 // Return rewrite *gomock.Call.Return 295 func (c *MockQUICConnLocalAddrCall) Return(arg0 net.Addr) *MockQUICConnLocalAddrCall { 296 c.Call = c.Call.Return(arg0) 297 return c 298 } 299 300 // Do rewrite *gomock.Call.Do 301 func (c *MockQUICConnLocalAddrCall) Do(f func() net.Addr) *MockQUICConnLocalAddrCall { 302 c.Call = c.Call.Do(f) 303 return c 304 } 305 306 // DoAndReturn rewrite *gomock.Call.DoAndReturn 307 func (c *MockQUICConnLocalAddrCall) DoAndReturn(f func() net.Addr) *MockQUICConnLocalAddrCall { 308 c.Call = c.Call.DoAndReturn(f) 309 return c 310 } 311 312 // NextConnection mocks base method. 313 func (m *MockQUICConn) NextConnection() Connection { 314 m.ctrl.T.Helper() 315 ret := m.ctrl.Call(m, "NextConnection") 316 ret0, _ := ret[0].(Connection) 317 return ret0 318 } 319 320 // NextConnection indicates an expected call of NextConnection. 321 func (mr *MockQUICConnMockRecorder) NextConnection() *MockQUICConnNextConnectionCall { 322 mr.mock.ctrl.T.Helper() 323 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextConnection", reflect.TypeOf((*MockQUICConn)(nil).NextConnection)) 324 return &MockQUICConnNextConnectionCall{Call: call} 325 } 326 327 // MockQUICConnNextConnectionCall wrap *gomock.Call 328 type MockQUICConnNextConnectionCall struct { 329 *gomock.Call 330 } 331 332 // Return rewrite *gomock.Call.Return 333 func (c *MockQUICConnNextConnectionCall) Return(arg0 Connection) *MockQUICConnNextConnectionCall { 334 c.Call = c.Call.Return(arg0) 335 return c 336 } 337 338 // Do rewrite *gomock.Call.Do 339 func (c *MockQUICConnNextConnectionCall) Do(f func() Connection) *MockQUICConnNextConnectionCall { 340 c.Call = c.Call.Do(f) 341 return c 342 } 343 344 // DoAndReturn rewrite *gomock.Call.DoAndReturn 345 func (c *MockQUICConnNextConnectionCall) DoAndReturn(f func() Connection) *MockQUICConnNextConnectionCall { 346 c.Call = c.Call.DoAndReturn(f) 347 return c 348 } 349 350 // OpenStream mocks base method. 351 func (m *MockQUICConn) OpenStream() (Stream, error) { 352 m.ctrl.T.Helper() 353 ret := m.ctrl.Call(m, "OpenStream") 354 ret0, _ := ret[0].(Stream) 355 ret1, _ := ret[1].(error) 356 return ret0, ret1 357 } 358 359 // OpenStream indicates an expected call of OpenStream. 360 func (mr *MockQUICConnMockRecorder) OpenStream() *MockQUICConnOpenStreamCall { 361 mr.mock.ctrl.T.Helper() 362 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStream", reflect.TypeOf((*MockQUICConn)(nil).OpenStream)) 363 return &MockQUICConnOpenStreamCall{Call: call} 364 } 365 366 // MockQUICConnOpenStreamCall wrap *gomock.Call 367 type MockQUICConnOpenStreamCall struct { 368 *gomock.Call 369 } 370 371 // Return rewrite *gomock.Call.Return 372 func (c *MockQUICConnOpenStreamCall) Return(arg0 Stream, arg1 error) *MockQUICConnOpenStreamCall { 373 c.Call = c.Call.Return(arg0, arg1) 374 return c 375 } 376 377 // Do rewrite *gomock.Call.Do 378 func (c *MockQUICConnOpenStreamCall) Do(f func() (Stream, error)) *MockQUICConnOpenStreamCall { 379 c.Call = c.Call.Do(f) 380 return c 381 } 382 383 // DoAndReturn rewrite *gomock.Call.DoAndReturn 384 func (c *MockQUICConnOpenStreamCall) DoAndReturn(f func() (Stream, error)) *MockQUICConnOpenStreamCall { 385 c.Call = c.Call.DoAndReturn(f) 386 return c 387 } 388 389 // OpenStreamSync mocks base method. 390 func (m *MockQUICConn) OpenStreamSync(arg0 context.Context) (Stream, error) { 391 m.ctrl.T.Helper() 392 ret := m.ctrl.Call(m, "OpenStreamSync", arg0) 393 ret0, _ := ret[0].(Stream) 394 ret1, _ := ret[1].(error) 395 return ret0, ret1 396 } 397 398 // OpenStreamSync indicates an expected call of OpenStreamSync. 399 func (mr *MockQUICConnMockRecorder) OpenStreamSync(arg0 any) *MockQUICConnOpenStreamSyncCall { 400 mr.mock.ctrl.T.Helper() 401 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStreamSync", reflect.TypeOf((*MockQUICConn)(nil).OpenStreamSync), arg0) 402 return &MockQUICConnOpenStreamSyncCall{Call: call} 403 } 404 405 // MockQUICConnOpenStreamSyncCall wrap *gomock.Call 406 type MockQUICConnOpenStreamSyncCall struct { 407 *gomock.Call 408 } 409 410 // Return rewrite *gomock.Call.Return 411 func (c *MockQUICConnOpenStreamSyncCall) Return(arg0 Stream, arg1 error) *MockQUICConnOpenStreamSyncCall { 412 c.Call = c.Call.Return(arg0, arg1) 413 return c 414 } 415 416 // Do rewrite *gomock.Call.Do 417 func (c *MockQUICConnOpenStreamSyncCall) Do(f func(context.Context) (Stream, error)) *MockQUICConnOpenStreamSyncCall { 418 c.Call = c.Call.Do(f) 419 return c 420 } 421 422 // DoAndReturn rewrite *gomock.Call.DoAndReturn 423 func (c *MockQUICConnOpenStreamSyncCall) DoAndReturn(f func(context.Context) (Stream, error)) *MockQUICConnOpenStreamSyncCall { 424 c.Call = c.Call.DoAndReturn(f) 425 return c 426 } 427 428 // OpenUniStream mocks base method. 429 func (m *MockQUICConn) OpenUniStream() (SendStream, error) { 430 m.ctrl.T.Helper() 431 ret := m.ctrl.Call(m, "OpenUniStream") 432 ret0, _ := ret[0].(SendStream) 433 ret1, _ := ret[1].(error) 434 return ret0, ret1 435 } 436 437 // OpenUniStream indicates an expected call of OpenUniStream. 438 func (mr *MockQUICConnMockRecorder) OpenUniStream() *MockQUICConnOpenUniStreamCall { 439 mr.mock.ctrl.T.Helper() 440 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenUniStream", reflect.TypeOf((*MockQUICConn)(nil).OpenUniStream)) 441 return &MockQUICConnOpenUniStreamCall{Call: call} 442 } 443 444 // MockQUICConnOpenUniStreamCall wrap *gomock.Call 445 type MockQUICConnOpenUniStreamCall struct { 446 *gomock.Call 447 } 448 449 // Return rewrite *gomock.Call.Return 450 func (c *MockQUICConnOpenUniStreamCall) Return(arg0 SendStream, arg1 error) *MockQUICConnOpenUniStreamCall { 451 c.Call = c.Call.Return(arg0, arg1) 452 return c 453 } 454 455 // Do rewrite *gomock.Call.Do 456 func (c *MockQUICConnOpenUniStreamCall) Do(f func() (SendStream, error)) *MockQUICConnOpenUniStreamCall { 457 c.Call = c.Call.Do(f) 458 return c 459 } 460 461 // DoAndReturn rewrite *gomock.Call.DoAndReturn 462 func (c *MockQUICConnOpenUniStreamCall) DoAndReturn(f func() (SendStream, error)) *MockQUICConnOpenUniStreamCall { 463 c.Call = c.Call.DoAndReturn(f) 464 return c 465 } 466 467 // OpenUniStreamSync mocks base method. 468 func (m *MockQUICConn) OpenUniStreamSync(arg0 context.Context) (SendStream, error) { 469 m.ctrl.T.Helper() 470 ret := m.ctrl.Call(m, "OpenUniStreamSync", arg0) 471 ret0, _ := ret[0].(SendStream) 472 ret1, _ := ret[1].(error) 473 return ret0, ret1 474 } 475 476 // OpenUniStreamSync indicates an expected call of OpenUniStreamSync. 477 func (mr *MockQUICConnMockRecorder) OpenUniStreamSync(arg0 any) *MockQUICConnOpenUniStreamSyncCall { 478 mr.mock.ctrl.T.Helper() 479 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenUniStreamSync", reflect.TypeOf((*MockQUICConn)(nil).OpenUniStreamSync), arg0) 480 return &MockQUICConnOpenUniStreamSyncCall{Call: call} 481 } 482 483 // MockQUICConnOpenUniStreamSyncCall wrap *gomock.Call 484 type MockQUICConnOpenUniStreamSyncCall struct { 485 *gomock.Call 486 } 487 488 // Return rewrite *gomock.Call.Return 489 func (c *MockQUICConnOpenUniStreamSyncCall) Return(arg0 SendStream, arg1 error) *MockQUICConnOpenUniStreamSyncCall { 490 c.Call = c.Call.Return(arg0, arg1) 491 return c 492 } 493 494 // Do rewrite *gomock.Call.Do 495 func (c *MockQUICConnOpenUniStreamSyncCall) Do(f func(context.Context) (SendStream, error)) *MockQUICConnOpenUniStreamSyncCall { 496 c.Call = c.Call.Do(f) 497 return c 498 } 499 500 // DoAndReturn rewrite *gomock.Call.DoAndReturn 501 func (c *MockQUICConnOpenUniStreamSyncCall) DoAndReturn(f func(context.Context) (SendStream, error)) *MockQUICConnOpenUniStreamSyncCall { 502 c.Call = c.Call.DoAndReturn(f) 503 return c 504 } 505 506 // ReceiveDatagram mocks base method. 507 func (m *MockQUICConn) ReceiveDatagram(arg0 context.Context) ([]byte, error) { 508 m.ctrl.T.Helper() 509 ret := m.ctrl.Call(m, "ReceiveDatagram", arg0) 510 ret0, _ := ret[0].([]byte) 511 ret1, _ := ret[1].(error) 512 return ret0, ret1 513 } 514 515 // ReceiveDatagram indicates an expected call of ReceiveDatagram. 516 func (mr *MockQUICConnMockRecorder) ReceiveDatagram(arg0 any) *MockQUICConnReceiveDatagramCall { 517 mr.mock.ctrl.T.Helper() 518 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveDatagram", reflect.TypeOf((*MockQUICConn)(nil).ReceiveDatagram), arg0) 519 return &MockQUICConnReceiveDatagramCall{Call: call} 520 } 521 522 // MockQUICConnReceiveDatagramCall wrap *gomock.Call 523 type MockQUICConnReceiveDatagramCall struct { 524 *gomock.Call 525 } 526 527 // Return rewrite *gomock.Call.Return 528 func (c *MockQUICConnReceiveDatagramCall) Return(arg0 []byte, arg1 error) *MockQUICConnReceiveDatagramCall { 529 c.Call = c.Call.Return(arg0, arg1) 530 return c 531 } 532 533 // Do rewrite *gomock.Call.Do 534 func (c *MockQUICConnReceiveDatagramCall) Do(f func(context.Context) ([]byte, error)) *MockQUICConnReceiveDatagramCall { 535 c.Call = c.Call.Do(f) 536 return c 537 } 538 539 // DoAndReturn rewrite *gomock.Call.DoAndReturn 540 func (c *MockQUICConnReceiveDatagramCall) DoAndReturn(f func(context.Context) ([]byte, error)) *MockQUICConnReceiveDatagramCall { 541 c.Call = c.Call.DoAndReturn(f) 542 return c 543 } 544 545 // RemoteAddr mocks base method. 546 func (m *MockQUICConn) RemoteAddr() net.Addr { 547 m.ctrl.T.Helper() 548 ret := m.ctrl.Call(m, "RemoteAddr") 549 ret0, _ := ret[0].(net.Addr) 550 return ret0 551 } 552 553 // RemoteAddr indicates an expected call of RemoteAddr. 554 func (mr *MockQUICConnMockRecorder) RemoteAddr() *MockQUICConnRemoteAddrCall { 555 mr.mock.ctrl.T.Helper() 556 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoteAddr", reflect.TypeOf((*MockQUICConn)(nil).RemoteAddr)) 557 return &MockQUICConnRemoteAddrCall{Call: call} 558 } 559 560 // MockQUICConnRemoteAddrCall wrap *gomock.Call 561 type MockQUICConnRemoteAddrCall struct { 562 *gomock.Call 563 } 564 565 // Return rewrite *gomock.Call.Return 566 func (c *MockQUICConnRemoteAddrCall) Return(arg0 net.Addr) *MockQUICConnRemoteAddrCall { 567 c.Call = c.Call.Return(arg0) 568 return c 569 } 570 571 // Do rewrite *gomock.Call.Do 572 func (c *MockQUICConnRemoteAddrCall) Do(f func() net.Addr) *MockQUICConnRemoteAddrCall { 573 c.Call = c.Call.Do(f) 574 return c 575 } 576 577 // DoAndReturn rewrite *gomock.Call.DoAndReturn 578 func (c *MockQUICConnRemoteAddrCall) DoAndReturn(f func() net.Addr) *MockQUICConnRemoteAddrCall { 579 c.Call = c.Call.DoAndReturn(f) 580 return c 581 } 582 583 // SendDatagram mocks base method. 584 func (m *MockQUICConn) SendDatagram(arg0 []byte) error { 585 m.ctrl.T.Helper() 586 ret := m.ctrl.Call(m, "SendDatagram", arg0) 587 ret0, _ := ret[0].(error) 588 return ret0 589 } 590 591 // SendDatagram indicates an expected call of SendDatagram. 592 func (mr *MockQUICConnMockRecorder) SendDatagram(arg0 any) *MockQUICConnSendDatagramCall { 593 mr.mock.ctrl.T.Helper() 594 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendDatagram", reflect.TypeOf((*MockQUICConn)(nil).SendDatagram), arg0) 595 return &MockQUICConnSendDatagramCall{Call: call} 596 } 597 598 // MockQUICConnSendDatagramCall wrap *gomock.Call 599 type MockQUICConnSendDatagramCall struct { 600 *gomock.Call 601 } 602 603 // Return rewrite *gomock.Call.Return 604 func (c *MockQUICConnSendDatagramCall) Return(arg0 error) *MockQUICConnSendDatagramCall { 605 c.Call = c.Call.Return(arg0) 606 return c 607 } 608 609 // Do rewrite *gomock.Call.Do 610 func (c *MockQUICConnSendDatagramCall) Do(f func([]byte) error) *MockQUICConnSendDatagramCall { 611 c.Call = c.Call.Do(f) 612 return c 613 } 614 615 // DoAndReturn rewrite *gomock.Call.DoAndReturn 616 func (c *MockQUICConnSendDatagramCall) DoAndReturn(f func([]byte) error) *MockQUICConnSendDatagramCall { 617 c.Call = c.Call.DoAndReturn(f) 618 return c 619 } 620 621 // closeWithTransportError mocks base method. 622 func (m *MockQUICConn) closeWithTransportError(arg0 qerr.TransportErrorCode) { 623 m.ctrl.T.Helper() 624 m.ctrl.Call(m, "closeWithTransportError", arg0) 625 } 626 627 // closeWithTransportError indicates an expected call of closeWithTransportError. 628 func (mr *MockQUICConnMockRecorder) closeWithTransportError(arg0 any) *MockQUICConncloseWithTransportErrorCall { 629 mr.mock.ctrl.T.Helper() 630 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeWithTransportError", reflect.TypeOf((*MockQUICConn)(nil).closeWithTransportError), arg0) 631 return &MockQUICConncloseWithTransportErrorCall{Call: call} 632 } 633 634 // MockQUICConncloseWithTransportErrorCall wrap *gomock.Call 635 type MockQUICConncloseWithTransportErrorCall struct { 636 *gomock.Call 637 } 638 639 // Return rewrite *gomock.Call.Return 640 func (c *MockQUICConncloseWithTransportErrorCall) Return() *MockQUICConncloseWithTransportErrorCall { 641 c.Call = c.Call.Return() 642 return c 643 } 644 645 // Do rewrite *gomock.Call.Do 646 func (c *MockQUICConncloseWithTransportErrorCall) Do(f func(qerr.TransportErrorCode)) *MockQUICConncloseWithTransportErrorCall { 647 c.Call = c.Call.Do(f) 648 return c 649 } 650 651 // DoAndReturn rewrite *gomock.Call.DoAndReturn 652 func (c *MockQUICConncloseWithTransportErrorCall) DoAndReturn(f func(qerr.TransportErrorCode)) *MockQUICConncloseWithTransportErrorCall { 653 c.Call = c.Call.DoAndReturn(f) 654 return c 655 } 656 657 // destroy mocks base method. 658 func (m *MockQUICConn) destroy(arg0 error) { 659 m.ctrl.T.Helper() 660 m.ctrl.Call(m, "destroy", arg0) 661 } 662 663 // destroy indicates an expected call of destroy. 664 func (mr *MockQUICConnMockRecorder) destroy(arg0 any) *MockQUICConndestroyCall { 665 mr.mock.ctrl.T.Helper() 666 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "destroy", reflect.TypeOf((*MockQUICConn)(nil).destroy), arg0) 667 return &MockQUICConndestroyCall{Call: call} 668 } 669 670 // MockQUICConndestroyCall wrap *gomock.Call 671 type MockQUICConndestroyCall struct { 672 *gomock.Call 673 } 674 675 // Return rewrite *gomock.Call.Return 676 func (c *MockQUICConndestroyCall) Return() *MockQUICConndestroyCall { 677 c.Call = c.Call.Return() 678 return c 679 } 680 681 // Do rewrite *gomock.Call.Do 682 func (c *MockQUICConndestroyCall) Do(f func(error)) *MockQUICConndestroyCall { 683 c.Call = c.Call.Do(f) 684 return c 685 } 686 687 // DoAndReturn rewrite *gomock.Call.DoAndReturn 688 func (c *MockQUICConndestroyCall) DoAndReturn(f func(error)) *MockQUICConndestroyCall { 689 c.Call = c.Call.DoAndReturn(f) 690 return c 691 } 692 693 // earlyConnReady mocks base method. 694 func (m *MockQUICConn) earlyConnReady() <-chan struct{} { 695 m.ctrl.T.Helper() 696 ret := m.ctrl.Call(m, "earlyConnReady") 697 ret0, _ := ret[0].(<-chan struct{}) 698 return ret0 699 } 700 701 // earlyConnReady indicates an expected call of earlyConnReady. 702 func (mr *MockQUICConnMockRecorder) earlyConnReady() *MockQUICConnearlyConnReadyCall { 703 mr.mock.ctrl.T.Helper() 704 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "earlyConnReady", reflect.TypeOf((*MockQUICConn)(nil).earlyConnReady)) 705 return &MockQUICConnearlyConnReadyCall{Call: call} 706 } 707 708 // MockQUICConnearlyConnReadyCall wrap *gomock.Call 709 type MockQUICConnearlyConnReadyCall struct { 710 *gomock.Call 711 } 712 713 // Return rewrite *gomock.Call.Return 714 func (c *MockQUICConnearlyConnReadyCall) Return(arg0 <-chan struct{}) *MockQUICConnearlyConnReadyCall { 715 c.Call = c.Call.Return(arg0) 716 return c 717 } 718 719 // Do rewrite *gomock.Call.Do 720 func (c *MockQUICConnearlyConnReadyCall) Do(f func() <-chan struct{}) *MockQUICConnearlyConnReadyCall { 721 c.Call = c.Call.Do(f) 722 return c 723 } 724 725 // DoAndReturn rewrite *gomock.Call.DoAndReturn 726 func (c *MockQUICConnearlyConnReadyCall) DoAndReturn(f func() <-chan struct{}) *MockQUICConnearlyConnReadyCall { 727 c.Call = c.Call.DoAndReturn(f) 728 return c 729 } 730 731 // handlePacket mocks base method. 732 func (m *MockQUICConn) handlePacket(arg0 receivedPacket) { 733 m.ctrl.T.Helper() 734 m.ctrl.Call(m, "handlePacket", arg0) 735 } 736 737 // handlePacket indicates an expected call of handlePacket. 738 func (mr *MockQUICConnMockRecorder) handlePacket(arg0 any) *MockQUICConnhandlePacketCall { 739 mr.mock.ctrl.T.Helper() 740 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handlePacket", reflect.TypeOf((*MockQUICConn)(nil).handlePacket), arg0) 741 return &MockQUICConnhandlePacketCall{Call: call} 742 } 743 744 // MockQUICConnhandlePacketCall wrap *gomock.Call 745 type MockQUICConnhandlePacketCall struct { 746 *gomock.Call 747 } 748 749 // Return rewrite *gomock.Call.Return 750 func (c *MockQUICConnhandlePacketCall) Return() *MockQUICConnhandlePacketCall { 751 c.Call = c.Call.Return() 752 return c 753 } 754 755 // Do rewrite *gomock.Call.Do 756 func (c *MockQUICConnhandlePacketCall) Do(f func(receivedPacket)) *MockQUICConnhandlePacketCall { 757 c.Call = c.Call.Do(f) 758 return c 759 } 760 761 // DoAndReturn rewrite *gomock.Call.DoAndReturn 762 func (c *MockQUICConnhandlePacketCall) DoAndReturn(f func(receivedPacket)) *MockQUICConnhandlePacketCall { 763 c.Call = c.Call.DoAndReturn(f) 764 return c 765 } 766 767 // run mocks base method. 768 func (m *MockQUICConn) run() error { 769 m.ctrl.T.Helper() 770 ret := m.ctrl.Call(m, "run") 771 ret0, _ := ret[0].(error) 772 return ret0 773 } 774 775 // run indicates an expected call of run. 776 func (mr *MockQUICConnMockRecorder) run() *MockQUICConnrunCall { 777 mr.mock.ctrl.T.Helper() 778 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "run", reflect.TypeOf((*MockQUICConn)(nil).run)) 779 return &MockQUICConnrunCall{Call: call} 780 } 781 782 // MockQUICConnrunCall wrap *gomock.Call 783 type MockQUICConnrunCall struct { 784 *gomock.Call 785 } 786 787 // Return rewrite *gomock.Call.Return 788 func (c *MockQUICConnrunCall) Return(arg0 error) *MockQUICConnrunCall { 789 c.Call = c.Call.Return(arg0) 790 return c 791 } 792 793 // Do rewrite *gomock.Call.Do 794 func (c *MockQUICConnrunCall) Do(f func() error) *MockQUICConnrunCall { 795 c.Call = c.Call.Do(f) 796 return c 797 } 798 799 // DoAndReturn rewrite *gomock.Call.DoAndReturn 800 func (c *MockQUICConnrunCall) DoAndReturn(f func() error) *MockQUICConnrunCall { 801 c.Call = c.Call.DoAndReturn(f) 802 return c 803 }