github.com/quic-go/quic-go@v0.44.0/internal/mocks/quic/early_conn.go (about)

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