mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 12:47:36 +03:00
rename the ConnectionParametersManager to ParamsNegotiator
This commit is contained in:
parent
ebb4150e63
commit
c95f2054a8
20 changed files with 393 additions and 396 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue