github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/stream_flow_controller.go (about)

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