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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go (interfaces: StreamI)
     3  
     4  // Package quic is a generated GoMock package.
     5  package quic
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  	time "time"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  	ackhandler "github.com/tumi8/quic-go/noninternal/ackhandler"
    14  	protocol "github.com/tumi8/quic-go/noninternal/protocol"
    15  	qerr "github.com/tumi8/quic-go/noninternal/qerr"
    16  	wire "github.com/tumi8/quic-go/noninternal/wire"
    17  )
    18  
    19  // MockStreamI is a mock of StreamI interface.
    20  type MockStreamI struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockStreamIMockRecorder
    23  }
    24  
    25  // MockStreamIMockRecorder is the mock recorder for MockStreamI.
    26  type MockStreamIMockRecorder struct {
    27  	mock *MockStreamI
    28  }
    29  
    30  // NewMockStreamI creates a new mock instance.
    31  func NewMockStreamI(ctrl *gomock.Controller) *MockStreamI {
    32  	mock := &MockStreamI{ctrl: ctrl}
    33  	mock.recorder = &MockStreamIMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockStreamI) EXPECT() *MockStreamIMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // CancelRead mocks base method.
    43  func (m *MockStreamI) CancelRead(arg0 qerr.StreamErrorCode) {
    44  	m.ctrl.T.Helper()
    45  	m.ctrl.Call(m, "CancelRead", arg0)
    46  }
    47  
    48  // CancelRead indicates an expected call of CancelRead.
    49  func (mr *MockStreamIMockRecorder) CancelRead(arg0 interface{}) *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRead", reflect.TypeOf((*MockStreamI)(nil).CancelRead), arg0)
    52  }
    53  
    54  // CancelWrite mocks base method.
    55  func (m *MockStreamI) CancelWrite(arg0 qerr.StreamErrorCode) {
    56  	m.ctrl.T.Helper()
    57  	m.ctrl.Call(m, "CancelWrite", arg0)
    58  }
    59  
    60  // CancelWrite indicates an expected call of CancelWrite.
    61  func (mr *MockStreamIMockRecorder) CancelWrite(arg0 interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelWrite", reflect.TypeOf((*MockStreamI)(nil).CancelWrite), arg0)
    64  }
    65  
    66  // Close mocks base method.
    67  func (m *MockStreamI) Close() error {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "Close")
    70  	ret0, _ := ret[0].(error)
    71  	return ret0
    72  }
    73  
    74  // Close indicates an expected call of Close.
    75  func (mr *MockStreamIMockRecorder) Close() *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockStreamI)(nil).Close))
    78  }
    79  
    80  // Context mocks base method.
    81  func (m *MockStreamI) Context() context.Context {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "Context")
    84  	ret0, _ := ret[0].(context.Context)
    85  	return ret0
    86  }
    87  
    88  // Context indicates an expected call of Context.
    89  func (mr *MockStreamIMockRecorder) Context() *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockStreamI)(nil).Context))
    92  }
    93  
    94  // Read mocks base method.
    95  func (m *MockStreamI) Read(arg0 []byte) (int, error) {
    96  	m.ctrl.T.Helper()
    97  	ret := m.ctrl.Call(m, "Read", arg0)
    98  	ret0, _ := ret[0].(int)
    99  	ret1, _ := ret[1].(error)
   100  	return ret0, ret1
   101  }
   102  
   103  // Read indicates an expected call of Read.
   104  func (mr *MockStreamIMockRecorder) Read(arg0 interface{}) *gomock.Call {
   105  	mr.mock.ctrl.T.Helper()
   106  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockStreamI)(nil).Read), arg0)
   107  }
   108  
   109  // SetDeadline mocks base method.
   110  func (m *MockStreamI) SetDeadline(arg0 time.Time) error {
   111  	m.ctrl.T.Helper()
   112  	ret := m.ctrl.Call(m, "SetDeadline", arg0)
   113  	ret0, _ := ret[0].(error)
   114  	return ret0
   115  }
   116  
   117  // SetDeadline indicates an expected call of SetDeadline.
   118  func (mr *MockStreamIMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call {
   119  	mr.mock.ctrl.T.Helper()
   120  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDeadline", reflect.TypeOf((*MockStreamI)(nil).SetDeadline), arg0)
   121  }
   122  
   123  // SetReadDeadline mocks base method.
   124  func (m *MockStreamI) SetReadDeadline(arg0 time.Time) error {
   125  	m.ctrl.T.Helper()
   126  	ret := m.ctrl.Call(m, "SetReadDeadline", arg0)
   127  	ret0, _ := ret[0].(error)
   128  	return ret0
   129  }
   130  
   131  // SetReadDeadline indicates an expected call of SetReadDeadline.
   132  func (mr *MockStreamIMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call {
   133  	mr.mock.ctrl.T.Helper()
   134  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadDeadline", reflect.TypeOf((*MockStreamI)(nil).SetReadDeadline), arg0)
   135  }
   136  
   137  // SetWriteDeadline mocks base method.
   138  func (m *MockStreamI) SetWriteDeadline(arg0 time.Time) error {
   139  	m.ctrl.T.Helper()
   140  	ret := m.ctrl.Call(m, "SetWriteDeadline", arg0)
   141  	ret0, _ := ret[0].(error)
   142  	return ret0
   143  }
   144  
   145  // SetWriteDeadline indicates an expected call of SetWriteDeadline.
   146  func (mr *MockStreamIMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call {
   147  	mr.mock.ctrl.T.Helper()
   148  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteDeadline", reflect.TypeOf((*MockStreamI)(nil).SetWriteDeadline), arg0)
   149  }
   150  
   151  // StreamID mocks base method.
   152  func (m *MockStreamI) StreamID() protocol.StreamID {
   153  	m.ctrl.T.Helper()
   154  	ret := m.ctrl.Call(m, "StreamID")
   155  	ret0, _ := ret[0].(protocol.StreamID)
   156  	return ret0
   157  }
   158  
   159  // StreamID indicates an expected call of StreamID.
   160  func (mr *MockStreamIMockRecorder) StreamID() *gomock.Call {
   161  	mr.mock.ctrl.T.Helper()
   162  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StreamID", reflect.TypeOf((*MockStreamI)(nil).StreamID))
   163  }
   164  
   165  // Write mocks base method.
   166  func (m *MockStreamI) Write(arg0 []byte) (int, error) {
   167  	m.ctrl.T.Helper()
   168  	ret := m.ctrl.Call(m, "Write", arg0)
   169  	ret0, _ := ret[0].(int)
   170  	ret1, _ := ret[1].(error)
   171  	return ret0, ret1
   172  }
   173  
   174  // Write indicates an expected call of Write.
   175  func (mr *MockStreamIMockRecorder) Write(arg0 interface{}) *gomock.Call {
   176  	mr.mock.ctrl.T.Helper()
   177  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockStreamI)(nil).Write), arg0)
   178  }
   179  
   180  // closeForShutdown mocks base method.
   181  func (m *MockStreamI) closeForShutdown(arg0 error) {
   182  	m.ctrl.T.Helper()
   183  	m.ctrl.Call(m, "closeForShutdown", arg0)
   184  }
   185  
   186  // closeForShutdown indicates an expected call of closeForShutdown.
   187  func (mr *MockStreamIMockRecorder) closeForShutdown(arg0 interface{}) *gomock.Call {
   188  	mr.mock.ctrl.T.Helper()
   189  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeForShutdown", reflect.TypeOf((*MockStreamI)(nil).closeForShutdown), arg0)
   190  }
   191  
   192  // getWindowUpdate mocks base method.
   193  func (m *MockStreamI) getWindowUpdate() protocol.ByteCount {
   194  	m.ctrl.T.Helper()
   195  	ret := m.ctrl.Call(m, "getWindowUpdate")
   196  	ret0, _ := ret[0].(protocol.ByteCount)
   197  	return ret0
   198  }
   199  
   200  // getWindowUpdate indicates an expected call of getWindowUpdate.
   201  func (mr *MockStreamIMockRecorder) getWindowUpdate() *gomock.Call {
   202  	mr.mock.ctrl.T.Helper()
   203  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getWindowUpdate", reflect.TypeOf((*MockStreamI)(nil).getWindowUpdate))
   204  }
   205  
   206  // handleResetStreamFrame mocks base method.
   207  func (m *MockStreamI) handleResetStreamFrame(arg0 *wire.ResetStreamFrame) error {
   208  	m.ctrl.T.Helper()
   209  	ret := m.ctrl.Call(m, "handleResetStreamFrame", arg0)
   210  	ret0, _ := ret[0].(error)
   211  	return ret0
   212  }
   213  
   214  // handleResetStreamFrame indicates an expected call of handleResetStreamFrame.
   215  func (mr *MockStreamIMockRecorder) handleResetStreamFrame(arg0 interface{}) *gomock.Call {
   216  	mr.mock.ctrl.T.Helper()
   217  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleResetStreamFrame", reflect.TypeOf((*MockStreamI)(nil).handleResetStreamFrame), arg0)
   218  }
   219  
   220  // handleStopSendingFrame mocks base method.
   221  func (m *MockStreamI) handleStopSendingFrame(arg0 *wire.StopSendingFrame) {
   222  	m.ctrl.T.Helper()
   223  	m.ctrl.Call(m, "handleStopSendingFrame", arg0)
   224  }
   225  
   226  // handleStopSendingFrame indicates an expected call of handleStopSendingFrame.
   227  func (mr *MockStreamIMockRecorder) handleStopSendingFrame(arg0 interface{}) *gomock.Call {
   228  	mr.mock.ctrl.T.Helper()
   229  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStopSendingFrame", reflect.TypeOf((*MockStreamI)(nil).handleStopSendingFrame), arg0)
   230  }
   231  
   232  // handleStreamFrame mocks base method.
   233  func (m *MockStreamI) handleStreamFrame(arg0 *wire.StreamFrame) error {
   234  	m.ctrl.T.Helper()
   235  	ret := m.ctrl.Call(m, "handleStreamFrame", arg0)
   236  	ret0, _ := ret[0].(error)
   237  	return ret0
   238  }
   239  
   240  // handleStreamFrame indicates an expected call of handleStreamFrame.
   241  func (mr *MockStreamIMockRecorder) handleStreamFrame(arg0 interface{}) *gomock.Call {
   242  	mr.mock.ctrl.T.Helper()
   243  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStreamFrame", reflect.TypeOf((*MockStreamI)(nil).handleStreamFrame), arg0)
   244  }
   245  
   246  // hasData mocks base method.
   247  func (m *MockStreamI) hasData() bool {
   248  	m.ctrl.T.Helper()
   249  	ret := m.ctrl.Call(m, "hasData")
   250  	ret0, _ := ret[0].(bool)
   251  	return ret0
   252  }
   253  
   254  // hasData indicates an expected call of hasData.
   255  func (mr *MockStreamIMockRecorder) hasData() *gomock.Call {
   256  	mr.mock.ctrl.T.Helper()
   257  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "hasData", reflect.TypeOf((*MockStreamI)(nil).hasData))
   258  }
   259  
   260  // popStreamFrame mocks base method.
   261  func (m *MockStreamI) popStreamFrame(arg0 protocol.ByteCount, arg1 protocol.VersionNumber) (ackhandler.StreamFrame, bool, bool) {
   262  	m.ctrl.T.Helper()
   263  	ret := m.ctrl.Call(m, "popStreamFrame", arg0, arg1)
   264  	ret0, _ := ret[0].(ackhandler.StreamFrame)
   265  	ret1, _ := ret[1].(bool)
   266  	ret2, _ := ret[2].(bool)
   267  	return ret0, ret1, ret2
   268  }
   269  
   270  // popStreamFrame indicates an expected call of popStreamFrame.
   271  func (mr *MockStreamIMockRecorder) popStreamFrame(arg0, arg1 interface{}) *gomock.Call {
   272  	mr.mock.ctrl.T.Helper()
   273  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "popStreamFrame", reflect.TypeOf((*MockStreamI)(nil).popStreamFrame), arg0, arg1)
   274  }
   275  
   276  // updateSendWindow mocks base method.
   277  func (m *MockStreamI) updateSendWindow(arg0 protocol.ByteCount) {
   278  	m.ctrl.T.Helper()
   279  	m.ctrl.Call(m, "updateSendWindow", arg0)
   280  }
   281  
   282  // updateSendWindow indicates an expected call of updateSendWindow.
   283  func (mr *MockStreamIMockRecorder) updateSendWindow(arg0 interface{}) *gomock.Call {
   284  	mr.mock.ctrl.T.Helper()
   285  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "updateSendWindow", reflect.TypeOf((*MockStreamI)(nil).updateSendWindow), arg0)
   286  }