github.com/TugasAkhir-QUIC/quic-go@v0.0.2-0.20240215011318-d20e25a9054c/internal/mocks/quic/early_conn.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/TugasAkhir-QUIC/quic-go (interfaces: EarlyConnection)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen.exe -typed -build_flags=-tags=gomock -package mockquic -destination quic/early_conn_tmp.go github.com/TugasAkhir-QUIC/quic-go 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/TugasAkhir-QUIC/quic-go"
    17  	qerr "github.com/TugasAkhir-QUIC/quic-go/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  // GetMaxBandwidth mocks base method.
   237  func (m *MockEarlyConnection) GetMaxBandwidth() uint64 {
   238  	m.ctrl.T.Helper()
   239  	ret := m.ctrl.Call(m, "GetMaxBandwidth")
   240  	ret0, _ := ret[0].(uint64)
   241  	return ret0
   242  }
   243  
   244  // GetMaxBandwidth indicates an expected call of GetMaxBandwidth.
   245  func (mr *MockEarlyConnectionMockRecorder) GetMaxBandwidth() *EarlyConnectionGetMaxBandwidthCall {
   246  	mr.mock.ctrl.T.Helper()
   247  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMaxBandwidth", reflect.TypeOf((*MockEarlyConnection)(nil).GetMaxBandwidth))
   248  	return &EarlyConnectionGetMaxBandwidthCall{Call: call}
   249  }
   250  
   251  // EarlyConnectionGetMaxBandwidthCall wrap *gomock.Call
   252  type EarlyConnectionGetMaxBandwidthCall struct {
   253  	*gomock.Call
   254  }
   255  
   256  // Return rewrite *gomock.Call.Return
   257  func (c *EarlyConnectionGetMaxBandwidthCall) Return(arg0 uint64) *EarlyConnectionGetMaxBandwidthCall {
   258  	c.Call = c.Call.Return(arg0)
   259  	return c
   260  }
   261  
   262  // Do rewrite *gomock.Call.Do
   263  func (c *EarlyConnectionGetMaxBandwidthCall) Do(f func() uint64) *EarlyConnectionGetMaxBandwidthCall {
   264  	c.Call = c.Call.Do(f)
   265  	return c
   266  }
   267  
   268  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   269  func (c *EarlyConnectionGetMaxBandwidthCall) DoAndReturn(f func() uint64) *EarlyConnectionGetMaxBandwidthCall {
   270  	c.Call = c.Call.DoAndReturn(f)
   271  	return c
   272  }
   273  
   274  // HandshakeComplete mocks base method.
   275  func (m *MockEarlyConnection) HandshakeComplete() <-chan struct{} {
   276  	m.ctrl.T.Helper()
   277  	ret := m.ctrl.Call(m, "HandshakeComplete")
   278  	ret0, _ := ret[0].(<-chan struct{})
   279  	return ret0
   280  }
   281  
   282  // HandshakeComplete indicates an expected call of HandshakeComplete.
   283  func (mr *MockEarlyConnectionMockRecorder) HandshakeComplete() *EarlyConnectionHandshakeCompleteCall {
   284  	mr.mock.ctrl.T.Helper()
   285  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandshakeComplete", reflect.TypeOf((*MockEarlyConnection)(nil).HandshakeComplete))
   286  	return &EarlyConnectionHandshakeCompleteCall{Call: call}
   287  }
   288  
   289  // EarlyConnectionHandshakeCompleteCall wrap *gomock.Call
   290  type EarlyConnectionHandshakeCompleteCall struct {
   291  	*gomock.Call
   292  }
   293  
   294  // Return rewrite *gomock.Call.Return
   295  func (c *EarlyConnectionHandshakeCompleteCall) Return(arg0 <-chan struct{}) *EarlyConnectionHandshakeCompleteCall {
   296  	c.Call = c.Call.Return(arg0)
   297  	return c
   298  }
   299  
   300  // Do rewrite *gomock.Call.Do
   301  func (c *EarlyConnectionHandshakeCompleteCall) Do(f func() <-chan struct{}) *EarlyConnectionHandshakeCompleteCall {
   302  	c.Call = c.Call.Do(f)
   303  	return c
   304  }
   305  
   306  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   307  func (c *EarlyConnectionHandshakeCompleteCall) DoAndReturn(f func() <-chan struct{}) *EarlyConnectionHandshakeCompleteCall {
   308  	c.Call = c.Call.DoAndReturn(f)
   309  	return c
   310  }
   311  
   312  // LocalAddr mocks base method.
   313  func (m *MockEarlyConnection) LocalAddr() net.Addr {
   314  	m.ctrl.T.Helper()
   315  	ret := m.ctrl.Call(m, "LocalAddr")
   316  	ret0, _ := ret[0].(net.Addr)
   317  	return ret0
   318  }
   319  
   320  // LocalAddr indicates an expected call of LocalAddr.
   321  func (mr *MockEarlyConnectionMockRecorder) LocalAddr() *EarlyConnectionLocalAddrCall {
   322  	mr.mock.ctrl.T.Helper()
   323  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalAddr", reflect.TypeOf((*MockEarlyConnection)(nil).LocalAddr))
   324  	return &EarlyConnectionLocalAddrCall{Call: call}
   325  }
   326  
   327  // EarlyConnectionLocalAddrCall wrap *gomock.Call
   328  type EarlyConnectionLocalAddrCall struct {
   329  	*gomock.Call
   330  }
   331  
   332  // Return rewrite *gomock.Call.Return
   333  func (c *EarlyConnectionLocalAddrCall) Return(arg0 net.Addr) *EarlyConnectionLocalAddrCall {
   334  	c.Call = c.Call.Return(arg0)
   335  	return c
   336  }
   337  
   338  // Do rewrite *gomock.Call.Do
   339  func (c *EarlyConnectionLocalAddrCall) Do(f func() net.Addr) *EarlyConnectionLocalAddrCall {
   340  	c.Call = c.Call.Do(f)
   341  	return c
   342  }
   343  
   344  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   345  func (c *EarlyConnectionLocalAddrCall) DoAndReturn(f func() net.Addr) *EarlyConnectionLocalAddrCall {
   346  	c.Call = c.Call.DoAndReturn(f)
   347  	return c
   348  }
   349  
   350  // NextConnection mocks base method.
   351  func (m *MockEarlyConnection) NextConnection() quic.Connection {
   352  	m.ctrl.T.Helper()
   353  	ret := m.ctrl.Call(m, "NextConnection")
   354  	ret0, _ := ret[0].(quic.Connection)
   355  	return ret0
   356  }
   357  
   358  // NextConnection indicates an expected call of NextConnection.
   359  func (mr *MockEarlyConnectionMockRecorder) NextConnection() *EarlyConnectionNextConnectionCall {
   360  	mr.mock.ctrl.T.Helper()
   361  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextConnection", reflect.TypeOf((*MockEarlyConnection)(nil).NextConnection))
   362  	return &EarlyConnectionNextConnectionCall{Call: call}
   363  }
   364  
   365  // EarlyConnectionNextConnectionCall wrap *gomock.Call
   366  type EarlyConnectionNextConnectionCall struct {
   367  	*gomock.Call
   368  }
   369  
   370  // Return rewrite *gomock.Call.Return
   371  func (c *EarlyConnectionNextConnectionCall) Return(arg0 quic.Connection) *EarlyConnectionNextConnectionCall {
   372  	c.Call = c.Call.Return(arg0)
   373  	return c
   374  }
   375  
   376  // Do rewrite *gomock.Call.Do
   377  func (c *EarlyConnectionNextConnectionCall) Do(f func() quic.Connection) *EarlyConnectionNextConnectionCall {
   378  	c.Call = c.Call.Do(f)
   379  	return c
   380  }
   381  
   382  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   383  func (c *EarlyConnectionNextConnectionCall) DoAndReturn(f func() quic.Connection) *EarlyConnectionNextConnectionCall {
   384  	c.Call = c.Call.DoAndReturn(f)
   385  	return c
   386  }
   387  
   388  // OpenStream mocks base method.
   389  func (m *MockEarlyConnection) OpenStream() (quic.Stream, error) {
   390  	m.ctrl.T.Helper()
   391  	ret := m.ctrl.Call(m, "OpenStream")
   392  	ret0, _ := ret[0].(quic.Stream)
   393  	ret1, _ := ret[1].(error)
   394  	return ret0, ret1
   395  }
   396  
   397  // OpenStream indicates an expected call of OpenStream.
   398  func (mr *MockEarlyConnectionMockRecorder) OpenStream() *EarlyConnectionOpenStreamCall {
   399  	mr.mock.ctrl.T.Helper()
   400  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStream", reflect.TypeOf((*MockEarlyConnection)(nil).OpenStream))
   401  	return &EarlyConnectionOpenStreamCall{Call: call}
   402  }
   403  
   404  // EarlyConnectionOpenStreamCall wrap *gomock.Call
   405  type EarlyConnectionOpenStreamCall struct {
   406  	*gomock.Call
   407  }
   408  
   409  // Return rewrite *gomock.Call.Return
   410  func (c *EarlyConnectionOpenStreamCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionOpenStreamCall {
   411  	c.Call = c.Call.Return(arg0, arg1)
   412  	return c
   413  }
   414  
   415  // Do rewrite *gomock.Call.Do
   416  func (c *EarlyConnectionOpenStreamCall) Do(f func() (quic.Stream, error)) *EarlyConnectionOpenStreamCall {
   417  	c.Call = c.Call.Do(f)
   418  	return c
   419  }
   420  
   421  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   422  func (c *EarlyConnectionOpenStreamCall) DoAndReturn(f func() (quic.Stream, error)) *EarlyConnectionOpenStreamCall {
   423  	c.Call = c.Call.DoAndReturn(f)
   424  	return c
   425  }
   426  
   427  // OpenStreamSync mocks base method.
   428  func (m *MockEarlyConnection) OpenStreamSync(arg0 context.Context) (quic.Stream, error) {
   429  	m.ctrl.T.Helper()
   430  	ret := m.ctrl.Call(m, "OpenStreamSync", arg0)
   431  	ret0, _ := ret[0].(quic.Stream)
   432  	ret1, _ := ret[1].(error)
   433  	return ret0, ret1
   434  }
   435  
   436  // OpenStreamSync indicates an expected call of OpenStreamSync.
   437  func (mr *MockEarlyConnectionMockRecorder) OpenStreamSync(arg0 any) *EarlyConnectionOpenStreamSyncCall {
   438  	mr.mock.ctrl.T.Helper()
   439  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStreamSync", reflect.TypeOf((*MockEarlyConnection)(nil).OpenStreamSync), arg0)
   440  	return &EarlyConnectionOpenStreamSyncCall{Call: call}
   441  }
   442  
   443  // EarlyConnectionOpenStreamSyncCall wrap *gomock.Call
   444  type EarlyConnectionOpenStreamSyncCall struct {
   445  	*gomock.Call
   446  }
   447  
   448  // Return rewrite *gomock.Call.Return
   449  func (c *EarlyConnectionOpenStreamSyncCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionOpenStreamSyncCall {
   450  	c.Call = c.Call.Return(arg0, arg1)
   451  	return c
   452  }
   453  
   454  // Do rewrite *gomock.Call.Do
   455  func (c *EarlyConnectionOpenStreamSyncCall) Do(f func(context.Context) (quic.Stream, error)) *EarlyConnectionOpenStreamSyncCall {
   456  	c.Call = c.Call.Do(f)
   457  	return c
   458  }
   459  
   460  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   461  func (c *EarlyConnectionOpenStreamSyncCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *EarlyConnectionOpenStreamSyncCall {
   462  	c.Call = c.Call.DoAndReturn(f)
   463  	return c
   464  }
   465  
   466  // OpenUniStream mocks base method.
   467  func (m *MockEarlyConnection) OpenUniStream() (quic.SendStream, error) {
   468  	m.ctrl.T.Helper()
   469  	ret := m.ctrl.Call(m, "OpenUniStream")
   470  	ret0, _ := ret[0].(quic.SendStream)
   471  	ret1, _ := ret[1].(error)
   472  	return ret0, ret1
   473  }
   474  
   475  // OpenUniStream indicates an expected call of OpenUniStream.
   476  func (mr *MockEarlyConnectionMockRecorder) OpenUniStream() *EarlyConnectionOpenUniStreamCall {
   477  	mr.mock.ctrl.T.Helper()
   478  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenUniStream", reflect.TypeOf((*MockEarlyConnection)(nil).OpenUniStream))
   479  	return &EarlyConnectionOpenUniStreamCall{Call: call}
   480  }
   481  
   482  // EarlyConnectionOpenUniStreamCall wrap *gomock.Call
   483  type EarlyConnectionOpenUniStreamCall struct {
   484  	*gomock.Call
   485  }
   486  
   487  // Return rewrite *gomock.Call.Return
   488  func (c *EarlyConnectionOpenUniStreamCall) Return(arg0 quic.SendStream, arg1 error) *EarlyConnectionOpenUniStreamCall {
   489  	c.Call = c.Call.Return(arg0, arg1)
   490  	return c
   491  }
   492  
   493  // Do rewrite *gomock.Call.Do
   494  func (c *EarlyConnectionOpenUniStreamCall) Do(f func() (quic.SendStream, error)) *EarlyConnectionOpenUniStreamCall {
   495  	c.Call = c.Call.Do(f)
   496  	return c
   497  }
   498  
   499  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   500  func (c *EarlyConnectionOpenUniStreamCall) DoAndReturn(f func() (quic.SendStream, error)) *EarlyConnectionOpenUniStreamCall {
   501  	c.Call = c.Call.DoAndReturn(f)
   502  	return c
   503  }
   504  
   505  // OpenUniStreamSync mocks base method.
   506  func (m *MockEarlyConnection) OpenUniStreamSync(arg0 context.Context) (quic.SendStream, error) {
   507  	m.ctrl.T.Helper()
   508  	ret := m.ctrl.Call(m, "OpenUniStreamSync", arg0)
   509  	ret0, _ := ret[0].(quic.SendStream)
   510  	ret1, _ := ret[1].(error)
   511  	return ret0, ret1
   512  }
   513  
   514  // OpenUniStreamSync indicates an expected call of OpenUniStreamSync.
   515  func (mr *MockEarlyConnectionMockRecorder) OpenUniStreamSync(arg0 any) *EarlyConnectionOpenUniStreamSyncCall {
   516  	mr.mock.ctrl.T.Helper()
   517  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenUniStreamSync", reflect.TypeOf((*MockEarlyConnection)(nil).OpenUniStreamSync), arg0)
   518  	return &EarlyConnectionOpenUniStreamSyncCall{Call: call}
   519  }
   520  
   521  // EarlyConnectionOpenUniStreamSyncCall wrap *gomock.Call
   522  type EarlyConnectionOpenUniStreamSyncCall struct {
   523  	*gomock.Call
   524  }
   525  
   526  // Return rewrite *gomock.Call.Return
   527  func (c *EarlyConnectionOpenUniStreamSyncCall) Return(arg0 quic.SendStream, arg1 error) *EarlyConnectionOpenUniStreamSyncCall {
   528  	c.Call = c.Call.Return(arg0, arg1)
   529  	return c
   530  }
   531  
   532  // Do rewrite *gomock.Call.Do
   533  func (c *EarlyConnectionOpenUniStreamSyncCall) Do(f func(context.Context) (quic.SendStream, error)) *EarlyConnectionOpenUniStreamSyncCall {
   534  	c.Call = c.Call.Do(f)
   535  	return c
   536  }
   537  
   538  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   539  func (c *EarlyConnectionOpenUniStreamSyncCall) DoAndReturn(f func(context.Context) (quic.SendStream, error)) *EarlyConnectionOpenUniStreamSyncCall {
   540  	c.Call = c.Call.DoAndReturn(f)
   541  	return c
   542  }
   543  
   544  // ReceiveDatagram mocks base method.
   545  func (m *MockEarlyConnection) ReceiveDatagram(arg0 context.Context) ([]byte, error) {
   546  	m.ctrl.T.Helper()
   547  	ret := m.ctrl.Call(m, "ReceiveDatagram", arg0)
   548  	ret0, _ := ret[0].([]byte)
   549  	ret1, _ := ret[1].(error)
   550  	return ret0, ret1
   551  }
   552  
   553  // ReceiveDatagram indicates an expected call of ReceiveDatagram.
   554  func (mr *MockEarlyConnectionMockRecorder) ReceiveDatagram(arg0 any) *EarlyConnectionReceiveDatagramCall {
   555  	mr.mock.ctrl.T.Helper()
   556  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveDatagram", reflect.TypeOf((*MockEarlyConnection)(nil).ReceiveDatagram), arg0)
   557  	return &EarlyConnectionReceiveDatagramCall{Call: call}
   558  }
   559  
   560  // EarlyConnectionReceiveDatagramCall wrap *gomock.Call
   561  type EarlyConnectionReceiveDatagramCall struct {
   562  	*gomock.Call
   563  }
   564  
   565  // Return rewrite *gomock.Call.Return
   566  func (c *EarlyConnectionReceiveDatagramCall) Return(arg0 []byte, arg1 error) *EarlyConnectionReceiveDatagramCall {
   567  	c.Call = c.Call.Return(arg0, arg1)
   568  	return c
   569  }
   570  
   571  // Do rewrite *gomock.Call.Do
   572  func (c *EarlyConnectionReceiveDatagramCall) Do(f func(context.Context) ([]byte, error)) *EarlyConnectionReceiveDatagramCall {
   573  	c.Call = c.Call.Do(f)
   574  	return c
   575  }
   576  
   577  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   578  func (c *EarlyConnectionReceiveDatagramCall) DoAndReturn(f func(context.Context) ([]byte, error)) *EarlyConnectionReceiveDatagramCall {
   579  	c.Call = c.Call.DoAndReturn(f)
   580  	return c
   581  }
   582  
   583  // RemoteAddr mocks base method.
   584  func (m *MockEarlyConnection) RemoteAddr() net.Addr {
   585  	m.ctrl.T.Helper()
   586  	ret := m.ctrl.Call(m, "RemoteAddr")
   587  	ret0, _ := ret[0].(net.Addr)
   588  	return ret0
   589  }
   590  
   591  // RemoteAddr indicates an expected call of RemoteAddr.
   592  func (mr *MockEarlyConnectionMockRecorder) RemoteAddr() *EarlyConnectionRemoteAddrCall {
   593  	mr.mock.ctrl.T.Helper()
   594  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoteAddr", reflect.TypeOf((*MockEarlyConnection)(nil).RemoteAddr))
   595  	return &EarlyConnectionRemoteAddrCall{Call: call}
   596  }
   597  
   598  // EarlyConnectionRemoteAddrCall wrap *gomock.Call
   599  type EarlyConnectionRemoteAddrCall struct {
   600  	*gomock.Call
   601  }
   602  
   603  // Return rewrite *gomock.Call.Return
   604  func (c *EarlyConnectionRemoteAddrCall) Return(arg0 net.Addr) *EarlyConnectionRemoteAddrCall {
   605  	c.Call = c.Call.Return(arg0)
   606  	return c
   607  }
   608  
   609  // Do rewrite *gomock.Call.Do
   610  func (c *EarlyConnectionRemoteAddrCall) Do(f func() net.Addr) *EarlyConnectionRemoteAddrCall {
   611  	c.Call = c.Call.Do(f)
   612  	return c
   613  }
   614  
   615  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   616  func (c *EarlyConnectionRemoteAddrCall) DoAndReturn(f func() net.Addr) *EarlyConnectionRemoteAddrCall {
   617  	c.Call = c.Call.DoAndReturn(f)
   618  	return c
   619  }
   620  
   621  // SendDatagram mocks base method.
   622  func (m *MockEarlyConnection) SendDatagram(arg0 []byte) error {
   623  	m.ctrl.T.Helper()
   624  	ret := m.ctrl.Call(m, "SendDatagram", arg0)
   625  	ret0, _ := ret[0].(error)
   626  	return ret0
   627  }
   628  
   629  // SendDatagram indicates an expected call of SendDatagram.
   630  func (mr *MockEarlyConnectionMockRecorder) SendDatagram(arg0 any) *EarlyConnectionSendDatagramCall {
   631  	mr.mock.ctrl.T.Helper()
   632  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendDatagram", reflect.TypeOf((*MockEarlyConnection)(nil).SendDatagram), arg0)
   633  	return &EarlyConnectionSendDatagramCall{Call: call}
   634  }
   635  
   636  // EarlyConnectionSendDatagramCall wrap *gomock.Call
   637  type EarlyConnectionSendDatagramCall struct {
   638  	*gomock.Call
   639  }
   640  
   641  // Return rewrite *gomock.Call.Return
   642  func (c *EarlyConnectionSendDatagramCall) Return(arg0 error) *EarlyConnectionSendDatagramCall {
   643  	c.Call = c.Call.Return(arg0)
   644  	return c
   645  }
   646  
   647  // Do rewrite *gomock.Call.Do
   648  func (c *EarlyConnectionSendDatagramCall) Do(f func([]byte) error) *EarlyConnectionSendDatagramCall {
   649  	c.Call = c.Call.Do(f)
   650  	return c
   651  }
   652  
   653  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   654  func (c *EarlyConnectionSendDatagramCall) DoAndReturn(f func([]byte) error) *EarlyConnectionSendDatagramCall {
   655  	c.Call = c.Call.DoAndReturn(f)
   656  	return c
   657  }
   658  
   659  // SetMaxBandwidth mocks base method.
   660  func (m *MockEarlyConnection) SetMaxBandwidth(arg0 uint64) {
   661  	m.ctrl.T.Helper()
   662  	m.ctrl.Call(m, "SetMaxBandwidth", arg0)
   663  }
   664  
   665  // SetMaxBandwidth indicates an expected call of SetMaxBandwidth.
   666  func (mr *MockEarlyConnectionMockRecorder) SetMaxBandwidth(arg0 any) *EarlyConnectionSetMaxBandwidthCall {
   667  	mr.mock.ctrl.T.Helper()
   668  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxBandwidth", reflect.TypeOf((*MockEarlyConnection)(nil).SetMaxBandwidth), arg0)
   669  	return &EarlyConnectionSetMaxBandwidthCall{Call: call}
   670  }
   671  
   672  // EarlyConnectionSetMaxBandwidthCall wrap *gomock.Call
   673  type EarlyConnectionSetMaxBandwidthCall struct {
   674  	*gomock.Call
   675  }
   676  
   677  // Return rewrite *gomock.Call.Return
   678  func (c *EarlyConnectionSetMaxBandwidthCall) Return() *EarlyConnectionSetMaxBandwidthCall {
   679  	c.Call = c.Call.Return()
   680  	return c
   681  }
   682  
   683  // Do rewrite *gomock.Call.Do
   684  func (c *EarlyConnectionSetMaxBandwidthCall) Do(f func(uint64)) *EarlyConnectionSetMaxBandwidthCall {
   685  	c.Call = c.Call.Do(f)
   686  	return c
   687  }
   688  
   689  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   690  func (c *EarlyConnectionSetMaxBandwidthCall) DoAndReturn(f func(uint64)) *EarlyConnectionSetMaxBandwidthCall {
   691  	c.Call = c.Call.DoAndReturn(f)
   692  	return c
   693  }