rename the ConnectionParametersManager to ParamsNegotiator

This commit is contained in:
Marten Seemann 2017-09-25 19:50:26 +07:00
parent ebb4150e63
commit c95f2054a8
20 changed files with 393 additions and 396 deletions

View file

@ -17,17 +17,17 @@ var _ = Describe("Streams Map", func() {
)
var (
m *streamsMap
mockCpm *mocks.MockConnectionParametersManager
m *streamsMap
mockPn *mocks.MockParamsNegotiator
)
setNewStreamsMap := func(p protocol.Perspective) {
mockCpm = mocks.NewMockConnectionParametersManager(mockCtrl)
mockPn = mocks.NewMockParamsNegotiator(mockCtrl)
mockCpm.EXPECT().GetMaxOutgoingStreams().AnyTimes().Return(uint32(maxOutgoingStreams))
mockCpm.EXPECT().GetMaxIncomingStreams().AnyTimes().Return(uint32(maxIncomingStreams))
mockPn.EXPECT().GetMaxOutgoingStreams().AnyTimes().Return(uint32(maxOutgoingStreams))
mockPn.EXPECT().GetMaxIncomingStreams().AnyTimes().Return(uint32(maxIncomingStreams))
m = newStreamsMap(nil, p, mockCpm)
m = newStreamsMap(nil, p, mockPn)
m.newStream = func(id protocol.StreamID) *stream {
return newStream(id, nil, nil, nil)
}