github.com/MerlinKodo/quic-go@v0.39.2/internal/mocks/stream_flow_controller.go (about)

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