github.com/tumi8/quic-go@v0.37.4-tum/mock_crypto_stream_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go (interfaces: CryptoStream) 3 4 // Package quic is a generated GoMock package. 5 package quic 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 protocol "github.com/tumi8/quic-go/noninternal/protocol" 12 wire "github.com/tumi8/quic-go/noninternal/wire" 13 ) 14 15 // MockCryptoStream is a mock of CryptoStream interface. 16 type MockCryptoStream struct { 17 ctrl *gomock.Controller 18 recorder *MockCryptoStreamMockRecorder 19 } 20 21 // MockCryptoStreamMockRecorder is the mock recorder for MockCryptoStream. 22 type MockCryptoStreamMockRecorder struct { 23 mock *MockCryptoStream 24 } 25 26 // NewMockCryptoStream creates a new mock instance. 27 func NewMockCryptoStream(ctrl *gomock.Controller) *MockCryptoStream { 28 mock := &MockCryptoStream{ctrl: ctrl} 29 mock.recorder = &MockCryptoStreamMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockCryptoStream) EXPECT() *MockCryptoStreamMockRecorder { 35 return m.recorder 36 } 37 38 // Finish mocks base method. 39 func (m *MockCryptoStream) Finish() error { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Finish") 42 ret0, _ := ret[0].(error) 43 return ret0 44 } 45 46 // Finish indicates an expected call of Finish. 47 func (mr *MockCryptoStreamMockRecorder) Finish() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finish", reflect.TypeOf((*MockCryptoStream)(nil).Finish)) 50 } 51 52 // GetCryptoData mocks base method. 53 func (m *MockCryptoStream) GetCryptoData() []byte { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "GetCryptoData") 56 ret0, _ := ret[0].([]byte) 57 return ret0 58 } 59 60 // GetCryptoData indicates an expected call of GetCryptoData. 61 func (mr *MockCryptoStreamMockRecorder) GetCryptoData() *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCryptoData", reflect.TypeOf((*MockCryptoStream)(nil).GetCryptoData)) 64 } 65 66 // HandleCryptoFrame mocks base method. 67 func (m *MockCryptoStream) HandleCryptoFrame(arg0 *wire.CryptoFrame) error { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "HandleCryptoFrame", arg0) 70 ret0, _ := ret[0].(error) 71 return ret0 72 } 73 74 // HandleCryptoFrame indicates an expected call of HandleCryptoFrame. 75 func (mr *MockCryptoStreamMockRecorder) HandleCryptoFrame(arg0 interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleCryptoFrame", reflect.TypeOf((*MockCryptoStream)(nil).HandleCryptoFrame), arg0) 78 } 79 80 // HasData mocks base method. 81 func (m *MockCryptoStream) HasData() bool { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "HasData") 84 ret0, _ := ret[0].(bool) 85 return ret0 86 } 87 88 // HasData indicates an expected call of HasData. 89 func (mr *MockCryptoStreamMockRecorder) HasData() *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasData", reflect.TypeOf((*MockCryptoStream)(nil).HasData)) 92 } 93 94 // PopCryptoFrame mocks base method. 95 func (m *MockCryptoStream) PopCryptoFrame(arg0 protocol.ByteCount) *wire.CryptoFrame { 96 m.ctrl.T.Helper() 97 ret := m.ctrl.Call(m, "PopCryptoFrame", arg0) 98 ret0, _ := ret[0].(*wire.CryptoFrame) 99 return ret0 100 } 101 102 // PopCryptoFrame indicates an expected call of PopCryptoFrame. 103 func (mr *MockCryptoStreamMockRecorder) PopCryptoFrame(arg0 interface{}) *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PopCryptoFrame", reflect.TypeOf((*MockCryptoStream)(nil).PopCryptoFrame), arg0) 106 } 107 108 // Write mocks base method. 109 func (m *MockCryptoStream) Write(arg0 []byte) (int, error) { 110 m.ctrl.T.Helper() 111 ret := m.ctrl.Call(m, "Write", arg0) 112 ret0, _ := ret[0].(int) 113 ret1, _ := ret[1].(error) 114 return ret0, ret1 115 } 116 117 // Write indicates an expected call of Write. 118 func (mr *MockCryptoStreamMockRecorder) Write(arg0 interface{}) *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockCryptoStream)(nil).Write), arg0) 121 }