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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MerlinKodo/quic-go/internal/flowcontrol (interfaces: ConnectionFlowController)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -build_flags=-tags=gomock -package mocks -destination connection_flow_controller.go github.com/MerlinKodo/quic-go/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/MerlinKodo/quic-go/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) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesRead", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesRead), arg0)
    51  }
    52  
    53  // AddBytesSent mocks base method.
    54  func (m *MockConnectionFlowController) AddBytesSent(arg0 protocol.ByteCount) {
    55  	m.ctrl.T.Helper()
    56  	m.ctrl.Call(m, "AddBytesSent", arg0)
    57  }
    58  
    59  // AddBytesSent indicates an expected call of AddBytesSent.
    60  func (mr *MockConnectionFlowControllerMockRecorder) AddBytesSent(arg0 any) *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBytesSent", reflect.TypeOf((*MockConnectionFlowController)(nil).AddBytesSent), arg0)
    63  }
    64  
    65  // GetWindowUpdate mocks base method.
    66  func (m *MockConnectionFlowController) GetWindowUpdate() protocol.ByteCount {
    67  	m.ctrl.T.Helper()
    68  	ret := m.ctrl.Call(m, "GetWindowUpdate")
    69  	ret0, _ := ret[0].(protocol.ByteCount)
    70  	return ret0
    71  }
    72  
    73  // GetWindowUpdate indicates an expected call of GetWindowUpdate.
    74  func (mr *MockConnectionFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call {
    75  	mr.mock.ctrl.T.Helper()
    76  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWindowUpdate", reflect.TypeOf((*MockConnectionFlowController)(nil).GetWindowUpdate))
    77  }
    78  
    79  // IsNewlyBlocked mocks base method.
    80  func (m *MockConnectionFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) {
    81  	m.ctrl.T.Helper()
    82  	ret := m.ctrl.Call(m, "IsNewlyBlocked")
    83  	ret0, _ := ret[0].(bool)
    84  	ret1, _ := ret[1].(protocol.ByteCount)
    85  	return ret0, ret1
    86  }
    87  
    88  // IsNewlyBlocked indicates an expected call of IsNewlyBlocked.
    89  func (mr *MockConnectionFlowControllerMockRecorder) IsNewlyBlocked() *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNewlyBlocked", reflect.TypeOf((*MockConnectionFlowController)(nil).IsNewlyBlocked))
    92  }
    93  
    94  // Reset mocks base method.
    95  func (m *MockConnectionFlowController) Reset() error {
    96  	m.ctrl.T.Helper()
    97  	ret := m.ctrl.Call(m, "Reset")
    98  	ret0, _ := ret[0].(error)
    99  	return ret0
   100  }
   101  
   102  // Reset indicates an expected call of Reset.
   103  func (mr *MockConnectionFlowControllerMockRecorder) Reset() *gomock.Call {
   104  	mr.mock.ctrl.T.Helper()
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockConnectionFlowController)(nil).Reset))
   106  }
   107  
   108  // SendWindowSize mocks base method.
   109  func (m *MockConnectionFlowController) SendWindowSize() protocol.ByteCount {
   110  	m.ctrl.T.Helper()
   111  	ret := m.ctrl.Call(m, "SendWindowSize")
   112  	ret0, _ := ret[0].(protocol.ByteCount)
   113  	return ret0
   114  }
   115  
   116  // SendWindowSize indicates an expected call of SendWindowSize.
   117  func (mr *MockConnectionFlowControllerMockRecorder) SendWindowSize() *gomock.Call {
   118  	mr.mock.ctrl.T.Helper()
   119  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendWindowSize", reflect.TypeOf((*MockConnectionFlowController)(nil).SendWindowSize))
   120  }
   121  
   122  // UpdateSendWindow mocks base method.
   123  func (m *MockConnectionFlowController) UpdateSendWindow(arg0 protocol.ByteCount) {
   124  	m.ctrl.T.Helper()
   125  	m.ctrl.Call(m, "UpdateSendWindow", arg0)
   126  }
   127  
   128  // UpdateSendWindow indicates an expected call of UpdateSendWindow.
   129  func (mr *MockConnectionFlowControllerMockRecorder) UpdateSendWindow(arg0 any) *gomock.Call {
   130  	mr.mock.ctrl.T.Helper()
   131  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSendWindow", reflect.TypeOf((*MockConnectionFlowController)(nil).UpdateSendWindow), arg0)
   132  }