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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go (interfaces: Sender)
     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  )
    13  
    14  // MockSender is a mock of Sender interface.
    15  type MockSender struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockSenderMockRecorder
    18  }
    19  
    20  // MockSenderMockRecorder is the mock recorder for MockSender.
    21  type MockSenderMockRecorder struct {
    22  	mock *MockSender
    23  }
    24  
    25  // NewMockSender creates a new mock instance.
    26  func NewMockSender(ctrl *gomock.Controller) *MockSender {
    27  	mock := &MockSender{ctrl: ctrl}
    28  	mock.recorder = &MockSenderMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockSender) EXPECT() *MockSenderMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Available mocks base method.
    38  func (m *MockSender) Available() <-chan struct{} {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "Available")
    41  	ret0, _ := ret[0].(<-chan struct{})
    42  	return ret0
    43  }
    44  
    45  // Available indicates an expected call of Available.
    46  func (mr *MockSenderMockRecorder) Available() *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Available", reflect.TypeOf((*MockSender)(nil).Available))
    49  }
    50  
    51  // Close mocks base method.
    52  func (m *MockSender) Close() {
    53  	m.ctrl.T.Helper()
    54  	m.ctrl.Call(m, "Close")
    55  }
    56  
    57  // Close indicates an expected call of Close.
    58  func (mr *MockSenderMockRecorder) Close() *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSender)(nil).Close))
    61  }
    62  
    63  // Run mocks base method.
    64  func (m *MockSender) Run() error {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "Run")
    67  	ret0, _ := ret[0].(error)
    68  	return ret0
    69  }
    70  
    71  // Run indicates an expected call of Run.
    72  func (mr *MockSenderMockRecorder) Run() *gomock.Call {
    73  	mr.mock.ctrl.T.Helper()
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockSender)(nil).Run))
    75  }
    76  
    77  // Send mocks base method.
    78  func (m *MockSender) Send(arg0 *packetBuffer, arg1 protocol.ByteCount) {
    79  	m.ctrl.T.Helper()
    80  	m.ctrl.Call(m, "Send", arg0, arg1)
    81  }
    82  
    83  // Send indicates an expected call of Send.
    84  func (mr *MockSenderMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call {
    85  	mr.mock.ctrl.T.Helper()
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockSender)(nil).Send), arg0, arg1)
    87  }
    88  
    89  // WouldBlock mocks base method.
    90  func (m *MockSender) WouldBlock() bool {
    91  	m.ctrl.T.Helper()
    92  	ret := m.ctrl.Call(m, "WouldBlock")
    93  	ret0, _ := ret[0].(bool)
    94  	return ret0
    95  }
    96  
    97  // WouldBlock indicates an expected call of WouldBlock.
    98  func (mr *MockSenderMockRecorder) WouldBlock() *gomock.Call {
    99  	mr.mock.ctrl.T.Helper()
   100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WouldBlock", reflect.TypeOf((*MockSender)(nil).WouldBlock))
   101  }