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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go (interfaces: StreamSender)
     3  
     4  // Package quic is a generated GoMock package.
     5  package quic
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	protocol "github.com/tumi8/quic-go/noninternal/protocol"
    12  	wire "github.com/tumi8/quic-go/noninternal/wire"
    13  )
    14  
    15  // MockStreamSender is a mock of StreamSender interface.
    16  type MockStreamSender struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockStreamSenderMockRecorder
    19  }
    20  
    21  // MockStreamSenderMockRecorder is the mock recorder for MockStreamSender.
    22  type MockStreamSenderMockRecorder struct {
    23  	mock *MockStreamSender
    24  }
    25  
    26  // NewMockStreamSender creates a new mock instance.
    27  func NewMockStreamSender(ctrl *gomock.Controller) *MockStreamSender {
    28  	mock := &MockStreamSender{ctrl: ctrl}
    29  	mock.recorder = &MockStreamSenderMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockStreamSender) EXPECT() *MockStreamSenderMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // onHasStreamData mocks base method.
    39  func (m *MockStreamSender) onHasStreamData(arg0 protocol.StreamID) {
    40  	m.ctrl.T.Helper()
    41  	m.ctrl.Call(m, "onHasStreamData", arg0)
    42  }
    43  
    44  // onHasStreamData indicates an expected call of onHasStreamData.
    45  func (mr *MockStreamSenderMockRecorder) onHasStreamData(arg0 interface{}) *gomock.Call {
    46  	mr.mock.ctrl.T.Helper()
    47  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "onHasStreamData", reflect.TypeOf((*MockStreamSender)(nil).onHasStreamData), arg0)
    48  }
    49  
    50  // onStreamCompleted mocks base method.
    51  func (m *MockStreamSender) onStreamCompleted(arg0 protocol.StreamID) {
    52  	m.ctrl.T.Helper()
    53  	m.ctrl.Call(m, "onStreamCompleted", arg0)
    54  }
    55  
    56  // onStreamCompleted indicates an expected call of onStreamCompleted.
    57  func (mr *MockStreamSenderMockRecorder) onStreamCompleted(arg0 interface{}) *gomock.Call {
    58  	mr.mock.ctrl.T.Helper()
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "onStreamCompleted", reflect.TypeOf((*MockStreamSender)(nil).onStreamCompleted), arg0)
    60  }
    61  
    62  // queueControlFrame mocks base method.
    63  func (m *MockStreamSender) queueControlFrame(arg0 wire.Frame) {
    64  	m.ctrl.T.Helper()
    65  	m.ctrl.Call(m, "queueControlFrame", arg0)
    66  }
    67  
    68  // queueControlFrame indicates an expected call of queueControlFrame.
    69  func (mr *MockStreamSenderMockRecorder) queueControlFrame(arg0 interface{}) *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "queueControlFrame", reflect.TypeOf((*MockStreamSender)(nil).queueControlFrame), arg0)
    72  }