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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/danielpfeifer02/quic-go-prio-packs/internal/flowcontrol (interfaces: ConnectionFlowController)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package mocks -destination connection_flow_controller.go github.com/danielpfeifer02/quic-go-prio-packs/internal/flowcontrol ConnectionFlowController
     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  // MockConnectionFlowController is a mock of ConnectionFlowController interface.
    19  type MockConnectionFlowController struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockConnectionFlowControllerMockRecorder
    22  }
    23  
    24  // MockConnectionFlowControllerMockRecorder is the mock recorder for MockConnectionFlowController.
    25  type MockConnectionFlowControllerMockRecorder struct {
    26  	mock *MockConnectionFlowController
    27  }
    28  
    29  // NewMockConnectionFlowController creates a new mock instance.
    30  func NewMockConnectionFlowController(ctrl *gomock.Controller) *MockConnectionFlowController {
    31  	mock := &MockConnectionFlowController{ctrl: ctrl}
    32  	mock.recorder = &MockConnectionFlowControllerMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockConnectionFlowController) EXPECT() *MockConnectionFlowControllerMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // AddBytesRead mocks base method.
    42  func (m *MockConnectionFlowController) AddBytesRead(arg0 protocol.ByteCount) {
    43  	m.ctrl.T.Helper()
    44  	m.ctrl.Call(m, "AddBytesRead", arg0)
    45  }
    46  
    47  // AddBytesRead indicates an expected call of AddBytesRead.
    48  func (mr *MockConnectionFlowControllerMockRecorder) AddBytesRead(arg0 any) *ConnectionFlowControllerAddBytesReadCall {
    49  	mr.mock.ctrl.T.Helper()
    50  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesRead", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesRead), arg0)
    51  	return &ConnectionFlowControllerAddBytesReadCall{Call: call}
    52  }
    53  
    54  // ConnectionFlowControllerAddBytesReadCall wrap *gomock.Call
    55  type ConnectionFlowControllerAddBytesReadCall struct {
    56  	*gomock.Call
    57  }
    58  
    59  // Return rewrite *gomock.Call.Return
    60  func (c *ConnectionFlowControllerAddBytesReadCall) Return() *ConnectionFlowControllerAddBytesReadCall {
    61  	c.Call = c.Call.Return()
    62  	return c
    63  }
    64  
    65  // Do rewrite *gomock.Call.Do
    66  func (c *ConnectionFlowControllerAddBytesReadCall) Do(f func(protocol.ByteCount)) *ConnectionFlowControllerAddBytesReadCall {
    67  	c.Call = c.Call.Do(f)
    68  	return c
    69  }
    70  
    71  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    72  func (c *ConnectionFlowControllerAddBytesReadCall) DoAndReturn(f func(protocol.ByteCount)) *ConnectionFlowControllerAddBytesReadCall {
    73  	c.Call = c.Call.DoAndReturn(f)
    74  	return c
    75  }
    76  
    77  // AddBytesSent mocks base method.
    78  func (m *MockConnectionFlowController) AddBytesSent(arg0 protocol.ByteCount) {
    79  	m.ctrl.T.Helper()
    80  	m.ctrl.Call(m, "AddBytesSent", arg0)
    81  }
    82  
    83  // AddBytesSent indicates an expected call of AddBytesSent.
    84  func (mr *MockConnectionFlowControllerMockRecorder) AddBytesSent(arg0 any) *ConnectionFlowControllerAddBytesSentCall {
    85  	mr.mock.ctrl.T.Helper()
    86  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesSent", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesSent), arg0)
    87  	return &ConnectionFlowControllerAddBytesSentCall{Call: call}
    88  }
    89  
    90  // ConnectionFlowControllerAddBytesSentCall wrap *gomock.Call
    91  type ConnectionFlowControllerAddBytesSentCall struct {
    92  	*gomock.Call
    93  }
    94  
    95  // Return rewrite *gomock.Call.Return
    96  func (c *ConnectionFlowControllerAddBytesSentCall) Return() *ConnectionFlowControllerAddBytesSentCall {
    97  	c.Call = c.Call.Return()
    98  	return c
    99  }
   100  
   101  // Do rewrite *gomock.Call.Do
   102  func (c *ConnectionFlowControllerAddBytesSentCall) Do(f func(protocol.ByteCount)) *ConnectionFlowControllerAddBytesSentCall {
   103  	c.Call = c.Call.Do(f)
   104  	return c
   105  }
   106  
   107  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   108  func (c *ConnectionFlowControllerAddBytesSentCall) DoAndReturn(f func(protocol.ByteCount)) *ConnectionFlowControllerAddBytesSentCall {
   109  	c.Call = c.Call.DoAndReturn(f)
   110  	return c
   111  }
   112  
   113  // GetWindowUpdate mocks base method.
   114  func (m *MockConnectionFlowController) GetWindowUpdate() protocol.ByteCount {
   115  	m.ctrl.T.Helper()
   116  	ret := m.ctrl.Call(m, "GetWindowUpdate")
   117  	ret0, _ := ret[0].(protocol.ByteCount)
   118  	return ret0
   119  }
   120  
   121  // GetWindowUpdate indicates an expected call of GetWindowUpdate.
   122  func (mr *MockConnectionFlowControllerMockRecorder) GetWindowUpdate() *ConnectionFlowControllerGetWindowUpdateCall {
   123  	mr.mock.ctrl.T.Helper()
   124  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockConnectionFlowController)(nil).GetWindowUpdate))
   125  	return &ConnectionFlowControllerGetWindowUpdateCall{Call: call}
   126  }
   127  
   128  // ConnectionFlowControllerGetWindowUpdateCall wrap *gomock.Call
   129  type ConnectionFlowControllerGetWindowUpdateCall struct {
   130  	*gomock.Call
   131  }
   132  
   133  // Return rewrite *gomock.Call.Return
   134  func (c *ConnectionFlowControllerGetWindowUpdateCall) Return(arg0 protocol.ByteCount) *ConnectionFlowControllerGetWindowUpdateCall {
   135  	c.Call = c.Call.Return(arg0)
   136  	return c
   137  }
   138  
   139  // Do rewrite *gomock.Call.Do
   140  func (c *ConnectionFlowControllerGetWindowUpdateCall) Do(f func() protocol.ByteCount) *ConnectionFlowControllerGetWindowUpdateCall {
   141  	c.Call = c.Call.Do(f)
   142  	return c
   143  }
   144  
   145  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   146  func (c *ConnectionFlowControllerGetWindowUpdateCall) DoAndReturn(f func() protocol.ByteCount) *ConnectionFlowControllerGetWindowUpdateCall {
   147  	c.Call = c.Call.DoAndReturn(f)
   148  	return c
   149  }
   150  
   151  // IsNewlyBlocked mocks base method.
   152  func (m *MockConnectionFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) {
   153  	m.ctrl.T.Helper()
   154  	ret := m.ctrl.Call(m, "IsNewlyBlocked")
   155  	ret0, _ := ret[0].(bool)
   156  	ret1, _ := ret[1].(protocol.ByteCount)
   157  	return ret0, ret1
   158  }
   159  
   160  // IsNewlyBlocked indicates an expected call of IsNewlyBlocked.
   161  func (mr *MockConnectionFlowControllerMockRecorder) IsNewlyBlocked() *ConnectionFlowControllerIsNewlyBlockedCall {
   162  	mr.mock.ctrl.T.Helper()
   163  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockConnectionFlowController)(nil).IsNewlyBlocked))
   164  	return &ConnectionFlowControllerIsNewlyBlockedCall{Call: call}
   165  }
   166  
   167  // ConnectionFlowControllerIsNewlyBlockedCall wrap *gomock.Call
   168  type ConnectionFlowControllerIsNewlyBlockedCall struct {
   169  	*gomock.Call
   170  }
   171  
   172  // Return rewrite *gomock.Call.Return
   173  func (c *ConnectionFlowControllerIsNewlyBlockedCall) Return(arg0 bool, arg1 protocol.ByteCount) *ConnectionFlowControllerIsNewlyBlockedCall {
   174  	c.Call = c.Call.Return(arg0, arg1)
   175  	return c
   176  }
   177  
   178  // Do rewrite *gomock.Call.Do
   179  func (c *ConnectionFlowControllerIsNewlyBlockedCall) Do(f func() (bool, protocol.ByteCount)) *ConnectionFlowControllerIsNewlyBlockedCall {
   180  	c.Call = c.Call.Do(f)
   181  	return c
   182  }
   183  
   184  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   185  func (c *ConnectionFlowControllerIsNewlyBlockedCall) DoAndReturn(f func() (bool, protocol.ByteCount)) *ConnectionFlowControllerIsNewlyBlockedCall {
   186  	c.Call = c.Call.DoAndReturn(f)
   187  	return c
   188  }
   189  
   190  // Reset mocks base method.
   191  func (m *MockConnectionFlowController) Reset() error {
   192  	m.ctrl.T.Helper()
   193  	ret := m.ctrl.Call(m, "Reset")
   194  	ret0, _ := ret[0].(error)
   195  	return ret0
   196  }
   197  
   198  // Reset indicates an expected call of Reset.
   199  func (mr *MockConnectionFlowControllerMockRecorder) Reset() *ConnectionFlowControllerResetCall {
   200  	mr.mock.ctrl.T.Helper()
   201  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockConnectionFlowController)(nil).Reset))
   202  	return &ConnectionFlowControllerResetCall{Call: call}
   203  }
   204  
   205  // ConnectionFlowControllerResetCall wrap *gomock.Call
   206  type ConnectionFlowControllerResetCall struct {
   207  	*gomock.Call
   208  }
   209  
   210  // Return rewrite *gomock.Call.Return
   211  func (c *ConnectionFlowControllerResetCall) Return(arg0 error) *ConnectionFlowControllerResetCall {
   212  	c.Call = c.Call.Return(arg0)
   213  	return c
   214  }
   215  
   216  // Do rewrite *gomock.Call.Do
   217  func (c *ConnectionFlowControllerResetCall) Do(f func() error) *ConnectionFlowControllerResetCall {
   218  	c.Call = c.Call.Do(f)
   219  	return c
   220  }
   221  
   222  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   223  func (c *ConnectionFlowControllerResetCall) DoAndReturn(f func() error) *ConnectionFlowControllerResetCall {
   224  	c.Call = c.Call.DoAndReturn(f)
   225  	return c
   226  }
   227  
   228  // SendWindowSize mocks base method.
   229  func (m *MockConnectionFlowController) SendWindowSize() protocol.ByteCount {
   230  	m.ctrl.T.Helper()
   231  	ret := m.ctrl.Call(m, "SendWindowSize")
   232  	ret0, _ := ret[0].(protocol.ByteCount)
   233  	return ret0
   234  }
   235  
   236  // SendWindowSize indicates an expected call of SendWindowSize.
   237  func (mr *MockConnectionFlowControllerMockRecorder) SendWindowSize() *ConnectionFlowControllerSendWindowSizeCall {
   238  	mr.mock.ctrl.T.Helper()
   239  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendWindowSize", reflect.TypeOf((*MockConnectionFlowController)(nil).SendWindowSize))
   240  	return &ConnectionFlowControllerSendWindowSizeCall{Call: call}
   241  }
   242  
   243  // ConnectionFlowControllerSendWindowSizeCall wrap *gomock.Call
   244  type ConnectionFlowControllerSendWindowSizeCall struct {
   245  	*gomock.Call
   246  }
   247  
   248  // Return rewrite *gomock.Call.Return
   249  func (c *ConnectionFlowControllerSendWindowSizeCall) Return(arg0 protocol.ByteCount) *ConnectionFlowControllerSendWindowSizeCall {
   250  	c.Call = c.Call.Return(arg0)
   251  	return c
   252  }
   253  
   254  // Do rewrite *gomock.Call.Do
   255  func (c *ConnectionFlowControllerSendWindowSizeCall) Do(f func() protocol.ByteCount) *ConnectionFlowControllerSendWindowSizeCall {
   256  	c.Call = c.Call.Do(f)
   257  	return c
   258  }
   259  
   260  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   261  func (c *ConnectionFlowControllerSendWindowSizeCall) DoAndReturn(f func() protocol.ByteCount) *ConnectionFlowControllerSendWindowSizeCall {
   262  	c.Call = c.Call.DoAndReturn(f)
   263  	return c
   264  }
   265  
   266  // UpdateSendWindow mocks base method.
   267  func (m *MockConnectionFlowController) UpdateSendWindow(arg0 protocol.ByteCount) bool {
   268  	m.ctrl.T.Helper()
   269  	ret := m.ctrl.Call(m, "UpdateSendWindow", arg0)
   270  	ret0, _ := ret[0].(bool)
   271  	return ret0
   272  }
   273  
   274  // UpdateSendWindow indicates an expected call of UpdateSendWindow.
   275  func (mr *MockConnectionFlowControllerMockRecorder) UpdateSendWindow(arg0 any) *ConnectionFlowControllerUpdateSendWindowCall {
   276  	mr.mock.ctrl.T.Helper()
   277  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockConnectionFlowController)(nil).UpdateSendWindow), arg0)
   278  	return &ConnectionFlowControllerUpdateSendWindowCall{Call: call}
   279  }
   280  
   281  // ConnectionFlowControllerUpdateSendWindowCall wrap *gomock.Call
   282  type ConnectionFlowControllerUpdateSendWindowCall struct {
   283  	*gomock.Call
   284  }
   285  
   286  // Return rewrite *gomock.Call.Return
   287  func (c *ConnectionFlowControllerUpdateSendWindowCall) Return(arg0 bool) *ConnectionFlowControllerUpdateSendWindowCall {
   288  	c.Call = c.Call.Return(arg0)
   289  	return c
   290  }
   291  
   292  // Do rewrite *gomock.Call.Do
   293  func (c *ConnectionFlowControllerUpdateSendWindowCall) Do(f func(protocol.ByteCount) bool) *ConnectionFlowControllerUpdateSendWindowCall {
   294  	c.Call = c.Call.Do(f)
   295  	return c
   296  }
   297  
   298  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   299  func (c *ConnectionFlowControllerUpdateSendWindowCall) DoAndReturn(f func(protocol.ByteCount) bool) *ConnectionFlowControllerUpdateSendWindowCall {
   300  	c.Call = c.Call.DoAndReturn(f)
   301  	return c
   302  }