github.com/daeuniverse/quic-go@v0.0.0-20240413031024-943f218e0810/http3/mock_roundtripcloser_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/daeuniverse/quic-go/http3 (interfaces: RoundTripCloser)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package http3 -destination mock_roundtripcloser_test.go github.com/daeuniverse/quic-go/http3 RoundTripCloser
     7  //
     8  
     9  // Package http3 is a generated GoMock package.
    10  package http3
    11  
    12  import (
    13  	http "net/http"
    14  	reflect "reflect"
    15  
    16  	gomock "go.uber.org/mock/gomock"
    17  )
    18  
    19  // MockRoundTripCloser is a mock of RoundTripCloser interface.
    20  type MockRoundTripCloser struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockRoundTripCloserMockRecorder
    23  }
    24  
    25  // MockRoundTripCloserMockRecorder is the mock recorder for MockRoundTripCloser.
    26  type MockRoundTripCloserMockRecorder struct {
    27  	mock *MockRoundTripCloser
    28  }
    29  
    30  // NewMockRoundTripCloser creates a new mock instance.
    31  func NewMockRoundTripCloser(ctrl *gomock.Controller) *MockRoundTripCloser {
    32  	mock := &MockRoundTripCloser{ctrl: ctrl}
    33  	mock.recorder = &MockRoundTripCloserMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockRoundTripCloser) EXPECT() *MockRoundTripCloserMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // Close mocks base method.
    43  func (m *MockRoundTripCloser) 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 *MockRoundTripCloserMockRecorder) Close() *MockRoundTripCloserCloseCall {
    52  	mr.mock.ctrl.T.Helper()
    53  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockRoundTripCloser)(nil).Close))
    54  	return &MockRoundTripCloserCloseCall{Call: call}
    55  }
    56  
    57  // MockRoundTripCloserCloseCall wrap *gomock.Call
    58  type MockRoundTripCloserCloseCall struct {
    59  	*gomock.Call
    60  }
    61  
    62  // Return rewrite *gomock.Call.Return
    63  func (c *MockRoundTripCloserCloseCall) Return(arg0 error) *MockRoundTripCloserCloseCall {
    64  	c.Call = c.Call.Return(arg0)
    65  	return c
    66  }
    67  
    68  // Do rewrite *gomock.Call.Do
    69  func (c *MockRoundTripCloserCloseCall) Do(f func() error) *MockRoundTripCloserCloseCall {
    70  	c.Call = c.Call.Do(f)
    71  	return c
    72  }
    73  
    74  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    75  func (c *MockRoundTripCloserCloseCall) DoAndReturn(f func() error) *MockRoundTripCloserCloseCall {
    76  	c.Call = c.Call.DoAndReturn(f)
    77  	return c
    78  }
    79  
    80  // HandshakeComplete mocks base method.
    81  func (m *MockRoundTripCloser) HandshakeComplete() bool {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "HandshakeComplete")
    84  	ret0, _ := ret[0].(bool)
    85  	return ret0
    86  }
    87  
    88  // HandshakeComplete indicates an expected call of HandshakeComplete.
    89  func (mr *MockRoundTripCloserMockRecorder) HandshakeComplete() *MockRoundTripCloserHandshakeCompleteCall {
    90  	mr.mock.ctrl.T.Helper()
    91  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandshakeComplete", reflect.TypeOf((*MockRoundTripCloser)(nil).HandshakeComplete))
    92  	return &MockRoundTripCloserHandshakeCompleteCall{Call: call}
    93  }
    94  
    95  // MockRoundTripCloserHandshakeCompleteCall wrap *gomock.Call
    96  type MockRoundTripCloserHandshakeCompleteCall struct {
    97  	*gomock.Call
    98  }
    99  
   100  // Return rewrite *gomock.Call.Return
   101  func (c *MockRoundTripCloserHandshakeCompleteCall) Return(arg0 bool) *MockRoundTripCloserHandshakeCompleteCall {
   102  	c.Call = c.Call.Return(arg0)
   103  	return c
   104  }
   105  
   106  // Do rewrite *gomock.Call.Do
   107  func (c *MockRoundTripCloserHandshakeCompleteCall) Do(f func() bool) *MockRoundTripCloserHandshakeCompleteCall {
   108  	c.Call = c.Call.Do(f)
   109  	return c
   110  }
   111  
   112  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   113  func (c *MockRoundTripCloserHandshakeCompleteCall) DoAndReturn(f func() bool) *MockRoundTripCloserHandshakeCompleteCall {
   114  	c.Call = c.Call.DoAndReturn(f)
   115  	return c
   116  }
   117  
   118  // RoundTripOpt mocks base method.
   119  func (m *MockRoundTripCloser) RoundTripOpt(arg0 *http.Request, arg1 RoundTripOpt) (*http.Response, error) {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "RoundTripOpt", arg0, arg1)
   122  	ret0, _ := ret[0].(*http.Response)
   123  	ret1, _ := ret[1].(error)
   124  	return ret0, ret1
   125  }
   126  
   127  // RoundTripOpt indicates an expected call of RoundTripOpt.
   128  func (mr *MockRoundTripCloserMockRecorder) RoundTripOpt(arg0, arg1 any) *MockRoundTripCloserRoundTripOptCall {
   129  	mr.mock.ctrl.T.Helper()
   130  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoundTripOpt", reflect.TypeOf((*MockRoundTripCloser)(nil).RoundTripOpt), arg0, arg1)
   131  	return &MockRoundTripCloserRoundTripOptCall{Call: call}
   132  }
   133  
   134  // MockRoundTripCloserRoundTripOptCall wrap *gomock.Call
   135  type MockRoundTripCloserRoundTripOptCall struct {
   136  	*gomock.Call
   137  }
   138  
   139  // Return rewrite *gomock.Call.Return
   140  func (c *MockRoundTripCloserRoundTripOptCall) Return(arg0 *http.Response, arg1 error) *MockRoundTripCloserRoundTripOptCall {
   141  	c.Call = c.Call.Return(arg0, arg1)
   142  	return c
   143  }
   144  
   145  // Do rewrite *gomock.Call.Do
   146  func (c *MockRoundTripCloserRoundTripOptCall) Do(f func(*http.Request, RoundTripOpt) (*http.Response, error)) *MockRoundTripCloserRoundTripOptCall {
   147  	c.Call = c.Call.Do(f)
   148  	return c
   149  }
   150  
   151  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   152  func (c *MockRoundTripCloserRoundTripOptCall) DoAndReturn(f func(*http.Request, RoundTripOpt) (*http.Response, error)) *MockRoundTripCloserRoundTripOptCall {
   153  	c.Call = c.Call.DoAndReturn(f)
   154  	return c
   155  }