github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/internal/mocks/stream_flow_controller.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/danielpfeifer02/quic-go-prio-packs/internal/flowcontrol (interfaces: StreamFlowController)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package mocks -destination stream_flow_controller.go github.com/danielpfeifer02/quic-go-prio-packs/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/danielpfeifer02/quic-go-prio-packs/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() *StreamFlowControllerAbandonCall {
    49  	mr.mock.ctrl.T.Helper()
    50  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Abandon", reflect.TypeOf((*MockStreamFlowController)(nil).Abandon))
    51  	return &StreamFlowControllerAbandonCall{Call: call}
    52  }
    53  
    54  // StreamFlowControllerAbandonCall wrap *gomock.Call
    55  type StreamFlowControllerAbandonCall struct {
    56  	*gomock.Call
    57  }
    58  
    59  // Return rewrite *gomock.Call.Return
    60  func (c *StreamFlowControllerAbandonCall) Return() *StreamFlowControllerAbandonCall {
    61  	c.Call = c.Call.Return()
    62  	return c
    63  }
    64  
    65  // Do rewrite *gomock.Call.Do
    66  func (c *StreamFlowControllerAbandonCall) Do(f func()) *StreamFlowControllerAbandonCall {
    67  	c.Call = c.Call.Do(f)
    68  	return c
    69  }
    70  
    71  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    72  func (c *StreamFlowControllerAbandonCall) DoAndReturn(f func()) *StreamFlowControllerAbandonCall {
    73  	c.Call = c.Call.DoAndReturn(f)
    74  	return c
    75  }
    76  
    77  // AddBytesRead mocks base method.
    78  func (m *MockStreamFlowController) AddBytesRead(arg0 protocol.ByteCount) {
    79  	m.ctrl.T.Helper()
    80  	m.ctrl.Call(m, "AddBytesRead", arg0)
    81  }
    82  
    83  // AddBytesRead indicates an expected call of AddBytesRead.
    84  func (mr *MockStreamFlowControllerMockRecorder) AddBytesRead(arg0 any) *StreamFlowControllerAddBytesReadCall {
    85  	mr.mock.ctrl.T.Helper()
    86  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesRead", reflect.TypeOf((*MockStreamFlowController)(nil).AddBytesRead), arg0)
    87  	return &StreamFlowControllerAddBytesReadCall{Call: call}
    88  }
    89  
    90  // StreamFlowControllerAddBytesReadCall wrap *gomock.Call
    91  type StreamFlowControllerAddBytesReadCall struct {
    92  	*gomock.Call
    93  }
    94  
    95  // Return rewrite *gomock.Call.Return
    96  func (c *StreamFlowControllerAddBytesReadCall) Return() *StreamFlowControllerAddBytesReadCall {
    97  	c.Call = c.Call.Return()
    98  	return c
    99  }
   100  
   101  // Do rewrite *gomock.Call.Do
   102  func (c *StreamFlowControllerAddBytesReadCall) Do(f func(protocol.ByteCount)) *StreamFlowControllerAddBytesReadCall {
   103  	c.Call = c.Call.Do(f)
   104  	return c
   105  }
   106  
   107  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   108  func (c *StreamFlowControllerAddBytesReadCall) DoAndReturn(f func(protocol.ByteCount)) *StreamFlowControllerAddBytesReadCall {
   109  	c.Call = c.Call.DoAndReturn(f)
   110  	return c
   111  }
   112  
   113  // AddBytesSent mocks base method.
   114  func (m *MockStreamFlowController) AddBytesSent(arg0 protocol.ByteCount) {
   115  	m.ctrl.T.Helper()
   116  	m.ctrl.Call(m, "AddBytesSent", arg0)
   117  }
   118  
   119  // AddBytesSent indicates an expected call of AddBytesSent.
   120  func (mr *MockStreamFlowControllerMockRecorder) AddBytesSent(arg0 any) *StreamFlowControllerAddBytesSentCall {
   121  	mr.mock.ctrl.T.Helper()
   122  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesSent", reflect.TypeOf((*MockStreamFlowController)(nil).AddBytesSent), arg0)
   123  	return &StreamFlowControllerAddBytesSentCall{Call: call}
   124  }
   125  
   126  // StreamFlowControllerAddBytesSentCall wrap *gomock.Call
   127  type StreamFlowControllerAddBytesSentCall struct {
   128  	*gomock.Call
   129  }
   130  
   131  // Return rewrite *gomock.Call.Return
   132  func (c *StreamFlowControllerAddBytesSentCall) Return() *StreamFlowControllerAddBytesSentCall {
   133  	c.Call = c.Call.Return()
   134  	return c
   135  }
   136  
   137  // Do rewrite *gomock.Call.Do
   138  func (c *StreamFlowControllerAddBytesSentCall) Do(f func(protocol.ByteCount)) *StreamFlowControllerAddBytesSentCall {
   139  	c.Call = c.Call.Do(f)
   140  	return c
   141  }
   142  
   143  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   144  func (c *StreamFlowControllerAddBytesSentCall) DoAndReturn(f func(protocol.ByteCount)) *StreamFlowControllerAddBytesSentCall {
   145  	c.Call = c.Call.DoAndReturn(f)
   146  	return c
   147  }
   148  
   149  // GetWindowUpdate mocks base method.
   150  func (m *MockStreamFlowController) GetWindowUpdate() protocol.ByteCount {
   151  	m.ctrl.T.Helper()
   152  	ret := m.ctrl.Call(m, "GetWindowUpdate")
   153  	ret0, _ := ret[0].(protocol.ByteCount)
   154  	return ret0
   155  }
   156  
   157  // GetWindowUpdate indicates an expected call of GetWindowUpdate.
   158  func (mr *MockStreamFlowControllerMockRecorder) GetWindowUpdate() *StreamFlowControllerGetWindowUpdateCall {
   159  	mr.mock.ctrl.T.Helper()
   160  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockStreamFlowController)(nil).GetWindowUpdate))
   161  	return &StreamFlowControllerGetWindowUpdateCall{Call: call}
   162  }
   163  
   164  // StreamFlowControllerGetWindowUpdateCall wrap *gomock.Call
   165  type StreamFlowControllerGetWindowUpdateCall struct {
   166  	*gomock.Call
   167  }
   168  
   169  // Return rewrite *gomock.Call.Return
   170  func (c *StreamFlowControllerGetWindowUpdateCall) Return(arg0 protocol.ByteCount) *StreamFlowControllerGetWindowUpdateCall {
   171  	c.Call = c.Call.Return(arg0)
   172  	return c
   173  }
   174  
   175  // Do rewrite *gomock.Call.Do
   176  func (c *StreamFlowControllerGetWindowUpdateCall) Do(f func() protocol.ByteCount) *StreamFlowControllerGetWindowUpdateCall {
   177  	c.Call = c.Call.Do(f)
   178  	return c
   179  }
   180  
   181  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   182  func (c *StreamFlowControllerGetWindowUpdateCall) DoAndReturn(f func() protocol.ByteCount) *StreamFlowControllerGetWindowUpdateCall {
   183  	c.Call = c.Call.DoAndReturn(f)
   184  	return c
   185  }
   186  
   187  // IsNewlyBlocked mocks base method.
   188  func (m *MockStreamFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) {
   189  	m.ctrl.T.Helper()
   190  	ret := m.ctrl.Call(m, "IsNewlyBlocked")
   191  	ret0, _ := ret[0].(bool)
   192  	ret1, _ := ret[1].(protocol.ByteCount)
   193  	return ret0, ret1
   194  }
   195  
   196  // IsNewlyBlocked indicates an expected call of IsNewlyBlocked.
   197  func (mr *MockStreamFlowControllerMockRecorder) IsNewlyBlocked() *StreamFlowControllerIsNewlyBlockedCall {
   198  	mr.mock.ctrl.T.Helper()
   199  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockStreamFlowController)(nil).IsNewlyBlocked))
   200  	return &StreamFlowControllerIsNewlyBlockedCall{Call: call}
   201  }
   202  
   203  // StreamFlowControllerIsNewlyBlockedCall wrap *gomock.Call
   204  type StreamFlowControllerIsNewlyBlockedCall struct {
   205  	*gomock.Call
   206  }
   207  
   208  // Return rewrite *gomock.Call.Return
   209  func (c *StreamFlowControllerIsNewlyBlockedCall) Return(arg0 bool, arg1 protocol.ByteCount) *StreamFlowControllerIsNewlyBlockedCall {
   210  	c.Call = c.Call.Return(arg0, arg1)
   211  	return c
   212  }
   213  
   214  // Do rewrite *gomock.Call.Do
   215  func (c *StreamFlowControllerIsNewlyBlockedCall) Do(f func() (bool, protocol.ByteCount)) *StreamFlowControllerIsNewlyBlockedCall {
   216  	c.Call = c.Call.Do(f)
   217  	return c
   218  }
   219  
   220  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   221  func (c *StreamFlowControllerIsNewlyBlockedCall) DoAndReturn(f func() (bool, protocol.ByteCount)) *StreamFlowControllerIsNewlyBlockedCall {
   222  	c.Call = c.Call.DoAndReturn(f)
   223  	return c
   224  }
   225  
   226  // SendWindowSize mocks base method.
   227  func (m *MockStreamFlowController) SendWindowSize() protocol.ByteCount {
   228  	m.ctrl.T.Helper()
   229  	ret := m.ctrl.Call(m, "SendWindowSize")
   230  	ret0, _ := ret[0].(protocol.ByteCount)
   231  	return ret0
   232  }
   233  
   234  // SendWindowSize indicates an expected call of SendWindowSize.
   235  func (mr *MockStreamFlowControllerMockRecorder) SendWindowSize() *StreamFlowControllerSendWindowSizeCall {
   236  	mr.mock.ctrl.T.Helper()
   237  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendWindowSize", reflect.TypeOf((*MockStreamFlowController)(nil).SendWindowSize))
   238  	return &StreamFlowControllerSendWindowSizeCall{Call: call}
   239  }
   240  
   241  // StreamFlowControllerSendWindowSizeCall wrap *gomock.Call
   242  type StreamFlowControllerSendWindowSizeCall struct {
   243  	*gomock.Call
   244  }
   245  
   246  // Return rewrite *gomock.Call.Return
   247  func (c *StreamFlowControllerSendWindowSizeCall) Return(arg0 protocol.ByteCount) *StreamFlowControllerSendWindowSizeCall {
   248  	c.Call = c.Call.Return(arg0)
   249  	return c
   250  }
   251  
   252  // Do rewrite *gomock.Call.Do
   253  func (c *StreamFlowControllerSendWindowSizeCall) Do(f func() protocol.ByteCount) *StreamFlowControllerSendWindowSizeCall {
   254  	c.Call = c.Call.Do(f)
   255  	return c
   256  }
   257  
   258  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   259  func (c *StreamFlowControllerSendWindowSizeCall) DoAndReturn(f func() protocol.ByteCount) *StreamFlowControllerSendWindowSizeCall {
   260  	c.Call = c.Call.DoAndReturn(f)
   261  	return c
   262  }
   263  
   264  // UpdateHighestReceived mocks base method.
   265  func (m *MockStreamFlowController) UpdateHighestReceived(arg0 protocol.ByteCount, arg1 bool) error {
   266  	m.ctrl.T.Helper()
   267  	ret := m.ctrl.Call(m, "UpdateHighestReceived", arg0, arg1)
   268  	ret0, _ := ret[0].(error)
   269  	return ret0
   270  }
   271  
   272  // UpdateHighestReceived indicates an expected call of UpdateHighestReceived.
   273  func (mr *MockStreamFlowControllerMockRecorder) UpdateHighestReceived(arg0, arg1 any) *StreamFlowControllerUpdateHighestReceivedCall {
   274  	mr.mock.ctrl.T.Helper()
   275  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateHighestReceived", reflect.TypeOf((*MockStreamFlowController)(nil).UpdateHighestReceived), arg0, arg1)
   276  	return &StreamFlowControllerUpdateHighestReceivedCall{Call: call}
   277  }
   278  
   279  // StreamFlowControllerUpdateHighestReceivedCall wrap *gomock.Call
   280  type StreamFlowControllerUpdateHighestReceivedCall struct {
   281  	*gomock.Call
   282  }
   283  
   284  // Return rewrite *gomock.Call.Return
   285  func (c *StreamFlowControllerUpdateHighestReceivedCall) Return(arg0 error) *StreamFlowControllerUpdateHighestReceivedCall {
   286  	c.Call = c.Call.Return(arg0)
   287  	return c
   288  }
   289  
   290  // Do rewrite *gomock.Call.Do
   291  func (c *StreamFlowControllerUpdateHighestReceivedCall) Do(f func(protocol.ByteCount, bool) error) *StreamFlowControllerUpdateHighestReceivedCall {
   292  	c.Call = c.Call.Do(f)
   293  	return c
   294  }
   295  
   296  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   297  func (c *StreamFlowControllerUpdateHighestReceivedCall) DoAndReturn(f func(protocol.ByteCount, bool) error) *StreamFlowControllerUpdateHighestReceivedCall {
   298  	c.Call = c.Call.DoAndReturn(f)
   299  	return c
   300  }
   301  
   302  // UpdateSendWindow mocks base method.
   303  func (m *MockStreamFlowController) UpdateSendWindow(arg0 protocol.ByteCount) bool {
   304  	m.ctrl.T.Helper()
   305  	ret := m.ctrl.Call(m, "UpdateSendWindow", arg0)
   306  	ret0, _ := ret[0].(bool)
   307  	return ret0
   308  }
   309  
   310  // UpdateSendWindow indicates an expected call of UpdateSendWindow.
   311  func (mr *MockStreamFlowControllerMockRecorder) UpdateSendWindow(arg0 any) *StreamFlowControllerUpdateSendWindowCall {
   312  	mr.mock.ctrl.T.Helper()
   313  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockStreamFlowController)(nil).UpdateSendWindow), arg0)
   314  	return &StreamFlowControllerUpdateSendWindowCall{Call: call}
   315  }
   316  
   317  // StreamFlowControllerUpdateSendWindowCall wrap *gomock.Call
   318  type StreamFlowControllerUpdateSendWindowCall struct {
   319  	*gomock.Call
   320  }
   321  
   322  // Return rewrite *gomock.Call.Return
   323  func (c *StreamFlowControllerUpdateSendWindowCall) Return(arg0 bool) *StreamFlowControllerUpdateSendWindowCall {
   324  	c.Call = c.Call.Return(arg0)
   325  	return c
   326  }
   327  
   328  // Do rewrite *gomock.Call.Do
   329  func (c *StreamFlowControllerUpdateSendWindowCall) Do(f func(protocol.ByteCount) bool) *StreamFlowControllerUpdateSendWindowCall {
   330  	c.Call = c.Call.Do(f)
   331  	return c
   332  }
   333  
   334  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   335  func (c *StreamFlowControllerUpdateSendWindowCall) DoAndReturn(f func(protocol.ByteCount) bool) *StreamFlowControllerUpdateSendWindowCall {
   336  	c.Call = c.Call.DoAndReturn(f)
   337  	return c
   338  }