mocks

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnectionFlowController

type MockConnectionFlowController struct {
	// contains filtered or unexported fields
}

MockConnectionFlowController is a mock of ConnectionFlowController interface

func NewMockConnectionFlowController

func NewMockConnectionFlowController(ctrl *gomock.Controller) *MockConnectionFlowController

NewMockConnectionFlowController creates a new mock instance

func (*MockConnectionFlowController) AddBytesRead

func (_m *MockConnectionFlowController) AddBytesRead(_param0 protocol.ByteCount)

AddBytesRead mocks base method

func (*MockConnectionFlowController) AddBytesSent

func (_m *MockConnectionFlowController) AddBytesSent(_param0 protocol.ByteCount)

AddBytesSent mocks base method

func (*MockConnectionFlowController) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockConnectionFlowController) GetWindowUpdate

func (_m *MockConnectionFlowController) GetWindowUpdate() protocol.ByteCount

GetWindowUpdate mocks base method

func (*MockConnectionFlowController) IsBlocked

func (_m *MockConnectionFlowController) IsBlocked() bool

IsBlocked mocks base method

func (*MockConnectionFlowController) SendWindowSize

func (_m *MockConnectionFlowController) SendWindowSize() protocol.ByteCount

SendWindowSize mocks base method

func (*MockConnectionFlowController) UpdateSendWindow

func (_m *MockConnectionFlowController) UpdateSendWindow(_param0 protocol.ByteCount)

UpdateSendWindow mocks base method

type MockConnectionFlowControllerMockRecorder

type MockConnectionFlowControllerMockRecorder struct {
	// contains filtered or unexported fields
}

MockConnectionFlowControllerMockRecorder is the mock recorder for MockConnectionFlowController

func (*MockConnectionFlowControllerMockRecorder) AddBytesRead

func (_mr *MockConnectionFlowControllerMockRecorder) AddBytesRead(arg0 interface{}) *gomock.Call

AddBytesRead indicates an expected call of AddBytesRead

func (*MockConnectionFlowControllerMockRecorder) AddBytesSent

func (_mr *MockConnectionFlowControllerMockRecorder) AddBytesSent(arg0 interface{}) *gomock.Call

AddBytesSent indicates an expected call of AddBytesSent

func (*MockConnectionFlowControllerMockRecorder) GetWindowUpdate

func (_mr *MockConnectionFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call

GetWindowUpdate indicates an expected call of GetWindowUpdate

func (*MockConnectionFlowControllerMockRecorder) IsBlocked

IsBlocked indicates an expected call of IsBlocked

func (*MockConnectionFlowControllerMockRecorder) SendWindowSize

func (_mr *MockConnectionFlowControllerMockRecorder) SendWindowSize() *gomock.Call

SendWindowSize indicates an expected call of SendWindowSize

func (*MockConnectionFlowControllerMockRecorder) UpdateSendWindow

func (_mr *MockConnectionFlowControllerMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call

UpdateSendWindow indicates an expected call of UpdateSendWindow

type MockStreamFlowController

type MockStreamFlowController struct {
	// contains filtered or unexported fields
}

MockStreamFlowController is a mock of StreamFlowController interface

func NewMockStreamFlowController

func NewMockStreamFlowController(ctrl *gomock.Controller) *MockStreamFlowController

NewMockStreamFlowController creates a new mock instance

func (*MockStreamFlowController) AddBytesRead

func (_m *MockStreamFlowController) AddBytesRead(_param0 protocol.ByteCount)

AddBytesRead mocks base method

func (*MockStreamFlowController) AddBytesSent

func (_m *MockStreamFlowController) AddBytesSent(_param0 protocol.ByteCount)

AddBytesSent mocks base method

func (*MockStreamFlowController) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockStreamFlowController) GetWindowUpdate

func (_m *MockStreamFlowController) GetWindowUpdate() protocol.ByteCount

GetWindowUpdate mocks base method

func (*MockStreamFlowController) IsBlocked

func (_m *MockStreamFlowController) IsBlocked() bool

IsBlocked mocks base method

func (*MockStreamFlowController) SendWindowSize

func (_m *MockStreamFlowController) SendWindowSize() protocol.ByteCount

SendWindowSize mocks base method

func (*MockStreamFlowController) UpdateHighestReceived

func (_m *MockStreamFlowController) UpdateHighestReceived(_param0 protocol.ByteCount, _param1 bool) error

UpdateHighestReceived mocks base method

func (*MockStreamFlowController) UpdateSendWindow

func (_m *MockStreamFlowController) UpdateSendWindow(_param0 protocol.ByteCount)

UpdateSendWindow mocks base method

type MockStreamFlowControllerMockRecorder

type MockStreamFlowControllerMockRecorder struct {
	// contains filtered or unexported fields
}

MockStreamFlowControllerMockRecorder is the mock recorder for MockStreamFlowController

func (*MockStreamFlowControllerMockRecorder) AddBytesRead

func (_mr *MockStreamFlowControllerMockRecorder) AddBytesRead(arg0 interface{}) *gomock.Call

AddBytesRead indicates an expected call of AddBytesRead

func (*MockStreamFlowControllerMockRecorder) AddBytesSent

func (_mr *MockStreamFlowControllerMockRecorder) AddBytesSent(arg0 interface{}) *gomock.Call

AddBytesSent indicates an expected call of AddBytesSent

func (*MockStreamFlowControllerMockRecorder) GetWindowUpdate

func (_mr *MockStreamFlowControllerMockRecorder) GetWindowUpdate() *gomock.Call

GetWindowUpdate indicates an expected call of GetWindowUpdate

func (*MockStreamFlowControllerMockRecorder) IsBlocked

IsBlocked indicates an expected call of IsBlocked

func (*MockStreamFlowControllerMockRecorder) SendWindowSize

func (_mr *MockStreamFlowControllerMockRecorder) SendWindowSize() *gomock.Call

SendWindowSize indicates an expected call of SendWindowSize

func (*MockStreamFlowControllerMockRecorder) UpdateHighestReceived

func (_mr *MockStreamFlowControllerMockRecorder) UpdateHighestReceived(arg0, arg1 interface{}) *gomock.Call

UpdateHighestReceived indicates an expected call of UpdateHighestReceived

func (*MockStreamFlowControllerMockRecorder) UpdateSendWindow

func (_mr *MockStreamFlowControllerMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call

UpdateSendWindow indicates an expected call of UpdateSendWindow

type MockStreamI

type MockStreamI struct {
	// contains filtered or unexported fields
}

MockStreamI is a mock of StreamI interface

func NewMockStreamI

func NewMockStreamI(ctrl *gomock.Controller) *MockStreamI

NewMockStreamI creates a new mock instance

func (*MockStreamI) AddStreamFrame

func (_m *MockStreamI) AddStreamFrame(_param0 *wire.StreamFrame) error

AddStreamFrame mocks base method

func (*MockStreamI) Cancel

func (_m *MockStreamI) Cancel(_param0 error)

Cancel mocks base method

func (*MockStreamI) Close

func (_m *MockStreamI) Close() error

Close mocks base method

func (*MockStreamI) Context

func (_m *MockStreamI) Context() context.Context

Context mocks base method

func (*MockStreamI) EXPECT

func (_m *MockStreamI) EXPECT() *MockStreamIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockStreamI) Finished

func (_m *MockStreamI) Finished() bool

Finished mocks base method

func (*MockStreamI) GetDataForWriting

func (_m *MockStreamI) GetDataForWriting(_param0 protocol.ByteCount) ([]byte, bool)

GetDataForWriting mocks base method

func (*MockStreamI) GetWindowUpdate

func (_m *MockStreamI) GetWindowUpdate() protocol.ByteCount

GetWindowUpdate mocks base method

func (*MockStreamI) GetWriteOffset

func (_m *MockStreamI) GetWriteOffset() protocol.ByteCount

GetWriteOffset mocks base method

func (*MockStreamI) HasDataForWriting

func (_m *MockStreamI) HasDataForWriting() bool

HasDataForWriting mocks base method

func (*MockStreamI) IsFlowControlBlocked

func (_m *MockStreamI) IsFlowControlBlocked() bool

IsFlowControlBlocked mocks base method

func (*MockStreamI) Read

func (_m *MockStreamI) Read(_param0 []byte) (int, error)

Read mocks base method

func (*MockStreamI) RegisterRemoteError

func (_m *MockStreamI) RegisterRemoteError(_param0 error, _param1 protocol.ByteCount) error

RegisterRemoteError mocks base method

func (*MockStreamI) Reset

func (_m *MockStreamI) Reset(_param0 error)

Reset mocks base method

func (*MockStreamI) SetDeadline

func (_m *MockStreamI) SetDeadline(_param0 time.Time) error

SetDeadline mocks base method

func (*MockStreamI) SetReadDeadline

func (_m *MockStreamI) SetReadDeadline(_param0 time.Time) error

SetReadDeadline mocks base method

func (*MockStreamI) SetWriteDeadline

func (_m *MockStreamI) SetWriteDeadline(_param0 time.Time) error

SetWriteDeadline mocks base method

func (*MockStreamI) StreamID

func (_m *MockStreamI) StreamID() protocol.StreamID

StreamID mocks base method

func (*MockStreamI) UpdateSendWindow

func (_m *MockStreamI) UpdateSendWindow(_param0 protocol.ByteCount)

UpdateSendWindow mocks base method

func (*MockStreamI) Write

func (_m *MockStreamI) Write(_param0 []byte) (int, error)

Write mocks base method

type MockStreamIMockRecorder

type MockStreamIMockRecorder struct {
	// contains filtered or unexported fields
}

MockStreamIMockRecorder is the mock recorder for MockStreamI

func (*MockStreamIMockRecorder) AddStreamFrame

func (_mr *MockStreamIMockRecorder) AddStreamFrame(arg0 interface{}) *gomock.Call

AddStreamFrame indicates an expected call of AddStreamFrame

func (*MockStreamIMockRecorder) Cancel

func (_mr *MockStreamIMockRecorder) Cancel(arg0 interface{}) *gomock.Call

Cancel indicates an expected call of Cancel

func (*MockStreamIMockRecorder) Close

func (_mr *MockStreamIMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockStreamIMockRecorder) Context

func (_mr *MockStreamIMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context

func (*MockStreamIMockRecorder) Finished

func (_mr *MockStreamIMockRecorder) Finished() *gomock.Call

Finished indicates an expected call of Finished

func (*MockStreamIMockRecorder) GetDataForWriting

func (_mr *MockStreamIMockRecorder) GetDataForWriting(arg0 interface{}) *gomock.Call

GetDataForWriting indicates an expected call of GetDataForWriting

func (*MockStreamIMockRecorder) GetWindowUpdate

func (_mr *MockStreamIMockRecorder) GetWindowUpdate() *gomock.Call

GetWindowUpdate indicates an expected call of GetWindowUpdate

func (*MockStreamIMockRecorder) GetWriteOffset

func (_mr *MockStreamIMockRecorder) GetWriteOffset() *gomock.Call

GetWriteOffset indicates an expected call of GetWriteOffset

func (*MockStreamIMockRecorder) HasDataForWriting

func (_mr *MockStreamIMockRecorder) HasDataForWriting() *gomock.Call

HasDataForWriting indicates an expected call of HasDataForWriting

func (*MockStreamIMockRecorder) IsFlowControlBlocked

func (_mr *MockStreamIMockRecorder) IsFlowControlBlocked() *gomock.Call

IsFlowControlBlocked indicates an expected call of IsFlowControlBlocked

func (*MockStreamIMockRecorder) Read

func (_mr *MockStreamIMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockStreamIMockRecorder) RegisterRemoteError

func (_mr *MockStreamIMockRecorder) RegisterRemoteError(arg0, arg1 interface{}) *gomock.Call

RegisterRemoteError indicates an expected call of RegisterRemoteError

func (*MockStreamIMockRecorder) Reset

func (_mr *MockStreamIMockRecorder) Reset(arg0 interface{}) *gomock.Call

Reset indicates an expected call of Reset

func (*MockStreamIMockRecorder) SetDeadline

func (_mr *MockStreamIMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline

func (*MockStreamIMockRecorder) SetReadDeadline

func (_mr *MockStreamIMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline

func (*MockStreamIMockRecorder) SetWriteDeadline

func (_mr *MockStreamIMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline

func (*MockStreamIMockRecorder) StreamID

func (_mr *MockStreamIMockRecorder) StreamID() *gomock.Call

StreamID indicates an expected call of StreamID

func (*MockStreamIMockRecorder) UpdateSendWindow

func (_mr *MockStreamIMockRecorder) UpdateSendWindow(arg0 interface{}) *gomock.Call

UpdateSendWindow indicates an expected call of UpdateSendWindow

func (*MockStreamIMockRecorder) Write

func (_mr *MockStreamIMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

type MockTLSExtensionHandler

type MockTLSExtensionHandler struct {
	// contains filtered or unexported fields
}

MockTLSExtensionHandler is a mock of TLSExtensionHandler interface

func NewMockTLSExtensionHandler

func NewMockTLSExtensionHandler(ctrl *gomock.Controller) *MockTLSExtensionHandler

NewMockTLSExtensionHandler creates a new mock instance

func (*MockTLSExtensionHandler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockTLSExtensionHandler) GetPeerParams

func (_m *MockTLSExtensionHandler) GetPeerParams() <-chan handshake.TransportParameters

GetPeerParams mocks base method

func (*MockTLSExtensionHandler) Receive

func (_m *MockTLSExtensionHandler) Receive(_param0 mint.HandshakeType, _param1 *mint.ExtensionList) error

Receive mocks base method

func (*MockTLSExtensionHandler) Send

func (_m *MockTLSExtensionHandler) Send(_param0 mint.HandshakeType, _param1 *mint.ExtensionList) error

Send mocks base method

type MockTLSExtensionHandlerMockRecorder

type MockTLSExtensionHandlerMockRecorder struct {
	// contains filtered or unexported fields
}

MockTLSExtensionHandlerMockRecorder is the mock recorder for MockTLSExtensionHandler

func (*MockTLSExtensionHandlerMockRecorder) GetPeerParams

func (_mr *MockTLSExtensionHandlerMockRecorder) GetPeerParams() *gomock.Call

GetPeerParams indicates an expected call of GetPeerParams

func (*MockTLSExtensionHandlerMockRecorder) Receive

func (_mr *MockTLSExtensionHandlerMockRecorder) Receive(arg0, arg1 interface{}) *gomock.Call

Receive indicates an expected call of Receive

func (*MockTLSExtensionHandlerMockRecorder) Send

func (_mr *MockTLSExtensionHandlerMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call

Send indicates an expected call of Send

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL