github.com/tumi8/quic-go@v0.37.4-tum/mock_multiplexer_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: multiplexer.go
     3  
     4  // Package quic is a generated GoMock package.
     5  package quic
     6  
     7  import (
     8  	net "net"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	logging "github.com/tumi8/quic-go/logging"
    13  )
    14  
    15  // MockMultiplexer is a mock of Multiplexer interface.
    16  type MockMultiplexer struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockMultiplexerMockRecorder
    19  }
    20  
    21  // MockMultiplexerMockRecorder is the mock recorder for MockMultiplexer.
    22  type MockMultiplexerMockRecorder struct {
    23  	mock *MockMultiplexer
    24  }
    25  
    26  // NewMockMultiplexer creates a new mock instance.
    27  func NewMockMultiplexer(ctrl *gomock.Controller) *MockMultiplexer {
    28  	mock := &MockMultiplexer{ctrl: ctrl}
    29  	mock.recorder = &MockMultiplexerMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockMultiplexer) EXPECT() *MockMultiplexerMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // AddConn mocks base method.
    39  func (m *MockMultiplexer) AddConn(c net.PacketConn, connIDLen int, statelessResetKey []byte, tracer logging.Tracer) (packetHandlerManager, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "AddConn", c, connIDLen, statelessResetKey, tracer)
    42  	ret0, _ := ret[0].(packetHandlerManager)
    43  	ret1, _ := ret[1].(error)
    44  	return ret0, ret1
    45  }
    46  
    47  // AddConn indicates an expected call of AddConn.
    48  func (mr *MockMultiplexerMockRecorder) AddConn(c, connIDLen, statelessResetKey, tracer interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddConn", reflect.TypeOf((*MockMultiplexer)(nil).AddConn), c, connIDLen, statelessResetKey, tracer)
    51  }
    52  
    53  // RemoveConn mocks base method.
    54  func (m *MockMultiplexer) RemoveConn(arg0 indexableConn) error {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "RemoveConn", arg0)
    57  	ret0, _ := ret[0].(error)
    58  	return ret0
    59  }
    60  
    61  // RemoveConn indicates an expected call of RemoveConn.
    62  func (mr *MockMultiplexerMockRecorder) RemoveConn(arg0 interface{}) *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveConn", reflect.TypeOf((*MockMultiplexer)(nil).RemoveConn), arg0)
    65  }