move the TransportState struct to the quictrace package

Prevents an import loop when passing the tracer to the ackhandler.
This commit is contained in:
Marten Seemann 2019-04-05 12:10:08 +09:00
parent 267d11ee66
commit 22cbb344af
6 changed files with 23 additions and 20 deletions

View file

@ -12,6 +12,7 @@ import (
ackhandler "github.com/lucas-clemente/quic-go/internal/ackhandler"
protocol "github.com/lucas-clemente/quic-go/internal/protocol"
wire "github.com/lucas-clemente/quic-go/internal/wire"
quictrace "github.com/lucas-clemente/quic-go/quictrace"
)
// MockSentPacketHandler is a mock of SentPacketHandler interface
@ -107,10 +108,10 @@ func (mr *MockSentPacketHandlerMockRecorder) GetLowestPacketNotConfirmedAcked()
}
// GetStats mocks base method
func (m *MockSentPacketHandler) GetStats() *ackhandler.State {
func (m *MockSentPacketHandler) GetStats() *quictrace.TransportState {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetStats")
ret0, _ := ret[0].(*ackhandler.State)
ret0, _ := ret[0].(*quictrace.TransportState)
return ret0
}