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