mock_packet_handler_manager_test.go 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/lucas-clemente/quic-go (interfaces: PacketHandlerManager)
  3. // Package quic is a generated GoMock package.
  4. package quic
  5. import (
  6. reflect "reflect"
  7. gomock "github.com/golang/mock/gomock"
  8. protocol "github.com/lucas-clemente/quic-go/internal/protocol"
  9. )
  10. // MockPacketHandlerManager is a mock of PacketHandlerManager interface
  11. type MockPacketHandlerManager struct {
  12. ctrl *gomock.Controller
  13. recorder *MockPacketHandlerManagerMockRecorder
  14. }
  15. // MockPacketHandlerManagerMockRecorder is the mock recorder for MockPacketHandlerManager
  16. type MockPacketHandlerManagerMockRecorder struct {
  17. mock *MockPacketHandlerManager
  18. }
  19. // NewMockPacketHandlerManager creates a new mock instance
  20. func NewMockPacketHandlerManager(ctrl *gomock.Controller) *MockPacketHandlerManager {
  21. mock := &MockPacketHandlerManager{ctrl: ctrl}
  22. mock.recorder = &MockPacketHandlerManagerMockRecorder{mock}
  23. return mock
  24. }
  25. // EXPECT returns an object that allows the caller to indicate expected use
  26. func (m *MockPacketHandlerManager) EXPECT() *MockPacketHandlerManagerMockRecorder {
  27. return m.recorder
  28. }
  29. // Add mocks base method
  30. func (m *MockPacketHandlerManager) Add(arg0 protocol.ConnectionID, arg1 packetHandler) {
  31. m.ctrl.T.Helper()
  32. m.ctrl.Call(m, "Add", arg0, arg1)
  33. }
  34. // Add indicates an expected call of Add
  35. func (mr *MockPacketHandlerManagerMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call {
  36. mr.mock.ctrl.T.Helper()
  37. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockPacketHandlerManager)(nil).Add), arg0, arg1)
  38. }
  39. // AddResetToken mocks base method
  40. func (m *MockPacketHandlerManager) AddResetToken(arg0 [16]byte, arg1 packetHandler) {
  41. m.ctrl.T.Helper()
  42. m.ctrl.Call(m, "AddResetToken", arg0, arg1)
  43. }
  44. // AddResetToken indicates an expected call of AddResetToken
  45. func (mr *MockPacketHandlerManagerMockRecorder) AddResetToken(arg0, arg1 interface{}) *gomock.Call {
  46. mr.mock.ctrl.T.Helper()
  47. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddResetToken", reflect.TypeOf((*MockPacketHandlerManager)(nil).AddResetToken), arg0, arg1)
  48. }
  49. // Close mocks base method
  50. func (m *MockPacketHandlerManager) Close() error {
  51. m.ctrl.T.Helper()
  52. ret := m.ctrl.Call(m, "Close")
  53. ret0, _ := ret[0].(error)
  54. return ret0
  55. }
  56. // Close indicates an expected call of Close
  57. func (mr *MockPacketHandlerManagerMockRecorder) Close() *gomock.Call {
  58. mr.mock.ctrl.T.Helper()
  59. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockPacketHandlerManager)(nil).Close))
  60. }
  61. // CloseServer mocks base method
  62. func (m *MockPacketHandlerManager) CloseServer() {
  63. m.ctrl.T.Helper()
  64. m.ctrl.Call(m, "CloseServer")
  65. }
  66. // CloseServer indicates an expected call of CloseServer
  67. func (mr *MockPacketHandlerManagerMockRecorder) CloseServer() *gomock.Call {
  68. mr.mock.ctrl.T.Helper()
  69. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseServer", reflect.TypeOf((*MockPacketHandlerManager)(nil).CloseServer))
  70. }
  71. // GetStatelessResetToken mocks base method
  72. func (m *MockPacketHandlerManager) GetStatelessResetToken(arg0 protocol.ConnectionID) [16]byte {
  73. m.ctrl.T.Helper()
  74. ret := m.ctrl.Call(m, "GetStatelessResetToken", arg0)
  75. ret0, _ := ret[0].([16]byte)
  76. return ret0
  77. }
  78. // GetStatelessResetToken indicates an expected call of GetStatelessResetToken
  79. func (mr *MockPacketHandlerManagerMockRecorder) GetStatelessResetToken(arg0 interface{}) *gomock.Call {
  80. mr.mock.ctrl.T.Helper()
  81. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatelessResetToken", reflect.TypeOf((*MockPacketHandlerManager)(nil).GetStatelessResetToken), arg0)
  82. }
  83. // Remove mocks base method
  84. func (m *MockPacketHandlerManager) Remove(arg0 protocol.ConnectionID) {
  85. m.ctrl.T.Helper()
  86. m.ctrl.Call(m, "Remove", arg0)
  87. }
  88. // Remove indicates an expected call of Remove
  89. func (mr *MockPacketHandlerManagerMockRecorder) Remove(arg0 interface{}) *gomock.Call {
  90. mr.mock.ctrl.T.Helper()
  91. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockPacketHandlerManager)(nil).Remove), arg0)
  92. }
  93. // RemoveResetToken mocks base method
  94. func (m *MockPacketHandlerManager) RemoveResetToken(arg0 [16]byte) {
  95. m.ctrl.T.Helper()
  96. m.ctrl.Call(m, "RemoveResetToken", arg0)
  97. }
  98. // RemoveResetToken indicates an expected call of RemoveResetToken
  99. func (mr *MockPacketHandlerManagerMockRecorder) RemoveResetToken(arg0 interface{}) *gomock.Call {
  100. mr.mock.ctrl.T.Helper()
  101. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveResetToken", reflect.TypeOf((*MockPacketHandlerManager)(nil).RemoveResetToken), arg0)
  102. }
  103. // Retire mocks base method
  104. func (m *MockPacketHandlerManager) Retire(arg0 protocol.ConnectionID) {
  105. m.ctrl.T.Helper()
  106. m.ctrl.Call(m, "Retire", arg0)
  107. }
  108. // Retire indicates an expected call of Retire
  109. func (mr *MockPacketHandlerManagerMockRecorder) Retire(arg0 interface{}) *gomock.Call {
  110. mr.mock.ctrl.T.Helper()
  111. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Retire", reflect.TypeOf((*MockPacketHandlerManager)(nil).Retire), arg0)
  112. }
  113. // SetServer mocks base method
  114. func (m *MockPacketHandlerManager) SetServer(arg0 unknownPacketHandler) {
  115. m.ctrl.T.Helper()
  116. m.ctrl.Call(m, "SetServer", arg0)
  117. }
  118. // SetServer indicates an expected call of SetServer
  119. func (mr *MockPacketHandlerManagerMockRecorder) SetServer(arg0 interface{}) *gomock.Call {
  120. mr.mock.ctrl.T.Helper()
  121. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetServer", reflect.TypeOf((*MockPacketHandlerManager)(nil).SetServer), arg0)
  122. }