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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MerlinKodo/quic-go (interfaces: SendConn)
     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_conn_test.go github.com/MerlinKodo/quic-go SendConn
     7  //
     8  // Package quic is a generated GoMock package.
     9  package quic
    10  
    11  import (
    12  	net "net"
    13  	reflect "reflect"
    14  
    15  	protocol "github.com/MerlinKodo/quic-go/internal/protocol"
    16  	gomock "go.uber.org/mock/gomock"
    17  )
    18  
    19  // MockSendConn is a mock of SendConn interface.
    20  type MockSendConn struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockSendConnMockRecorder
    23  }
    24  
    25  // MockSendConnMockRecorder is the mock recorder for MockSendConn.
    26  type MockSendConnMockRecorder struct {
    27  	mock *MockSendConn
    28  }
    29  
    30  // NewMockSendConn creates a new mock instance.
    31  func NewMockSendConn(ctrl *gomock.Controller) *MockSendConn {
    32  	mock := &MockSendConn{ctrl: ctrl}
    33  	mock.recorder = &MockSendConnMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockSendConn) EXPECT() *MockSendConnMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // Close mocks base method.
    43  func (m *MockSendConn) Close() error {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "Close")
    46  	ret0, _ := ret[0].(error)
    47  	return ret0
    48  }
    49  
    50  // Close indicates an expected call of Close.
    51  func (mr *MockSendConnMockRecorder) Close() *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSendConn)(nil).Close))
    54  }
    55  
    56  // LocalAddr mocks base method.
    57  func (m *MockSendConn) LocalAddr() net.Addr {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "LocalAddr")
    60  	ret0, _ := ret[0].(net.Addr)
    61  	return ret0
    62  }
    63  
    64  // LocalAddr indicates an expected call of LocalAddr.
    65  func (mr *MockSendConnMockRecorder) LocalAddr() *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalAddr", reflect.TypeOf((*MockSendConn)(nil).LocalAddr))
    68  }
    69  
    70  // RemoteAddr mocks base method.
    71  func (m *MockSendConn) RemoteAddr() net.Addr {
    72  	m.ctrl.T.Helper()
    73  	ret := m.ctrl.Call(m, "RemoteAddr")
    74  	ret0, _ := ret[0].(net.Addr)
    75  	return ret0
    76  }
    77  
    78  // RemoteAddr indicates an expected call of RemoteAddr.
    79  func (mr *MockSendConnMockRecorder) RemoteAddr() *gomock.Call {
    80  	mr.mock.ctrl.T.Helper()
    81  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoteAddr", reflect.TypeOf((*MockSendConn)(nil).RemoteAddr))
    82  }
    83  
    84  // SetRemoteAddr mocks base method.
    85  func (m *MockSendConn) SetRemoteAddr(arg0 net.Addr) {
    86  	m.ctrl.T.Helper()
    87  	m.ctrl.Call(m, "SetRemoteAddr", arg0)
    88  }
    89  
    90  // SetRemoteAddr indicates an expected call of SetRemoteAddr.
    91  func (mr *MockSendConnMockRecorder) SetRemoteAddr(arg0 interface{}) *gomock.Call {
    92  	mr.mock.ctrl.T.Helper()
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRemoteAddr", reflect.TypeOf((*MockSendConn)(nil).SetRemoteAddr), arg0)
    94  }
    95  
    96  // Write mocks base method.
    97  func (m *MockSendConn) Write(arg0 []byte, arg1 uint16, arg2 protocol.ECN) error {
    98  	m.ctrl.T.Helper()
    99  	ret := m.ctrl.Call(m, "Write", arg0, arg1, arg2)
   100  	ret0, _ := ret[0].(error)
   101  	return ret0
   102  }
   103  
   104  // Write indicates an expected call of Write.
   105  func (mr *MockSendConnMockRecorder) Write(arg0, arg1, arg2 any) *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockSendConn)(nil).Write), arg0, arg1, arg2)
   108  }
   109  
   110  // capabilities mocks base method.
   111  func (m *MockSendConn) capabilities() connCapabilities {
   112  	m.ctrl.T.Helper()
   113  	ret := m.ctrl.Call(m, "capabilities")
   114  	ret0, _ := ret[0].(connCapabilities)
   115  	return ret0
   116  }
   117  
   118  // capabilities indicates an expected call of capabilities.
   119  func (mr *MockSendConnMockRecorder) capabilities() *gomock.Call {
   120  	mr.mock.ctrl.T.Helper()
   121  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "capabilities", reflect.TypeOf((*MockSendConn)(nil).capabilities))
   122  }