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