github.com/tumi8/quic-go@v0.37.4-tum/mock_receive_stream_internal_test.go (about)

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