github.com/TugasAkhir-QUIC/quic-go@v0.0.2-0.20240215011318-d20e25a9054c/mock_stream_sender_test.go (about)

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