mock_receive_stream_internal_test.go 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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.T.Helper()
  34. m.ctrl.Call(m, "CancelRead", arg0)
  35. }
  36. // CancelRead indicates an expected call of CancelRead
  37. func (mr *MockReceiveStreamIMockRecorder) CancelRead(arg0 interface{}) *gomock.Call {
  38. mr.mock.ctrl.T.Helper()
  39. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRead", reflect.TypeOf((*MockReceiveStreamI)(nil).CancelRead), arg0)
  40. }
  41. // Read mocks base method
  42. func (m *MockReceiveStreamI) Read(arg0 []byte) (int, error) {
  43. m.ctrl.T.Helper()
  44. ret := m.ctrl.Call(m, "Read", arg0)
  45. ret0, _ := ret[0].(int)
  46. ret1, _ := ret[1].(error)
  47. return ret0, ret1
  48. }
  49. // Read indicates an expected call of Read
  50. func (mr *MockReceiveStreamIMockRecorder) Read(arg0 interface{}) *gomock.Call {
  51. mr.mock.ctrl.T.Helper()
  52. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockReceiveStreamI)(nil).Read), arg0)
  53. }
  54. // SetReadDeadline mocks base method
  55. func (m *MockReceiveStreamI) SetReadDeadline(arg0 time.Time) error {
  56. m.ctrl.T.Helper()
  57. ret := m.ctrl.Call(m, "SetReadDeadline", arg0)
  58. ret0, _ := ret[0].(error)
  59. return ret0
  60. }
  61. // SetReadDeadline indicates an expected call of SetReadDeadline
  62. func (mr *MockReceiveStreamIMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call {
  63. mr.mock.ctrl.T.Helper()
  64. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadDeadline", reflect.TypeOf((*MockReceiveStreamI)(nil).SetReadDeadline), arg0)
  65. }
  66. // StreamID mocks base method
  67. func (m *MockReceiveStreamI) StreamID() protocol.StreamID {
  68. m.ctrl.T.Helper()
  69. ret := m.ctrl.Call(m, "StreamID")
  70. ret0, _ := ret[0].(protocol.StreamID)
  71. return ret0
  72. }
  73. // StreamID indicates an expected call of StreamID
  74. func (mr *MockReceiveStreamIMockRecorder) StreamID() *gomock.Call {
  75. mr.mock.ctrl.T.Helper()
  76. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StreamID", reflect.TypeOf((*MockReceiveStreamI)(nil).StreamID))
  77. }
  78. // closeForShutdown mocks base method
  79. func (m *MockReceiveStreamI) closeForShutdown(arg0 error) {
  80. m.ctrl.T.Helper()
  81. m.ctrl.Call(m, "closeForShutdown", arg0)
  82. }
  83. // closeForShutdown indicates an expected call of closeForShutdown
  84. func (mr *MockReceiveStreamIMockRecorder) closeForShutdown(arg0 interface{}) *gomock.Call {
  85. mr.mock.ctrl.T.Helper()
  86. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeForShutdown", reflect.TypeOf((*MockReceiveStreamI)(nil).closeForShutdown), arg0)
  87. }
  88. // getWindowUpdate mocks base method
  89. func (m *MockReceiveStreamI) getWindowUpdate() protocol.ByteCount {
  90. m.ctrl.T.Helper()
  91. ret := m.ctrl.Call(m, "getWindowUpdate")
  92. ret0, _ := ret[0].(protocol.ByteCount)
  93. return ret0
  94. }
  95. // getWindowUpdate indicates an expected call of getWindowUpdate
  96. func (mr *MockReceiveStreamIMockRecorder) getWindowUpdate() *gomock.Call {
  97. mr.mock.ctrl.T.Helper()
  98. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getWindowUpdate", reflect.TypeOf((*MockReceiveStreamI)(nil).getWindowUpdate))
  99. }
  100. // handleResetStreamFrame mocks base method
  101. func (m *MockReceiveStreamI) handleResetStreamFrame(arg0 *wire.ResetStreamFrame) error {
  102. m.ctrl.T.Helper()
  103. ret := m.ctrl.Call(m, "handleResetStreamFrame", arg0)
  104. ret0, _ := ret[0].(error)
  105. return ret0
  106. }
  107. // handleResetStreamFrame indicates an expected call of handleResetStreamFrame
  108. func (mr *MockReceiveStreamIMockRecorder) handleResetStreamFrame(arg0 interface{}) *gomock.Call {
  109. mr.mock.ctrl.T.Helper()
  110. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleResetStreamFrame", reflect.TypeOf((*MockReceiveStreamI)(nil).handleResetStreamFrame), arg0)
  111. }
  112. // handleStreamFrame mocks base method
  113. func (m *MockReceiveStreamI) handleStreamFrame(arg0 *wire.StreamFrame) error {
  114. m.ctrl.T.Helper()
  115. ret := m.ctrl.Call(m, "handleStreamFrame", arg0)
  116. ret0, _ := ret[0].(error)
  117. return ret0
  118. }
  119. // handleStreamFrame indicates an expected call of handleStreamFrame
  120. func (mr *MockReceiveStreamIMockRecorder) handleStreamFrame(arg0 interface{}) *gomock.Call {
  121. mr.mock.ctrl.T.Helper()
  122. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStreamFrame", reflect.TypeOf((*MockReceiveStreamI)(nil).handleStreamFrame), arg0)
  123. }