mock_session_runner_test.go 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/lucas-clemente/quic-go (interfaces: SessionRunner)
  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. // MockSessionRunner is a mock of SessionRunner interface
  11. type MockSessionRunner struct {
  12. ctrl *gomock.Controller
  13. recorder *MockSessionRunnerMockRecorder
  14. }
  15. // MockSessionRunnerMockRecorder is the mock recorder for MockSessionRunner
  16. type MockSessionRunnerMockRecorder struct {
  17. mock *MockSessionRunner
  18. }
  19. // NewMockSessionRunner creates a new mock instance
  20. func NewMockSessionRunner(ctrl *gomock.Controller) *MockSessionRunner {
  21. mock := &MockSessionRunner{ctrl: ctrl}
  22. mock.recorder = &MockSessionRunnerMockRecorder{mock}
  23. return mock
  24. }
  25. // EXPECT returns an object that allows the caller to indicate expected use
  26. func (m *MockSessionRunner) EXPECT() *MockSessionRunnerMockRecorder {
  27. return m.recorder
  28. }
  29. // AddResetToken mocks base method
  30. func (m *MockSessionRunner) AddResetToken(arg0 [16]byte, arg1 packetHandler) {
  31. m.ctrl.T.Helper()
  32. m.ctrl.Call(m, "AddResetToken", arg0, arg1)
  33. }
  34. // AddResetToken indicates an expected call of AddResetToken
  35. func (mr *MockSessionRunnerMockRecorder) AddResetToken(arg0, arg1 interface{}) *gomock.Call {
  36. mr.mock.ctrl.T.Helper()
  37. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddResetToken", reflect.TypeOf((*MockSessionRunner)(nil).AddResetToken), arg0, arg1)
  38. }
  39. // OnHandshakeComplete mocks base method
  40. func (m *MockSessionRunner) OnHandshakeComplete(arg0 Session) {
  41. m.ctrl.T.Helper()
  42. m.ctrl.Call(m, "OnHandshakeComplete", arg0)
  43. }
  44. // OnHandshakeComplete indicates an expected call of OnHandshakeComplete
  45. func (mr *MockSessionRunnerMockRecorder) OnHandshakeComplete(arg0 interface{}) *gomock.Call {
  46. mr.mock.ctrl.T.Helper()
  47. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnHandshakeComplete", reflect.TypeOf((*MockSessionRunner)(nil).OnHandshakeComplete), arg0)
  48. }
  49. // Remove mocks base method
  50. func (m *MockSessionRunner) Remove(arg0 protocol.ConnectionID) {
  51. m.ctrl.T.Helper()
  52. m.ctrl.Call(m, "Remove", arg0)
  53. }
  54. // Remove indicates an expected call of Remove
  55. func (mr *MockSessionRunnerMockRecorder) Remove(arg0 interface{}) *gomock.Call {
  56. mr.mock.ctrl.T.Helper()
  57. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockSessionRunner)(nil).Remove), arg0)
  58. }
  59. // RemoveResetToken mocks base method
  60. func (m *MockSessionRunner) RemoveResetToken(arg0 [16]byte) {
  61. m.ctrl.T.Helper()
  62. m.ctrl.Call(m, "RemoveResetToken", arg0)
  63. }
  64. // RemoveResetToken indicates an expected call of RemoveResetToken
  65. func (mr *MockSessionRunnerMockRecorder) RemoveResetToken(arg0 interface{}) *gomock.Call {
  66. mr.mock.ctrl.T.Helper()
  67. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveResetToken", reflect.TypeOf((*MockSessionRunner)(nil).RemoveResetToken), arg0)
  68. }
  69. // Retire mocks base method
  70. func (m *MockSessionRunner) Retire(arg0 protocol.ConnectionID) {
  71. m.ctrl.T.Helper()
  72. m.ctrl.Call(m, "Retire", arg0)
  73. }
  74. // Retire indicates an expected call of Retire
  75. func (mr *MockSessionRunnerMockRecorder) Retire(arg0 interface{}) *gomock.Call {
  76. mr.mock.ctrl.T.Helper()
  77. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Retire", reflect.TypeOf((*MockSessionRunner)(nil).Retire), arg0)
  78. }