github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/mock_send_conn_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/danielpfeifer02/quic-go-prio-packs (interfaces: SendConn)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/danielpfeifer02/quic-go-prio-packs -destination mock_send_conn_test.go github.com/danielpfeifer02/quic-go-prio-packs 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/danielpfeifer02/quic-go-prio-packs/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() *SendConnCloseCall {
    52  	mr.mock.ctrl.T.Helper()
    53  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSendConn)(nil).Close))
    54  	return &SendConnCloseCall{Call: call}
    55  }
    56  
    57  // SendConnCloseCall wrap *gomock.Call
    58  type SendConnCloseCall struct {
    59  	*gomock.Call
    60  }
    61  
    62  // Return rewrite *gomock.Call.Return
    63  func (c *SendConnCloseCall) Return(arg0 error) *SendConnCloseCall {
    64  	c.Call = c.Call.Return(arg0)
    65  	return c
    66  }
    67  
    68  // Do rewrite *gomock.Call.Do
    69  func (c *SendConnCloseCall) Do(f func() error) *SendConnCloseCall {
    70  	c.Call = c.Call.Do(f)
    71  	return c
    72  }
    73  
    74  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    75  func (c *SendConnCloseCall) DoAndReturn(f func() error) *SendConnCloseCall {
    76  	c.Call = c.Call.DoAndReturn(f)
    77  	return c
    78  }
    79  
    80  // LocalAddr mocks base method.
    81  func (m *MockSendConn) LocalAddr() net.Addr {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "LocalAddr")
    84  	ret0, _ := ret[0].(net.Addr)
    85  	return ret0
    86  }
    87  
    88  // LocalAddr indicates an expected call of LocalAddr.
    89  func (mr *MockSendConnMockRecorder) LocalAddr() *SendConnLocalAddrCall {
    90  	mr.mock.ctrl.T.Helper()
    91  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalAddr", reflect.TypeOf((*MockSendConn)(nil).LocalAddr))
    92  	return &SendConnLocalAddrCall{Call: call}
    93  }
    94  
    95  // SendConnLocalAddrCall wrap *gomock.Call
    96  type SendConnLocalAddrCall struct {
    97  	*gomock.Call
    98  }
    99  
   100  // Return rewrite *gomock.Call.Return
   101  func (c *SendConnLocalAddrCall) Return(arg0 net.Addr) *SendConnLocalAddrCall {
   102  	c.Call = c.Call.Return(arg0)
   103  	return c
   104  }
   105  
   106  // Do rewrite *gomock.Call.Do
   107  func (c *SendConnLocalAddrCall) Do(f func() net.Addr) *SendConnLocalAddrCall {
   108  	c.Call = c.Call.Do(f)
   109  	return c
   110  }
   111  
   112  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   113  func (c *SendConnLocalAddrCall) DoAndReturn(f func() net.Addr) *SendConnLocalAddrCall {
   114  	c.Call = c.Call.DoAndReturn(f)
   115  	return c
   116  }
   117  
   118  // RemoteAddr mocks base method.
   119  func (m *MockSendConn) RemoteAddr() net.Addr {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "RemoteAddr")
   122  	ret0, _ := ret[0].(net.Addr)
   123  	return ret0
   124  }
   125  
   126  // RemoteAddr indicates an expected call of RemoteAddr.
   127  func (mr *MockSendConnMockRecorder) RemoteAddr() *SendConnRemoteAddrCall {
   128  	mr.mock.ctrl.T.Helper()
   129  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoteAddr", reflect.TypeOf((*MockSendConn)(nil).RemoteAddr))
   130  	return &SendConnRemoteAddrCall{Call: call}
   131  }
   132  
   133  // SendConnRemoteAddrCall wrap *gomock.Call
   134  type SendConnRemoteAddrCall struct {
   135  	*gomock.Call
   136  }
   137  
   138  // Return rewrite *gomock.Call.Return
   139  func (c *SendConnRemoteAddrCall) Return(arg0 net.Addr) *SendConnRemoteAddrCall {
   140  	c.Call = c.Call.Return(arg0)
   141  	return c
   142  }
   143  
   144  // Do rewrite *gomock.Call.Do
   145  func (c *SendConnRemoteAddrCall) Do(f func() net.Addr) *SendConnRemoteAddrCall {
   146  	c.Call = c.Call.Do(f)
   147  	return c
   148  }
   149  
   150  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   151  func (c *SendConnRemoteAddrCall) DoAndReturn(f func() net.Addr) *SendConnRemoteAddrCall {
   152  	c.Call = c.Call.DoAndReturn(f)
   153  	return c
   154  }
   155  
   156  // Write mocks base method.
   157  func (m *MockSendConn) Write(arg0 []byte, arg1 uint16, arg2 protocol.ECN) error {
   158  	m.ctrl.T.Helper()
   159  	ret := m.ctrl.Call(m, "Write", arg0, arg1, arg2)
   160  	ret0, _ := ret[0].(error)
   161  	return ret0
   162  }
   163  
   164  // Write indicates an expected call of Write.
   165  func (mr *MockSendConnMockRecorder) Write(arg0, arg1, arg2 any) *SendConnWriteCall {
   166  	mr.mock.ctrl.T.Helper()
   167  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockSendConn)(nil).Write), arg0, arg1, arg2)
   168  	return &SendConnWriteCall{Call: call}
   169  }
   170  
   171  // SendConnWriteCall wrap *gomock.Call
   172  type SendConnWriteCall struct {
   173  	*gomock.Call
   174  }
   175  
   176  // Return rewrite *gomock.Call.Return
   177  func (c *SendConnWriteCall) Return(arg0 error) *SendConnWriteCall {
   178  	c.Call = c.Call.Return(arg0)
   179  	return c
   180  }
   181  
   182  // Do rewrite *gomock.Call.Do
   183  func (c *SendConnWriteCall) Do(f func([]byte, uint16, protocol.ECN) error) *SendConnWriteCall {
   184  	c.Call = c.Call.Do(f)
   185  	return c
   186  }
   187  
   188  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   189  func (c *SendConnWriteCall) DoAndReturn(f func([]byte, uint16, protocol.ECN) error) *SendConnWriteCall {
   190  	c.Call = c.Call.DoAndReturn(f)
   191  	return c
   192  }
   193  
   194  // capabilities mocks base method.
   195  func (m *MockSendConn) capabilities() connCapabilities {
   196  	m.ctrl.T.Helper()
   197  	ret := m.ctrl.Call(m, "capabilities")
   198  	ret0, _ := ret[0].(connCapabilities)
   199  	return ret0
   200  }
   201  
   202  // capabilities indicates an expected call of capabilities.
   203  func (mr *MockSendConnMockRecorder) capabilities() *SendConncapabilitiesCall {
   204  	mr.mock.ctrl.T.Helper()
   205  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "capabilities", reflect.TypeOf((*MockSendConn)(nil).capabilities))
   206  	return &SendConncapabilitiesCall{Call: call}
   207  }
   208  
   209  // SendConncapabilitiesCall wrap *gomock.Call
   210  type SendConncapabilitiesCall struct {
   211  	*gomock.Call
   212  }
   213  
   214  // Return rewrite *gomock.Call.Return
   215  func (c *SendConncapabilitiesCall) Return(arg0 connCapabilities) *SendConncapabilitiesCall {
   216  	c.Call = c.Call.Return(arg0)
   217  	return c
   218  }
   219  
   220  // Do rewrite *gomock.Call.Do
   221  func (c *SendConncapabilitiesCall) Do(f func() connCapabilities) *SendConncapabilitiesCall {
   222  	c.Call = c.Call.Do(f)
   223  	return c
   224  }
   225  
   226  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   227  func (c *SendConncapabilitiesCall) DoAndReturn(f func() connCapabilities) *SendConncapabilitiesCall {
   228  	c.Call = c.Call.DoAndReturn(f)
   229  	return c
   230  }