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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MerlinKodo/quic-go (interfaces: SendStreamI)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -build_flags=-tags=gomock -package quic -self_package github.com/MerlinKodo/quic-go -destination mock_send_stream_internal_test.go github.com/MerlinKodo/quic-go SendStreamI
     7  //
     8  // Package quic is a generated GoMock package.
     9  package quic
    10  
    11  import (
    12  	context "context"
    13  	reflect "reflect"
    14  	time "time"
    15  
    16  	ackhandler "github.com/MerlinKodo/quic-go/internal/ackhandler"
    17  	protocol "github.com/MerlinKodo/quic-go/internal/protocol"
    18  	qerr "github.com/MerlinKodo/quic-go/internal/qerr"
    19  	wire "github.com/MerlinKodo/quic-go/internal/wire"
    20  	gomock "go.uber.org/mock/gomock"
    21  )
    22  
    23  // MockSendStreamI is a mock of SendStreamI interface.
    24  type MockSendStreamI struct {
    25  	ctrl     *gomock.Controller
    26  	recorder *MockSendStreamIMockRecorder
    27  }
    28  
    29  // MockSendStreamIMockRecorder is the mock recorder for MockSendStreamI.
    30  type MockSendStreamIMockRecorder struct {
    31  	mock *MockSendStreamI
    32  }
    33  
    34  // NewMockSendStreamI creates a new mock instance.
    35  func NewMockSendStreamI(ctrl *gomock.Controller) *MockSendStreamI {
    36  	mock := &MockSendStreamI{ctrl: ctrl}
    37  	mock.recorder = &MockSendStreamIMockRecorder{mock}
    38  	return mock
    39  }
    40  
    41  // EXPECT returns an object that allows the caller to indicate expected use.
    42  func (m *MockSendStreamI) EXPECT() *MockSendStreamIMockRecorder {
    43  	return m.recorder
    44  }
    45  
    46  // CancelWrite mocks base method.
    47  func (m *MockSendStreamI) CancelWrite(arg0 qerr.StreamErrorCode) {
    48  	m.ctrl.T.Helper()
    49  	m.ctrl.Call(m, "CancelWrite", arg0)
    50  }
    51  
    52  // CancelWrite indicates an expected call of CancelWrite.
    53  func (mr *MockSendStreamIMockRecorder) CancelWrite(arg0 any) *gomock.Call {
    54  	mr.mock.ctrl.T.Helper()
    55  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelWrite", reflect.TypeOf((*MockSendStreamI)(nil).CancelWrite), arg0)
    56  }
    57  
    58  // Close mocks base method.
    59  func (m *MockSendStreamI) Close() error {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "Close")
    62  	ret0, _ := ret[0].(error)
    63  	return ret0
    64  }
    65  
    66  // Close indicates an expected call of Close.
    67  func (mr *MockSendStreamIMockRecorder) Close() *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSendStreamI)(nil).Close))
    70  }
    71  
    72  // Context mocks base method.
    73  func (m *MockSendStreamI) Context() context.Context {
    74  	m.ctrl.T.Helper()
    75  	ret := m.ctrl.Call(m, "Context")
    76  	ret0, _ := ret[0].(context.Context)
    77  	return ret0
    78  }
    79  
    80  // Context indicates an expected call of Context.
    81  func (mr *MockSendStreamIMockRecorder) Context() *gomock.Call {
    82  	mr.mock.ctrl.T.Helper()
    83  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockSendStreamI)(nil).Context))
    84  }
    85  
    86  // SetWriteDeadline mocks base method.
    87  func (m *MockSendStreamI) SetWriteDeadline(arg0 time.Time) error {
    88  	m.ctrl.T.Helper()
    89  	ret := m.ctrl.Call(m, "SetWriteDeadline", arg0)
    90  	ret0, _ := ret[0].(error)
    91  	return ret0
    92  }
    93  
    94  // SetWriteDeadline indicates an expected call of SetWriteDeadline.
    95  func (mr *MockSendStreamIMockRecorder) SetWriteDeadline(arg0 any) *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteDeadline", reflect.TypeOf((*MockSendStreamI)(nil).SetWriteDeadline), arg0)
    98  }
    99  
   100  // StreamID mocks base method.
   101  func (m *MockSendStreamI) StreamID() protocol.StreamID {
   102  	m.ctrl.T.Helper()
   103  	ret := m.ctrl.Call(m, "StreamID")
   104  	ret0, _ := ret[0].(protocol.StreamID)
   105  	return ret0
   106  }
   107  
   108  // StreamID indicates an expected call of StreamID.
   109  func (mr *MockSendStreamIMockRecorder) StreamID() *gomock.Call {
   110  	mr.mock.ctrl.T.Helper()
   111  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StreamID", reflect.TypeOf((*MockSendStreamI)(nil).StreamID))
   112  }
   113  
   114  // Write mocks base method.
   115  func (m *MockSendStreamI) Write(arg0 []byte) (int, error) {
   116  	m.ctrl.T.Helper()
   117  	ret := m.ctrl.Call(m, "Write", arg0)
   118  	ret0, _ := ret[0].(int)
   119  	ret1, _ := ret[1].(error)
   120  	return ret0, ret1
   121  }
   122  
   123  // Write indicates an expected call of Write.
   124  func (mr *MockSendStreamIMockRecorder) Write(arg0 any) *gomock.Call {
   125  	mr.mock.ctrl.T.Helper()
   126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockSendStreamI)(nil).Write), arg0)
   127  }
   128  
   129  // closeForShutdown mocks base method.
   130  func (m *MockSendStreamI) closeForShutdown(arg0 error) {
   131  	m.ctrl.T.Helper()
   132  	m.ctrl.Call(m, "closeForShutdown", arg0)
   133  }
   134  
   135  // closeForShutdown indicates an expected call of closeForShutdown.
   136  func (mr *MockSendStreamIMockRecorder) closeForShutdown(arg0 any) *gomock.Call {
   137  	mr.mock.ctrl.T.Helper()
   138  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeForShutdown", reflect.TypeOf((*MockSendStreamI)(nil).closeForShutdown), arg0)
   139  }
   140  
   141  // handleStopSendingFrame mocks base method.
   142  func (m *MockSendStreamI) handleStopSendingFrame(arg0 *wire.StopSendingFrame) {
   143  	m.ctrl.T.Helper()
   144  	m.ctrl.Call(m, "handleStopSendingFrame", arg0)
   145  }
   146  
   147  // handleStopSendingFrame indicates an expected call of handleStopSendingFrame.
   148  func (mr *MockSendStreamIMockRecorder) handleStopSendingFrame(arg0 any) *gomock.Call {
   149  	mr.mock.ctrl.T.Helper()
   150  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handleStopSendingFrame", reflect.TypeOf((*MockSendStreamI)(nil).handleStopSendingFrame), arg0)
   151  }
   152  
   153  // hasData mocks base method.
   154  func (m *MockSendStreamI) hasData() bool {
   155  	m.ctrl.T.Helper()
   156  	ret := m.ctrl.Call(m, "hasData")
   157  	ret0, _ := ret[0].(bool)
   158  	return ret0
   159  }
   160  
   161  // hasData indicates an expected call of hasData.
   162  func (mr *MockSendStreamIMockRecorder) hasData() *gomock.Call {
   163  	mr.mock.ctrl.T.Helper()
   164  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "hasData", reflect.TypeOf((*MockSendStreamI)(nil).hasData))
   165  }
   166  
   167  // popStreamFrame mocks base method.
   168  func (m *MockSendStreamI) popStreamFrame(arg0 protocol.ByteCount, arg1 protocol.VersionNumber) (ackhandler.StreamFrame, bool, bool) {
   169  	m.ctrl.T.Helper()
   170  	ret := m.ctrl.Call(m, "popStreamFrame", arg0, arg1)
   171  	ret0, _ := ret[0].(ackhandler.StreamFrame)
   172  	ret1, _ := ret[1].(bool)
   173  	ret2, _ := ret[2].(bool)
   174  	return ret0, ret1, ret2
   175  }
   176  
   177  // popStreamFrame indicates an expected call of popStreamFrame.
   178  func (mr *MockSendStreamIMockRecorder) popStreamFrame(arg0, arg1 any) *gomock.Call {
   179  	mr.mock.ctrl.T.Helper()
   180  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "popStreamFrame", reflect.TypeOf((*MockSendStreamI)(nil).popStreamFrame), arg0, arg1)
   181  }
   182  
   183  // updateSendWindow mocks base method.
   184  func (m *MockSendStreamI) updateSendWindow(arg0 protocol.ByteCount) {
   185  	m.ctrl.T.Helper()
   186  	m.ctrl.Call(m, "updateSendWindow", arg0)
   187  }
   188  
   189  // updateSendWindow indicates an expected call of updateSendWindow.
   190  func (mr *MockSendStreamIMockRecorder) updateSendWindow(arg0 any) *gomock.Call {
   191  	mr.mock.ctrl.T.Helper()
   192  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "updateSendWindow", reflect.TypeOf((*MockSendStreamI)(nil).updateSendWindow), arg0)
   193  }