separate connection parameters negotiation and gQUIC handshake parsing

This commit is contained in:
Marten Seemann 2017-09-25 18:48:15 +07:00
parent 95901cdee4
commit ebb4150e63
10 changed files with 289 additions and 317 deletions

View file

@ -143,15 +143,9 @@ func areSessionsRunning() bool {
return strings.Contains(b.String(), "quic-go.(*session).run")
}
type mockConnectionParametersManager struct {
}
type mockConnectionParametersManager struct{}
func (m *mockConnectionParametersManager) SetFromMap(map[handshake.Tag][]byte) error {
panic("not implement")
}
func (m *mockConnectionParametersManager) GetHelloMap() (map[handshake.Tag][]byte, error) {
panic("not implement")
}
var _ handshake.ConnectionParametersManager = &mockConnectionParametersManager{}
func (m *mockConnectionParametersManager) GetSendStreamFlowControlWindow() protocol.ByteCount {
return protocol.InitialStreamFlowControlWindow