github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/quic/early_conn.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go (interfaces: EarlyConnection)
     3  
     4  // Package mockquic is a generated GoMock package.
     5  package mockquic
     6  
     7  import (
     8  	context "context"
     9  	net "net"
    10  	reflect "reflect"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  
    14  	quic "github.com/tumi8/quic-go"
    15  	qerr "github.com/tumi8/quic-go/noninternal/qerr"
    16  )
    17  
    18  // MockEarlyConnection is a mock of EarlyConnection interface.
    19  type MockEarlyConnection struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockEarlyConnectionMockRecorder
    22  }
    23  
    24  // MockEarlyConnectionMockRecorder is the mock recorder for MockEarlyConnection.
    25  type MockEarlyConnectionMockRecorder struct {
    26  	mock *MockEarlyConnection
    27  }
    28  
    29  // NewMockEarlyConnection creates a new mock instance.
    30  func NewMockEarlyConnection(ctrl *gomock.Controller) *MockEarlyConnection {
    31  	mock := &MockEarlyConnection{ctrl: ctrl}
    32  	mock.recorder = &MockEarlyConnectionMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockEarlyConnection) EXPECT() *MockEarlyConnectionMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // AcceptStream mocks base method.
    42  func (m *MockEarlyConnection) AcceptStream(arg0 context.Context) (quic.Stream, error) {
    43  	m.ctrl.T.Helper()
    44  	ret := m.ctrl.Call(m, "AcceptStream", arg0)
    45  	ret0, _ := ret[0].(quic.Stream)
    46  	ret1, _ := ret[1].(error)
    47  	return ret0, ret1
    48  }
    49  
    50  // AcceptStream indicates an expected call of AcceptStream.
    51  func (mr *MockEarlyConnectionMockRecorder) AcceptStream(arg0 interface{}) *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptStream", reflect.TypeOf((*MockEarlyConnection)(nil).AcceptStream), arg0)
    54  }
    55  
    56  // AcceptUniStream mocks base method.
    57  func (m *MockEarlyConnection) AcceptUniStream(arg0 context.Context) (quic.ReceiveStream, error) {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "AcceptUniStream", arg0)
    60  	ret0, _ := ret[0].(quic.ReceiveStream)
    61  	ret1, _ := ret[1].(error)
    62  	return ret0, ret1
    63  }
    64  
    65  // AcceptUniStream indicates an expected call of AcceptUniStream.
    66  func (mr *MockEarlyConnectionMockRecorder) AcceptUniStream(arg0 interface{}) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptUniStream", reflect.TypeOf((*MockEarlyConnection)(nil).AcceptUniStream), arg0)
    69  }
    70  
    71  // CloseWithError mocks base method.
    72  func (m *MockEarlyConnection) CloseWithError(arg0 qerr.ApplicationErrorCode, arg1 string) error {
    73  	m.ctrl.T.Helper()
    74  	ret := m.ctrl.Call(m, "CloseWithError", arg0, arg1)
    75  	ret0, _ := ret[0].(error)
    76  	return ret0
    77  }
    78  
    79  // CloseWithError indicates an expected call of CloseWithError.
    80  func (mr *MockEarlyConnectionMockRecorder) CloseWithError(arg0, arg1 interface{}) *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseWithError", reflect.TypeOf((*MockEarlyConnection)(nil).CloseWithError), arg0, arg1)
    83  }
    84  
    85  // ConnectionState mocks base method.
    86  func (m *MockEarlyConnection) ConnectionState() quic.ConnectionState {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "ConnectionState")
    89  	ret0, _ := ret[0].(quic.ConnectionState)
    90  	return ret0
    91  }
    92  
    93  // ConnectionState indicates an expected call of ConnectionState.
    94  func (mr *MockEarlyConnectionMockRecorder) ConnectionState() *gomock.Call {
    95  	mr.mock.ctrl.T.Helper()
    96  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectionState", reflect.TypeOf((*MockEarlyConnection)(nil).ConnectionState))
    97  }
    98  
    99  // Context mocks base method.
   100  func (m *MockEarlyConnection) Context() context.Context {
   101  	m.ctrl.T.Helper()
   102  	ret := m.ctrl.Call(m, "Context")
   103  	ret0, _ := ret[0].(context.Context)
   104  	return ret0
   105  }
   106  
   107  // Context indicates an expected call of Context.
   108  func (mr *MockEarlyConnectionMockRecorder) Context() *gomock.Call {
   109  	mr.mock.ctrl.T.Helper()
   110  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockEarlyConnection)(nil).Context))
   111  }
   112  
   113  // HandshakeComplete mocks base method.
   114  func (m *MockEarlyConnection) HandshakeComplete() <-chan struct{} {
   115  	m.ctrl.T.Helper()
   116  	ret := m.ctrl.Call(m, "HandshakeComplete")
   117  	ret0, _ := ret[0].(<-chan struct{})
   118  	return ret0
   119  }
   120  
   121  // HandshakeComplete indicates an expected call of HandshakeComplete.
   122  func (mr *MockEarlyConnectionMockRecorder) HandshakeComplete() *gomock.Call {
   123  	mr.mock.ctrl.T.Helper()
   124  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandshakeComplete", reflect.TypeOf((*MockEarlyConnection)(nil).HandshakeComplete))
   125  }
   126  
   127  // LocalAddr mocks base method.
   128  func (m *MockEarlyConnection) LocalAddr() net.Addr {
   129  	m.ctrl.T.Helper()
   130  	ret := m.ctrl.Call(m, "LocalAddr")
   131  	ret0, _ := ret[0].(net.Addr)
   132  	return ret0
   133  }
   134  
   135  // LocalAddr indicates an expected call of LocalAddr.
   136  func (mr *MockEarlyConnectionMockRecorder) LocalAddr() *gomock.Call {
   137  	mr.mock.ctrl.T.Helper()
   138  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalAddr", reflect.TypeOf((*MockEarlyConnection)(nil).LocalAddr))
   139  }
   140  
   141  // NextConnection mocks base method.
   142  func (m *MockEarlyConnection) NextConnection() quic.Connection {
   143  	m.ctrl.T.Helper()
   144  	ret := m.ctrl.Call(m, "NextConnection")
   145  	ret0, _ := ret[0].(quic.Connection)
   146  	return ret0
   147  }
   148  
   149  // NextConnection indicates an expected call of NextConnection.
   150  func (mr *MockEarlyConnectionMockRecorder) NextConnection() *gomock.Call {
   151  	mr.mock.ctrl.T.Helper()
   152  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextConnection", reflect.TypeOf((*MockEarlyConnection)(nil).NextConnection))
   153  }
   154  
   155  // OpenStream mocks base method.
   156  func (m *MockEarlyConnection) OpenStream() (quic.Stream, error) {
   157  	m.ctrl.T.Helper()
   158  	ret := m.ctrl.Call(m, "OpenStream")
   159  	ret0, _ := ret[0].(quic.Stream)
   160  	ret1, _ := ret[1].(error)
   161  	return ret0, ret1
   162  }
   163  
   164  // OpenStream indicates an expected call of OpenStream.
   165  func (mr *MockEarlyConnectionMockRecorder) OpenStream() *gomock.Call {
   166  	mr.mock.ctrl.T.Helper()
   167  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStream", reflect.TypeOf((*MockEarlyConnection)(nil).OpenStream))
   168  }
   169  
   170  // OpenStreamSync mocks base method.
   171  func (m *MockEarlyConnection) OpenStreamSync(arg0 context.Context) (quic.Stream, error) {
   172  	m.ctrl.T.Helper()
   173  	ret := m.ctrl.Call(m, "OpenStreamSync", arg0)
   174  	ret0, _ := ret[0].(quic.Stream)
   175  	ret1, _ := ret[1].(error)
   176  	return ret0, ret1
   177  }
   178  
   179  // OpenStreamSync indicates an expected call of OpenStreamSync.
   180  func (mr *MockEarlyConnectionMockRecorder) OpenStreamSync(arg0 interface{}) *gomock.Call {
   181  	mr.mock.ctrl.T.Helper()
   182  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStreamSync", reflect.TypeOf((*MockEarlyConnection)(nil).OpenStreamSync), arg0)
   183  }
   184  
   185  // OpenUniStream mocks base method.
   186  func (m *MockEarlyConnection) OpenUniStream() (quic.SendStream, error) {
   187  	m.ctrl.T.Helper()
   188  	ret := m.ctrl.Call(m, "OpenUniStream")
   189  	ret0, _ := ret[0].(quic.SendStream)
   190  	ret1, _ := ret[1].(error)
   191  	return ret0, ret1
   192  }
   193  
   194  // OpenUniStream indicates an expected call of OpenUniStream.
   195  func (mr *MockEarlyConnectionMockRecorder) OpenUniStream() *gomock.Call {
   196  	mr.mock.ctrl.T.Helper()
   197  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenUniStream", reflect.TypeOf((*MockEarlyConnection)(nil).OpenUniStream))
   198  }
   199  
   200  // OpenUniStreamSync mocks base method.
   201  func (m *MockEarlyConnection) OpenUniStreamSync(arg0 context.Context) (quic.SendStream, error) {
   202  	m.ctrl.T.Helper()
   203  	ret := m.ctrl.Call(m, "OpenUniStreamSync", arg0)
   204  	ret0, _ := ret[0].(quic.SendStream)
   205  	ret1, _ := ret[1].(error)
   206  	return ret0, ret1
   207  }
   208  
   209  // OpenUniStreamSync indicates an expected call of OpenUniStreamSync.
   210  func (mr *MockEarlyConnectionMockRecorder) OpenUniStreamSync(arg0 interface{}) *gomock.Call {
   211  	mr.mock.ctrl.T.Helper()
   212  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenUniStreamSync", reflect.TypeOf((*MockEarlyConnection)(nil).OpenUniStreamSync), arg0)
   213  }
   214  
   215  // ReceiveMessage mocks base method.
   216  func (m *MockEarlyConnection) ReceiveMessage(arg0 context.Context) ([]byte, error) {
   217  	m.ctrl.T.Helper()
   218  	ret := m.ctrl.Call(m, "ReceiveMessage", arg0)
   219  	ret0, _ := ret[0].([]byte)
   220  	ret1, _ := ret[1].(error)
   221  	return ret0, ret1
   222  }
   223  
   224  // ReceiveMessage indicates an expected call of ReceiveMessage.
   225  func (mr *MockEarlyConnectionMockRecorder) ReceiveMessage(arg0 interface{}) *gomock.Call {
   226  	mr.mock.ctrl.T.Helper()
   227  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveMessage", reflect.TypeOf((*MockEarlyConnection)(nil).ReceiveMessage), arg0)
   228  }
   229  
   230  // RemoteAddr mocks base method.
   231  func (m *MockEarlyConnection) RemoteAddr() net.Addr {
   232  	m.ctrl.T.Helper()
   233  	ret := m.ctrl.Call(m, "RemoteAddr")
   234  	ret0, _ := ret[0].(net.Addr)
   235  	return ret0
   236  }
   237  
   238  // RemoteAddr indicates an expected call of RemoteAddr.
   239  func (mr *MockEarlyConnectionMockRecorder) RemoteAddr() *gomock.Call {
   240  	mr.mock.ctrl.T.Helper()
   241  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoteAddr", reflect.TypeOf((*MockEarlyConnection)(nil).RemoteAddr))
   242  }
   243  
   244  // SendMessage mocks base method.
   245  func (m *MockEarlyConnection) SendMessage(arg0 []byte) error {
   246  	m.ctrl.T.Helper()
   247  	ret := m.ctrl.Call(m, "SendMessage", arg0)
   248  	ret0, _ := ret[0].(error)
   249  	return ret0
   250  }
   251  
   252  // SendMessage indicates an expected call of SendMessage.
   253  func (mr *MockEarlyConnectionMockRecorder) SendMessage(arg0 interface{}) *gomock.Call {
   254  	mr.mock.ctrl.T.Helper()
   255  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessage", reflect.TypeOf((*MockEarlyConnection)(nil).SendMessage), arg0)
   256  }