@@ -27,7 +27,7 @@ struct QPACKStateMachineTests {
2727 @Test
2828 func testSettingsWithoutDynamicTable( ) {
2929 var stateMachine = QPACKStateMachine ( decoderMaxTableSize: 1024 , decoderMaxBlockedStreams: 100 )
30- let action = stateMachine. receivedRemoteSettings ( maxQueueSize: 0 , dynamicTableSize : 0 )
30+ let action = stateMachine. receivedRemoteSettings ( maxQueueSize: 0 , effectiveDynamicTableSize : 0 )
3131 switch action {
3232 case . makeEncoderInstructionStream:
3333 Issue . record ( " Expected no outbound encoder stream " )
@@ -59,7 +59,7 @@ struct QPACKStateMachineTests {
5959 @Test
6060 func testEncodeHeadersInWaitingForStreamState( ) {
6161 var stateMachine = QPACKStateMachine ( decoderMaxTableSize: 1024 , decoderMaxBlockedStreams: 100 )
62- let action = stateMachine. receivedRemoteSettings ( maxQueueSize: 100 , dynamicTableSize : 100 )
62+ let action = stateMachine. receivedRemoteSettings ( maxQueueSize: 100 , effectiveDynamicTableSize : 100 )
6363 #expect( action == . makeEncoderInstructionStream)
6464 // We have received remote settings, and been asked to create outbound encoder stream
6565 // However, the outbound stream isn't ready yet, so the dynamic table should not be used
@@ -69,7 +69,7 @@ struct QPACKStateMachineTests {
6969 @Test
7070 func testEncodeHeadersInWithoutDynamicState( ) {
7171 var stateMachine = QPACKStateMachine ( decoderMaxTableSize: 1024 , decoderMaxBlockedStreams: 100 )
72- let action = stateMachine. receivedRemoteSettings ( maxQueueSize: 100 , dynamicTableSize : 0 )
72+ let action = stateMachine. receivedRemoteSettings ( maxQueueSize: 100 , effectiveDynamicTableSize : 0 )
7373 #expect( action == nil ) // No outbound stream because 0 size
7474 // We have received remote settings, but they specify 0 table size. Therefore we should not use dynamic table
7575 stateMachine. assertEncodesWithoutUsingDynamicTable ( )
@@ -78,7 +78,7 @@ struct QPACKStateMachineTests {
7878 @Test
7979 func testEncodeHeadersInWithDynamicState( ) {
8080 var stateMachine = QPACKStateMachine ( decoderMaxTableSize: 1024 , decoderMaxBlockedStreams: 100 )
81- let action1 = stateMachine. receivedRemoteSettings ( maxQueueSize: 100 , dynamicTableSize : 300 )
81+ let action1 = stateMachine. receivedRemoteSettings ( maxQueueSize: 100 , effectiveDynamicTableSize : 300 )
8282 #expect( action1 == . makeEncoderInstructionStream)
8383 let action2 = stateMachine. outboundEncoderStreamReady ( )
8484 // The stream is ready so we should immediately start using the table at max capacity
@@ -464,7 +464,7 @@ struct QPACKStateMachineTests {
464464 @Test
465465 func testGotDecoderInstructionWhenExplicitlyNoDynamicTable( ) {
466466 var stateMachine = QPACKStateMachine ( decoderMaxTableSize: 1024 , decoderMaxBlockedStreams: 100 )
467- _ = stateMachine. receivedRemoteSettings ( maxQueueSize: 0 , dynamicTableSize : 0 )
467+ _ = stateMachine. receivedRemoteSettings ( maxQueueSize: 0 , effectiveDynamicTableSize : 0 )
468468 // This instruction is invalid because remote explicitly told us no dynamic table capacity
469469 let action = stateMachine. receivedIncomingDecoderInstruction ( . sectionAcknowledgement( streamID: 1 ) )
470470 guard case . emitConnectionError( let error) = action else {
@@ -481,7 +481,7 @@ struct QPACKStateMachineTests {
481481 @Test
482482 func testGotDecoderInstructionWhenAwaitingStream( ) {
483483 var stateMachine = QPACKStateMachine ( decoderMaxTableSize: 1024 , decoderMaxBlockedStreams: 100 )
484- _ = stateMachine. receivedRemoteSettings ( maxQueueSize: 100 , dynamicTableSize : 100 )
484+ _ = stateMachine. receivedRemoteSettings ( maxQueueSize: 100 , effectiveDynamicTableSize : 100 )
485485 // We can't receive instructions from the remote decoder until we ourselves have sent an instruction to indicate support of the dynamic table
486486 let action = stateMachine. receivedIncomingDecoderInstruction ( . sectionAcknowledgement( streamID: 1 ) )
487487 guard case . emitConnectionError( let error) = action else {
@@ -660,7 +660,7 @@ extension QPACKStateMachine {
660660 /// Simulate receiving settings from the remote which allows the local encoder to use the dynamic table.
661661 fileprivate mutating func setupRemoteDynamicTable( maxSize: Int ) {
662662 // remote sends us settings saying we may use the dynamic table
663- let actions1 = self . receivedRemoteSettings ( maxQueueSize: 100 , dynamicTableSize : maxSize)
663+ let actions1 = self . receivedRemoteSettings ( maxQueueSize: 100 , effectiveDynamicTableSize : maxSize)
664664 switch actions1 {
665665 // We open an encoder stream
666666 case . makeEncoderInstructionStream:
0 commit comments