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

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