@@ -15,22 +15,25 @@ const IDX_OPTIONS_MAX_RESERVED_REMOTE_STREAMS = 1;
1515const IDX_OPTIONS_MAX_SEND_HEADER_BLOCK_LENGTH = 2 ;
1616const IDX_OPTIONS_PEER_MAX_CONCURRENT_STREAMS = 3 ;
1717const IDX_OPTIONS_PADDING_STRATEGY = 4 ;
18- const IDX_OPTIONS_FLAGS = 5 ;
18+ const IDX_OPTIONS_MAX_HEADER_LIST_PAIRS = 5 ;
19+ const IDX_OPTIONS_FLAGS = 6 ;
1920
2021{
2122 updateOptionsBuffer ( {
2223 maxDeflateDynamicTableSize : 1 ,
2324 maxReservedRemoteStreams : 2 ,
2425 maxSendHeaderBlockLength : 3 ,
2526 peerMaxConcurrentStreams : 4 ,
26- paddingStrategy : 5
27+ paddingStrategy : 5 ,
28+ maxHeaderListPairs : 6
2729 } ) ;
2830
2931 strictEqual ( optionsBuffer [ IDX_OPTIONS_MAX_DEFLATE_DYNAMIC_TABLE_SIZE ] , 1 ) ;
3032 strictEqual ( optionsBuffer [ IDX_OPTIONS_MAX_RESERVED_REMOTE_STREAMS ] , 2 ) ;
3133 strictEqual ( optionsBuffer [ IDX_OPTIONS_MAX_SEND_HEADER_BLOCK_LENGTH ] , 3 ) ;
3234 strictEqual ( optionsBuffer [ IDX_OPTIONS_PEER_MAX_CONCURRENT_STREAMS ] , 4 ) ;
3335 strictEqual ( optionsBuffer [ IDX_OPTIONS_PADDING_STRATEGY ] , 5 ) ;
36+ strictEqual ( optionsBuffer [ IDX_OPTIONS_MAX_HEADER_LIST_PAIRS ] , 6 ) ;
3437
3538 const flags = optionsBuffer [ IDX_OPTIONS_FLAGS ] ;
3639
@@ -39,6 +42,7 @@ const IDX_OPTIONS_FLAGS = 5;
3942 ok ( flags & ( 1 << IDX_OPTIONS_MAX_SEND_HEADER_BLOCK_LENGTH ) ) ;
4043 ok ( flags & ( 1 << IDX_OPTIONS_PEER_MAX_CONCURRENT_STREAMS ) ) ;
4144 ok ( flags & ( 1 << IDX_OPTIONS_PADDING_STRATEGY ) ) ;
45+ ok ( flags & ( 1 << IDX_OPTIONS_MAX_HEADER_LIST_PAIRS ) ) ;
4246}
4347
4448{
@@ -48,14 +52,16 @@ const IDX_OPTIONS_FLAGS = 5;
4852 maxDeflateDynamicTableSize : 1 ,
4953 maxReservedRemoteStreams : 2 ,
5054 peerMaxConcurrentStreams : 4 ,
51- paddingStrategy : 5
55+ paddingStrategy : 5 ,
56+ maxHeaderListPairs : 6
5257 } ) ;
5358
5459 strictEqual ( optionsBuffer [ IDX_OPTIONS_MAX_DEFLATE_DYNAMIC_TABLE_SIZE ] , 1 ) ;
5560 strictEqual ( optionsBuffer [ IDX_OPTIONS_MAX_RESERVED_REMOTE_STREAMS ] , 2 ) ;
5661 strictEqual ( optionsBuffer [ IDX_OPTIONS_MAX_SEND_HEADER_BLOCK_LENGTH ] , 0 ) ;
5762 strictEqual ( optionsBuffer [ IDX_OPTIONS_PEER_MAX_CONCURRENT_STREAMS ] , 4 ) ;
5863 strictEqual ( optionsBuffer [ IDX_OPTIONS_PADDING_STRATEGY ] , 5 ) ;
64+ strictEqual ( optionsBuffer [ IDX_OPTIONS_MAX_HEADER_LIST_PAIRS ] , 6 ) ;
5965
6066 const flags = optionsBuffer [ IDX_OPTIONS_FLAGS ] ;
6167
@@ -64,4 +70,5 @@ const IDX_OPTIONS_FLAGS = 5;
6470 ok ( ! ( flags & ( 1 << IDX_OPTIONS_MAX_SEND_HEADER_BLOCK_LENGTH ) ) ) ;
6571 ok ( flags & ( 1 << IDX_OPTIONS_PEER_MAX_CONCURRENT_STREAMS ) ) ;
6672 ok ( flags & ( 1 << IDX_OPTIONS_PADDING_STRATEGY ) ) ;
73+ ok ( flags & ( 1 << IDX_OPTIONS_MAX_HEADER_LIST_PAIRS ) ) ;
6774}
0 commit comments