github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/internal/mocks/crypto_setup.go (about)

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