mock_multiplexer_test.go 1.9 KB

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