uquic/mock_stream_sender_test.go
Marten Seemann c270de3538 queue stream window updates directly from stream.Read
By queueing receive window updates directly from stream.Read, it is no
longer necessary to ask every stream for window updates when sending a
packet.
2017-12-20 13:03:36 +07:00

64 lines
2.4 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/lucas-clemente/quic-go (interfaces: StreamSender)
package quic
import (
gomock "github.com/golang/mock/gomock"
protocol "github.com/lucas-clemente/quic-go/internal/protocol"
wire "github.com/lucas-clemente/quic-go/internal/wire"
reflect "reflect"
)
// MockStreamSender is a mock of StreamSender interface
type MockStreamSender struct {
ctrl *gomock.Controller
recorder *MockStreamSenderMockRecorder
}
// MockStreamSenderMockRecorder is the mock recorder for MockStreamSender
type MockStreamSenderMockRecorder struct {
mock *MockStreamSender
}
// NewMockStreamSender creates a new mock instance
func NewMockStreamSender(ctrl *gomock.Controller) *MockStreamSender {
mock := &MockStreamSender{ctrl: ctrl}
mock.recorder = &MockStreamSenderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (_m *MockStreamSender) EXPECT() *MockStreamSenderMockRecorder {
return _m.recorder
}
// onHasWindowUpdate mocks base method
func (_m *MockStreamSender) onHasWindowUpdate(_param0 protocol.StreamID, _param1 protocol.ByteCount) {
_m.ctrl.Call(_m, "onHasWindowUpdate", _param0, _param1)
}
// onHasWindowUpdate indicates an expected call of onHasWindowUpdate
func (_mr *MockStreamSenderMockRecorder) onHasWindowUpdate(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "onHasWindowUpdate", reflect.TypeOf((*MockStreamSender)(nil).onHasWindowUpdate), arg0, arg1)
}
// queueControlFrame mocks base method
func (_m *MockStreamSender) queueControlFrame(_param0 wire.Frame) {
_m.ctrl.Call(_m, "queueControlFrame", _param0)
}
// queueControlFrame indicates an expected call of queueControlFrame
func (_mr *MockStreamSenderMockRecorder) queueControlFrame(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "queueControlFrame", reflect.TypeOf((*MockStreamSender)(nil).queueControlFrame), arg0)
}
// scheduleSending mocks base method
func (_m *MockStreamSender) scheduleSending() {
_m.ctrl.Call(_m, "scheduleSending")
}
// scheduleSending indicates an expected call of scheduleSending
func (_mr *MockStreamSenderMockRecorder) scheduleSending() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "scheduleSending", reflect.TypeOf((*MockStreamSender)(nil).scheduleSending))
}