github.com/quic-go/quic-go@v0.44.0/mock_stream_sender_test.go (about)

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