github.com/tumi8/quic-go@v0.37.4-tum/http3/mock_roundtripcloser_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go/http3 (interfaces: RoundTripCloser)
     3  
     4  // Package http3 is a generated GoMock package.
     5  package http3
     6  
     7  import (
     8  	http "net/http"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  )
    13  
    14  // MockRoundTripCloser is a mock of RoundTripCloser interface.
    15  type MockRoundTripCloser struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockRoundTripCloserMockRecorder
    18  }
    19  
    20  // MockRoundTripCloserMockRecorder is the mock recorder for MockRoundTripCloser.
    21  type MockRoundTripCloserMockRecorder struct {
    22  	mock *MockRoundTripCloser
    23  }
    24  
    25  // NewMockRoundTripCloser creates a new mock instance.
    26  func NewMockRoundTripCloser(ctrl *gomock.Controller) *MockRoundTripCloser {
    27  	mock := &MockRoundTripCloser{ctrl: ctrl}
    28  	mock.recorder = &MockRoundTripCloserMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockRoundTripCloser) EXPECT() *MockRoundTripCloserMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Close mocks base method.
    38  func (m *MockRoundTripCloser) Close() error {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "Close")
    41  	ret0, _ := ret[0].(error)
    42  	return ret0
    43  }
    44  
    45  // Close indicates an expected call of Close.
    46  func (mr *MockRoundTripCloserMockRecorder) Close() *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockRoundTripCloser)(nil).Close))
    49  }
    50  
    51  // HandshakeComplete mocks base method.
    52  func (m *MockRoundTripCloser) HandshakeComplete() bool {
    53  	m.ctrl.T.Helper()
    54  	ret := m.ctrl.Call(m, "HandshakeComplete")
    55  	ret0, _ := ret[0].(bool)
    56  	return ret0
    57  }
    58  
    59  // HandshakeComplete indicates an expected call of HandshakeComplete.
    60  func (mr *MockRoundTripCloserMockRecorder) HandshakeComplete() *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandshakeComplete", reflect.TypeOf((*MockRoundTripCloser)(nil).HandshakeComplete))
    63  }
    64  
    65  // RoundTripOpt mocks base method.
    66  func (m *MockRoundTripCloser) RoundTripOpt(arg0 *http.Request, arg1 RoundTripOpt) (*http.Response, error) {
    67  	m.ctrl.T.Helper()
    68  	ret := m.ctrl.Call(m, "RoundTripOpt", arg0, arg1)
    69  	ret0, _ := ret[0].(*http.Response)
    70  	ret1, _ := ret[1].(error)
    71  	return ret0, ret1
    72  }
    73  
    74  // RoundTripOpt indicates an expected call of RoundTripOpt.
    75  func (mr *MockRoundTripCloserMockRecorder) RoundTripOpt(arg0, arg1 interface{}) *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoundTripOpt", reflect.TypeOf((*MockRoundTripCloser)(nil).RoundTripOpt), arg0, arg1)
    78  }