mock_multiplexer_test.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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, arg2 []byte) (packetHandlerManager, error) {
  31. m.ctrl.T.Helper()
  32. ret := m.ctrl.Call(m, "AddConn", arg0, arg1, arg2)
  33. ret0, _ := ret[0].(packetHandlerManager)
  34. ret1, _ := ret[1].(error)
  35. return ret0, ret1
  36. }
  37. // AddConn indicates an expected call of AddConn
  38. func (mr *MockMultiplexerMockRecorder) AddConn(arg0, arg1, arg2 interface{}) *gomock.Call {
  39. mr.mock.ctrl.T.Helper()
  40. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddConn", reflect.TypeOf((*MockMultiplexer)(nil).AddConn), arg0, arg1, arg2)
  41. }
  42. // RemoveConn mocks base method
  43. func (m *MockMultiplexer) RemoveConn(arg0 net.PacketConn) error {
  44. m.ctrl.T.Helper()
  45. ret := m.ctrl.Call(m, "RemoveConn", arg0)
  46. ret0, _ := ret[0].(error)
  47. return ret0
  48. }
  49. // RemoveConn indicates an expected call of RemoveConn
  50. func (mr *MockMultiplexerMockRecorder) RemoveConn(arg0 interface{}) *gomock.Call {
  51. mr.mock.ctrl.T.Helper()
  52. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveConn", reflect.TypeOf((*MockMultiplexer)(nil).RemoveConn), arg0)
  53. }