mock_receive_stream_internal_test.go 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/lucas-clemente/quic-go (interfaces: ReceiveStreamI)
  3. // Package quic is a generated GoMock package.
  4. package quic
  5. import (
  6. reflect "reflect"
  7. time "time"
  8. gomock "github.com/golang/mock/gomock"
  9. protocol "github.com/lucas-clemente/quic-go/internal/protocol"
  10. wire "github.com/lucas-clemente/quic-go/internal/wire"
  11. )
  12. // MockReceiveStreamI is a mock of ReceiveStreamI interface
  13. type MockReceiveStreamI struct {
  14. ctrl *gomock.Controller
  15. recorder *MockReceiveStreamIMockRecorder
  16. }
  17. // MockReceiveStreamIMockRecorder is the mock recorder for MockReceiveStreamI
  18. type MockReceiveStreamIMockRecorder struct {
  19. mock *MockReceiveStreamI
  20. }
  21. // NewMockReceiveStreamI creates a new mock instance
  22. func NewMockReceiveStreamI(ctrl *gomock.Controller) *MockReceiveStreamI {
  23. mock := &MockReceiveStreamI{ctrl: ctrl}
  24. mock.recorder = &MockReceiveStreamIMockRecorder{mock}
  25. return mock
  26. }
  27. // EXPECT returns an object that allows the caller to indicate expected use
  28. func (m *MockReceiveStreamI) EXPECT() *MockReceiveStreamIMockRecorder {
  29. return m.recorder
  30. }
  31. // CancelRead mocks base method
  32. func (m *MockReceiveStreamI) CancelRead(arg0 protocol.ApplicationErrorCode) {
  33. m.ctrl.Call(m, "CancelRead", arg0)
  34. }
  35. // CancelRead indicates an expected call of CancelRead
  36. func (mr *MockReceiveStreamIMockRecorder) CancelRead(arg0 interface{}) *gomock.Call {
  37. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRead", reflect.TypeOf((*MockReceiveStreamI)(nil).CancelRead), arg0)
  38. }
  39. // Read mocks base method
  40. func (m *MockReceiveStreamI) Read(arg0 []byte) (int, error) {
  41. ret := m.ctrl.Call(m, "Read", arg0)
  42. ret0, _ := ret[0].(int)
  43. ret1, _ := ret[1].(error)
  44. return ret0, ret1
  45. }
  46. // Read indicates an expected call of Read
  47. func (mr *MockReceiveStreamIMockRecorder) Read(arg0 interface{}) *gomock.Call {
  48. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockReceiveStreamI)(nil).Read), arg0)
  49. }
  50. // SetReadDeadline mocks base method
  51. func (m *MockReceiveStreamI) SetReadDeadline(arg0 time.Time) error {
  52. ret := m.ctrl.Call(m, "SetReadDeadline", arg0)
  53. ret0, _ := ret[0].(error)
  54. return ret0
  55. }
  56. // SetReadDeadline indicates an expected call of SetReadDeadline
  57. func (mr *MockReceiveStreamIMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call {
  58. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadDeadline", reflect.TypeOf((*MockReceiveStreamI)(nil).SetReadDeadline), arg0)
  59. }
  60. // StreamID mocks base method
  61. func (m *MockReceiveStreamI) StreamID() protocol.StreamID {
  62. ret := m.ctrl.Call(m, "StreamID")
  63. ret0, _ := ret[0].(protocol.StreamID)
  64. return ret0
  65. }
  66. // StreamID indicates an expected call of StreamID
  67. func (mr *MockReceiveStreamIMockRecorder) StreamID() *gomock.Call {
  68. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StreamID", reflect.TypeOf((*MockReceiveStreamI)(nil).StreamID))
  69. }
  70. // closeForShutdown mocks base method
  71. func (m *MockReceiveStreamI) closeForShutdown(arg0 error) {
  72. m.ctrl.Call(m, "closeForShutdown", arg0)
  73. }
  74. // closeForShutdown indicates an expected call of closeForShutdown
  75. func (mr *MockReceiveStreamIMockRecorder) closeForShutdown(arg0 interface{}) *gomock.Call {
  76. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeForShutdown", reflect.TypeOf((*MockReceiveStreamI)(nil).closeForShutdown), arg0)
  77. }
  78. // getWindowUpdate mocks base method
  79. func (m *MockReceiveStreamI) getWindowUpdate() protocol.ByteCount {
  80. ret := m.ctrl.Call(m, "getWindowUpdate")
  81. ret0, _ := ret[0].(protocol.ByteCount)
  82. return ret0
  83. }
  84. // getWindowUpdate indicates an expected call of getWindowUpdate
  85. func (mr *MockReceiveStreamIMockRecorder) getWindowUpdate() *gomock.Call {
  86. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getWindowUpdate", reflect.TypeOf((*MockReceiveStreamI)(nil).getWindowUpdate))
  87. }
  88. // handleResetStreamFrame mocks base method
  89. func (m *MockReceiveStreamI) handleResetStreamFrame(arg0 *wire.ResetStreamFrame) error {
  90. ret := m.ctrl.Call(m, "handleResetStreamFrame", arg0)
  91. ret0, _ := ret[0].(error)
  92. return ret0
  93. }
  94. // handleResetStreamFrame indicates an expected call of handleResetStreamFrame
  95. func (mr *MockReceiveStreamIMockRecorder) handleResetStreamFrame(arg0 interface{}) *gomock.Call {
  96. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleResetStreamFrame", reflect.TypeOf((*MockReceiveStreamI)(nil).handleResetStreamFrame), arg0)
  97. }
  98. // handleStreamFrame mocks base method
  99. func (m *MockReceiveStreamI) handleStreamFrame(arg0 *wire.StreamFrame) error {
  100. ret := m.ctrl.Call(m, "handleStreamFrame", arg0)
  101. ret0, _ := ret[0].(error)
  102. return ret0
  103. }
  104. // handleStreamFrame indicates an expected call of handleStreamFrame
  105. func (mr *MockReceiveStreamIMockRecorder) handleStreamFrame(arg0 interface{}) *gomock.Call {
  106. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStreamFrame", reflect.TypeOf((*MockReceiveStreamI)(nil).handleStreamFrame), arg0)
  107. }