connection_flow_controller.go 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/lucas-clemente/quic-go/internal/flowcontrol (interfaces: ConnectionFlowController)
  3. // Package mocks is a generated GoMock package.
  4. package mocks
  5. import (
  6. reflect "reflect"
  7. gomock "github.com/golang/mock/gomock"
  8. protocol "github.com/lucas-clemente/quic-go/internal/protocol"
  9. )
  10. // MockConnectionFlowController is a mock of ConnectionFlowController interface
  11. type MockConnectionFlowController struct {
  12. ctrl *gomock.Controller
  13. recorder *MockConnectionFlowControllerMockRecorder
  14. }
  15. // MockConnectionFlowControllerMockRecorder is the mock recorder for MockConnectionFlowController
  16. type MockConnectionFlowControllerMockRecorder struct {
  17. mock *MockConnectionFlowController
  18. }
  19. // NewMockConnectionFlowController creates a new mock instance
  20. func NewMockConnectionFlowController(ctrl *gomock.Controller) *MockConnectionFlowController {
  21. mock := &MockConnectionFlowController{ctrl: ctrl}
  22. mock.recorder = &MockConnectionFlowControllerMockRecorder{mock}
  23. return mock
  24. }
  25. // EXPECT returns an object that allows the caller to indicate expected use
  26. func (m *MockConnectionFlowController) EXPECT() *MockConnectionFlowControllerMockRecorder {
  27. return m.recorder
  28. }
  29. // AddBytesRead mocks base method
  30. func (m *MockConnectionFlowController) AddBytesRead(arg0 protocol.ByteCount) {
  31. m.ctrl.T.Helper()
  32. m.ctrl.Call(m, "AddBytesRead", arg0)
  33. }
  34. // AddBytesRead indicates an expected call of AddBytesRead
  35. func (mr *MockConnectionFlowControllerMockRecorder) AddBytesRead(arg0 interface{}) *gomock.Call {
  36. mr.mock.ctrl.T.Helper()
  37. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesRead", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesRead), arg0)
  38. }
  39. // AddBytesSent mocks base method
  40. func (m *MockConnectionFlowController) AddBytesSent(arg0 protocol.ByteCount) {
  41. m.ctrl.T.Helper()
  42. m.ctrl.Call(m, "AddBytesSent", arg0)
  43. }
  44. // AddBytesSent indicates an expected call of AddBytesSent
  45. func (mr *MockConnectionFlowControllerMockRecorder) AddBytesSent(arg0 interface{}) *gomock.Call {
  46. mr.mock.ctrl.T.Helper()
  47. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesSent", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesSent), arg0)
  48. }
  49. // GetWindowUpdate mocks base method
  50. func (m *MockConnectionFlowController) GetWindowUpdate() protocol.ByteCount {
  51. m.ctrl.T.Helper()
  52. ret := m.ctrl.Call(m, "GetWindowUpdate")
  53. ret0, _ := ret[0].(protocol.ByteCount)
  54. return ret0
  55. }
  56. // GetWindowUpdate indicates an expected call of GetWindowUpdate
  57. func (mr *MockConnectionFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call {
  58. mr.mock.ctrl.T.Helper()
  59. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockConnectionFlowController)(nil).GetWindowUpdate))
  60. }
  61. // IsNewlyBlocked mocks base method
  62. func (m *MockConnectionFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) {
  63. m.ctrl.T.Helper()
  64. ret := m.ctrl.Call(m, "IsNewlyBlocked")
  65. ret0, _ := ret[0].(bool)
  66. ret1, _ := ret[1].(protocol.ByteCount)
  67. return ret0, ret1
  68. }
  69. // IsNewlyBlocked indicates an expected call of IsNewlyBlocked
  70. func (mr *MockConnectionFlowControllerMockRecorder) IsNewlyBlocked() *gomock.Call {
  71. mr.mock.ctrl.T.Helper()
  72. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockConnectionFlowController)(nil).IsNewlyBlocked))
  73. }
  74. // SendWindowSize mocks base method
  75. func (m *MockConnectionFlowController) SendWindowSize() protocol.ByteCount {
  76. m.ctrl.T.Helper()
  77. ret := m.ctrl.Call(m, "SendWindowSize")
  78. ret0, _ := ret[0].(protocol.ByteCount)
  79. return ret0
  80. }
  81. // SendWindowSize indicates an expected call of SendWindowSize
  82. func (mr *MockConnectionFlowControllerMockRecorder) SendWindowSize() *gomock.Call {
  83. mr.mock.ctrl.T.Helper()
  84. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendWindowSize", reflect.TypeOf((*MockConnectionFlowController)(nil).SendWindowSize))
  85. }
  86. // UpdateSendWindow mocks base method
  87. func (m *MockConnectionFlowController) UpdateSendWindow(arg0 protocol.ByteCount) {
  88. m.ctrl.T.Helper()
  89. m.ctrl.Call(m, "UpdateSendWindow", arg0)
  90. }
  91. // UpdateSendWindow indicates an expected call of UpdateSendWindow
  92. func (mr *MockConnectionFlowControllerMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call {
  93. mr.mock.ctrl.T.Helper()
  94. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockConnectionFlowController)(nil).UpdateSendWindow), arg0)
  95. }