github.com/MerlinKodo/quic-go@v0.39.2/mock_receive_stream_internal_test.go (about)

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