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

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