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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MerlinKodo/quic-go/http3 (interfaces: RoundTripCloser)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -build_flags=-tags=gomock -package http3 -destination mock_roundtripcloser_test.go github.com/MerlinKodo/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() *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockRoundTripCloser)(nil).Close))
    53  }
    54  
    55  // HandshakeComplete mocks base method.
    56  func (m *MockRoundTripCloser) HandshakeComplete() bool {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "HandshakeComplete")
    59  	ret0, _ := ret[0].(bool)
    60  	return ret0
    61  }
    62  
    63  // HandshakeComplete indicates an expected call of HandshakeComplete.
    64  func (mr *MockRoundTripCloserMockRecorder) HandshakeComplete() *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandshakeComplete", reflect.TypeOf((*MockRoundTripCloser)(nil).HandshakeComplete))
    67  }
    68  
    69  // RoundTripOpt mocks base method.
    70  func (m *MockRoundTripCloser) RoundTripOpt(arg0 *http.Request, arg1 RoundTripOpt) (*http.Response, error) {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "RoundTripOpt", arg0, arg1)
    73  	ret0, _ := ret[0].(*http.Response)
    74  	ret1, _ := ret[1].(error)
    75  	return ret0, ret1
    76  }
    77  
    78  // RoundTripOpt indicates an expected call of RoundTripOpt.
    79  func (mr *MockRoundTripCloserMockRecorder) RoundTripOpt(arg0, arg1 any) *gomock.Call {
    80  	mr.mock.ctrl.T.Helper()
    81  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoundTripOpt", reflect.TypeOf((*MockRoundTripCloser)(nil).RoundTripOpt), arg0, arg1)
    82  }