mock_session_runner_test.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. // onHandshakeComplete mocks base method
  30. func (m *MockSessionRunner) onHandshakeComplete(arg0 Session) {
  31. m.ctrl.Call(m, "onHandshakeComplete", arg0)
  32. }
  33. // onHandshakeComplete indicates an expected call of onHandshakeComplete
  34. func (mr *MockSessionRunnerMockRecorder) onHandshakeComplete(arg0 interface{}) *gomock.Call {
  35. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "onHandshakeComplete", reflect.TypeOf((*MockSessionRunner)(nil).onHandshakeComplete), arg0)
  36. }
  37. // removeConnectionID mocks base method
  38. func (m *MockSessionRunner) removeConnectionID(arg0 protocol.ConnectionID) {
  39. m.ctrl.Call(m, "removeConnectionID", arg0)
  40. }
  41. // removeConnectionID indicates an expected call of removeConnectionID
  42. func (mr *MockSessionRunnerMockRecorder) removeConnectionID(arg0 interface{}) *gomock.Call {
  43. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "removeConnectionID", reflect.TypeOf((*MockSessionRunner)(nil).removeConnectionID), arg0)
  44. }
  45. // retireConnectionID mocks base method
  46. func (m *MockSessionRunner) retireConnectionID(arg0 protocol.ConnectionID) {
  47. m.ctrl.Call(m, "retireConnectionID", arg0)
  48. }
  49. // retireConnectionID indicates an expected call of retireConnectionID
  50. func (mr *MockSessionRunnerMockRecorder) retireConnectionID(arg0 interface{}) *gomock.Call {
  51. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "retireConnectionID", reflect.TypeOf((*MockSessionRunner)(nil).retireConnectionID), arg0)
  52. }