-
Notifications
You must be signed in to change notification settings - Fork 680
Expand file tree
/
Copy pathMsQuicTests.h
More file actions
1117 lines (906 loc) · 20.4 KB
/
Copy pathMsQuicTests.h
File metadata and controls
1117 lines (906 loc) · 20.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*++
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
Abstract:
Interface for the Platform Independent MsQuic Tests
--*/
#pragma once
//
// For official releases, disable tests for preview features:
// the official release test binary for a version is used for down-level compatibility testing
// against newer versions of MsQuic, and since preview features are subject to change, those tests
// would break.
//
#ifndef QUIC_OFFICIAL_RELEASE
#define QUIC_API_ENABLE_PREVIEW_FEATURES
#endif
#include "msquic.hpp"
//
// Enable tests for specific platforms/scenarios
//
//#define QUIC_COMPARTMENT_TESTS 1
extern QUIC_CREDENTIAL_CONFIG ServerSelfSignedCredConfig;
extern QUIC_CREDENTIAL_CONFIG ServerSelfSignedCredConfigClientAuth;
extern QUIC_CREDENTIAL_CONFIG ClientCertCredConfig;
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
extern char CurrentWorkingDirectory[MAX_PATH + 1];
#ifdef __cplusplus
extern "C" {
#endif
void QuicTestInitialize();
void QuicTestUninitialize();
//
// Parameter structures used by many tests
//
struct FamilyArgs {
int Family;
};
struct QUIC_CREDENTIAL_BLOB {
QUIC_CREDENTIAL_CONFIG CredConfig;
union {
QUIC_CERTIFICATE_HASH CertHash;
QUIC_CERTIFICATE_HASH_STORE CertHashStore;
QUIC_CERTIFICATE_FILE CertFile;
QUIC_CERTIFICATE_FILE_PROTECTED CertFileProtected;
QUIC_CERTIFICATE_PKCS12 Pkcs12;
char PrincipalString[100];
} Storage;
};
//
// Parameter Validation Tests
//
void QuicTestValidateApi();
void QuicTestValidateRegistration();
void QuicTestValidateConfiguration();
void QuicTestValidateListener();
void QuicTestValidateConnection();
#ifdef QUIC_API_ENABLE_PREVIEW_FEATURES
void QuicTestValidateConnectionExportKeyingMaterial();
void QuicTestConnectionExportKeyingMaterial();
#endif
void QuicTestValidateStream(const bool& Connect);
void QuicTestCloseConnBeforeStreamFlush();
void QuicTestGlobalParam();
#ifdef QUIC_API_ENABLE_PREVIEW_FEATURES
void QuicTestXdpMapConfigParam();
#endif
void QuicTestCommonParam();
void QuicTestRegistrationParam();
void QuicTestConfigurationParam();
void QuicTestListenerParam();
void QuicTestConnectionParam();
void QuicTestTlsParam();
void QuicTestTlsHandshakeInfo(const bool& EnableResumption);
void QuicTestStreamParam();
void QuicTestGetPerfCounters();
#ifdef QUIC_API_ENABLE_PREVIEW_FEATURES
void QuicTestValidateEncryptDecryptPerfCounters();
void QuicTestConnQueueDelayStatistics();
void QuicTestGetWorkerStatistics();
#endif
void QuicTestVersionSettings();
void QuicTestValidateParamApi();
void QuicTestCredentialLoad(const QUIC_CREDENTIAL_BLOB& Config);
void QuicTestValidateConnectionPoolCreate();
void QuicTestValidateExecutionContext();
void QuicTestValidatePartition();
void QuicTestRetryConfigSetting();
//
// Ownership tests
//
void QuicTestRegistrationShutdownBeforeConnOpen();
void QuicTestRegistrationShutdownAfterConnOpen();
void QuicTestRegistrationShutdownAfterConnOpenBeforeStart();
void QuicTestRegistrationShutdownAfterConnOpenAndStart();
void QuicTestConnectionCloseBeforeStreamClose();
//
// Rejection Tests
//
void QuicTestConnectionRejection(const bool& RejectByClosing);
//
// Event Validation Tests
//
struct ValidateConnectionEventArgs {
uint32_t Test;
};
void QuicTestValidateConnectionEvents(const ValidateConnectionEventArgs& Params);
#ifdef QUIC_API_ENABLE_PREVIEW_FEATURES
struct ValidateNetStatsConnEventArgs {
uint32_t Test;
};
void QuicTestValidateNetStatsConnEvent(const ValidateNetStatsConnEventArgs& Params);
#endif
struct ValidateStreamEventArgs {
uint32_t Test;
};
void QuicTestValidateStreamEvents(const ValidateStreamEventArgs& Params);
//
// Basic Functionality Tests
//
void QuicTestRegistrationOpenClose();
void QuicTestCreateListener();
void QuicTestStartListener();
void QuicTestStartListenerMultiAlpns();
void QuicTestStartListenerImplicit(const FamilyArgs& Params);
void QuicTestStartTwoListeners();
void QuicTestStartTwoListenersSameALPN();
void QuicTestStartListenerExplicit(const FamilyArgs& Params);
void QuicTestCreateConnection();
void QuicTestBindConnectionImplicit(const FamilyArgs& Params);
void QuicTestBindConnectionExplicit(const FamilyArgs& Params);
void QuicTestConnectionCloseFromCallback();
void QuicTestAddrFunctions(const FamilyArgs& Params);
//
// MTU tests
//
void QuicTestMtuSettings();
struct MtuArgs {
int Family;
uint8_t DropMode;
uint8_t RaiseMinimum;
};
void QuicTestMtuDiscovery(const MtuArgs& Params);
//
// Path tests
//
void
QuicTestLocalPathChanges(
const FamilyArgs& Params
);
//
// Handshake Tests
//
typedef enum QUIC_TEST_RESUMPTION_MODE {
QUIC_TEST_RESUMPTION_DISABLED,
QUIC_TEST_RESUMPTION_ENABLED,
QUIC_TEST_RESUMPTION_ENABLED_ASYNC,
QUIC_TEST_RESUMPTION_REJECTED,
QUIC_TEST_RESUMPTION_REJECTED_BY_SERVER_APP,
QUIC_TEST_RESUMPTION_REJECTED_BY_SERVER_APP_ASYNC,
} QUIC_TEST_RESUMPTION_MODE;
typedef enum QUIC_TEST_ASYNC_CONFIG_MODE {
QUIC_TEST_ASYNC_CONFIG_DISABLED,
QUIC_TEST_ASYNC_CONFIG_ENABLED,
QUIC_TEST_ASYNC_CONFIG_DELAYED,
} QUIC_TEST_ASYNC_CONFIG_MODE;
void
QuicTestConnect(
_In_ int Family,
_In_ bool ServerStatelessRetry,
_In_ bool ClientUsesOldVersion,
_In_ bool MultipleALPNs,
_In_ bool GreaseQuicBitExtension,
_In_ QUIC_TEST_ASYNC_CONFIG_MODE AsyncConfiguration,
_In_ bool MultiPacketClientInitial,
_In_ QUIC_TEST_RESUMPTION_MODE SessionResumption,
_In_ uint8_t RandomLossPercentage // 0 to 100
);
struct HandshakeArgs {
int Family;
bool ServerStatelessRetry;
bool MultipleALPNs;
bool MultiPacketClientInitial;
bool GreaseQuicBitExtension;
};
void
QuicTestConnect_Connect(
const HandshakeArgs& Params
);
void
QuicTestConnect_Resume(
const HandshakeArgs& Params
);
void
QuicTestConnect_ResumeAsync(
const HandshakeArgs& Params
);
void
QuicTestConnect_ResumeRejection(
const HandshakeArgs& Params
);
void
QuicTestConnect_ResumeRejectionByServerApp(
const HandshakeArgs& Params
);
void
QuicTestConnect_ResumeRejectionByServerAppAsync(
const HandshakeArgs& Params
);
void
QuicTestConnect_OldVersion(
const HandshakeArgs& Params
);
struct HandshakeArgs4 {
int Family;
bool ServerStatelessRetry;
bool MultiPacketClientInitial;
uint8_t RandomLossPercentage;
};
void
QuicTestConnect_RandomLoss(
const HandshakeArgs4& Params
);
void
QuicTestConnect_RandomLossResume(
const HandshakeArgs4& Params
);
void
QuicTestConnect_RandomLossResumeRejection(
const HandshakeArgs4& Params
);
void
QuicTestConnect_AsyncSecurityConfig(
const HandshakeArgs& Params
);
void
QuicTestConnect_AsyncSecurityConfig_Delayed(
const HandshakeArgs& Params
);
#ifdef QUIC_API_ENABLE_PREVIEW_FEATURES
void
QuicTestVersionNegotiation(
const FamilyArgs& Params
);
void
QuicTestVersionNegotiationRetry(
const FamilyArgs& Params
);
void
QuicTestCompatibleVersionNegotiationRetry(
const FamilyArgs& Params
);
struct VersionNegotiationExtArgs {
int Family;
bool DisableVNEClient;
bool DisableVNEServer;
};
void
QuicTestCompatibleVersionNegotiation(
const VersionNegotiationExtArgs& Params
);
void
QuicTestCompatibleVersionNegotiationDefaultClient(
const VersionNegotiationExtArgs& Params
);
void
QuicTestCompatibleVersionNegotiationDefaultServer(
const VersionNegotiationExtArgs& Params
);
void
QuicTestIncompatibleVersionNegotiation(
const FamilyArgs& Params
);
void
QuicTestFailedVersionNegotiation(
const FamilyArgs& Params
);
struct FeatureSupportArgs {
int Family;
bool ServerSupport;
bool ClientSupport;
};
void
QuicTestReliableResetNegotiation(
const FeatureSupportArgs& Params
);
void
QuicTestOneWayDelayNegotiation(
const FeatureSupportArgs& Params
);
#endif // QUIC_API_ENABLE_PREVIEW_FEATURES
struct CustomCertValidationArgs {
bool AcceptCert;
bool AsyncValidation;
};
void
QuicTestCustomServerCertificateValidation(
const CustomCertValidationArgs& Params
);
void
QuicTestCustomClientCertificateValidation(
const CustomCertValidationArgs& Params
);
void
QuicTestCustomServerCertValidationAfterShutdown();
void
QuicTestCustomClientCertValidationAfterShutdown();
void
QuicTestCustomTicketValidationAfterShutdown(
bool AcceptTicket
);
struct ClientCertificateArgs {
int Family;
bool UseClientCertificate;
};
void
QuicTestConnectClientCertificate(
const ClientCertificateArgs& Params
);
void
QuicTestValidAlpnLengths(
void
);
void
QuicTestInvalidAlpnLengths(
void
);
void
QuicTestLoadBalancedHandshake(
const FamilyArgs& Params
);
void
QuicTestClientSharedLocalPort(
const FamilyArgs& Params
);
void
QuicTestInterfaceBinding(
const FamilyArgs& Params
);
void
QuicTestRetryMemoryLimitConnect(
const FamilyArgs& Params
);
#ifdef QUIC_API_ENABLE_PREVIEW_FEATURES
struct CibirExtensionParams {
int Family;
uint8_t Mode; // server = &1, client = &2
};
void
QuicTestCibirExtension(
const CibirExtensionParams& Params
);
#endif
void
QuicTestChangeAlpn(
void
);
struct HandshakeLossPatternsArgs {
int Family;
QUIC_CONGESTION_CONTROL_ALGORITHM CcAlgo;
};
void
QuicTestHandshakeSpecificLossPatterns(
const HandshakeLossPatternsArgs& Params
);
struct ShutdownDuringHandshakeArgs {
bool ClientShutdown;
};
void
QuicTestShutdownDuringHandshake(
const ShutdownDuringHandshakeArgs& Params
);
struct XdpMapModeArgs {
int Family;
uint16_t ServerPort;
uint16_t ClientPort;
bool UseCibir;
};
void QuicTestXdpMapModeHandshake(const XdpMapModeArgs& Params);
//
// Negative Handshake Tests
//
void
QuicTestConnectUnreachable(
const FamilyArgs& Params
);
void
QuicTestConnectInvalidAddress(
);
void
QuicTestConnectBadAlpn(
const FamilyArgs& Params
);
void
QuicTestConnectBadSni(
const FamilyArgs& Params
);
void
QuicTestConnectIpSni(
const FamilyArgs& Params
);
void
QuicTestConnectServerRejected(
const FamilyArgs& Params
);
void
QuicTestConnectExpiredServerCertificate(
const QUIC_CREDENTIAL_BLOB& Config
);
void
QuicTestConnectValidServerCertificate(
const QUIC_CREDENTIAL_BLOB& Config
);
void
QuicTestConnectValidClientCertificate(
const QUIC_CREDENTIAL_BLOB& Config
);
void
QuicTestConnectExpiredClientCertificate(
const QUIC_CREDENTIAL_BLOB& Config
);
void
QuicTestClientBlockedSourcePort(
const FamilyArgs& Params
);
#ifdef QUIC_API_ENABLE_PREVIEW_FEATURES
struct OddSizeVnTpParams {
bool TestServer;
uint8_t VnTpSize;
};
void
QuicTestVNTPOddSize(
const OddSizeVnTpParams& Params
);
void
QuicTestVNTPChosenVersionMismatch(
const bool& TestServer
);
void
QuicTestVNTPChosenVersionZero(
const bool& TestServer
);
void
QuicTestVNTPOtherVersionZero(
const bool& TestServer
);
struct ConnectionPoolCreateArgs {
int Family;
uint16_t NumberOfConnections;
bool XdpSupported;
bool TestCibirSupport;
};
void
QuicTestConnectionPoolCreate(
const ConnectionPoolCreateArgs& Params
);
#endif
//
// Post Handshake Tests
//
struct RebindPaddingArgs {
int Family;
uint16_t Padding;
};
void
QuicTestNatPortRebind_NoPadding(
const FamilyArgs& Params
);
void
QuicTestNatPortRebind_WithPadding(
const RebindPaddingArgs& Params
);
void
QuicTestNatAddrRebind_WithPadding(
const RebindPaddingArgs& Params
);
void
QuicTestNatAddrRebind_NoPadding(
const FamilyArgs& Params
);
void
QuicTestNatAddrRebind(
_In_ int Family,
_In_ uint16_t KeepAlivePaddingSize,
_In_ bool RebindDatapathAddr
);
void
QuicTestPathValidationTimeout(
const FamilyArgs& Params
);
void
QuicTestPathValidationLastPathClose(
const FamilyArgs& Params
);
void
QuicTestChangeMaxStreamID(
const FamilyArgs& Params
);
//
// Application Data Tests
//
void
QuicTestConnectAndPing(
_In_ int Family,
_In_ uint64_t Length,
_In_ uint32_t ConnectionCount,
_In_ uint32_t StreamCount,
_In_ uint32_t StreamBurstCount,
_In_ uint32_t StreamBurstDelayMs,
_In_ bool ServerStatelessRetry,
_In_ bool ClientRebind,
_In_ bool ClientZeroRtt,
_In_ bool ServerRejectZeroRtt,
_In_ bool UseSendBuffer,
_In_ bool UnidirectionalStreams,
_In_ bool ServerInitiatedStreams,
_In_ bool FifoScheduling,
_In_ bool SendUdpToQtipListener
);
struct Send0RttArgs1 {
int Family;
uint64_t Length;
uint32_t ConnectionCount;
uint32_t StreamCount;
bool UseSendBuffer;
bool UnidirectionalStreams;
};
void
QuicTestConnectAndPing_Send0Rtt(
const Send0RttArgs1& Params
);
struct Send0RttArgs2 {
int Family;
uint64_t Length;
};
void
QuicTestConnectAndPing_Reject0Rtt(
const Send0RttArgs2& Params
);
struct SendLargeArgs {
int Family;
bool UseSendBuffer;
bool UseZeroRtt;
};
void
QuicTestConnectAndPing_SendLarge(
const SendLargeArgs& Params
);
struct SendIntermittentlyArgs {
int Family;
uint64_t Length;
uint32_t BurstCount;
uint32_t BurstDelay;
bool UseSendBuffer;
};
void
QuicTestConnectAndPing_SendIntermittently(
const SendIntermittentlyArgs& Params
);
struct SendArgs {
int Family;
uint64_t Length;
uint32_t ConnectionCount;
uint32_t StreamCount;
bool UseSendBuffer;
bool UnidirectionalStreams;
bool ServerInitiatedStreams;
};
void
QuicTestConnectAndPing_Send(
const SendArgs& Params
);
//
// Other Data Tests
//
void
QuicTestConnectAndIdle(
const bool& EnableKeepAlive
);
void
QuicTestConnectAndIdleForDestCidChange(
void
);
void
QuicTestServerDisconnect(
void
);
void
QuicTestClientDisconnect(
const bool& StopListenerFirst
);
void
QuicTestStatelessResetKey(
void
);
void
QuicTestForceKeyUpdate(
const FamilyArgs& Params
);
void
QuicTestKeyUpdate(
const FamilyArgs& Params
);
struct KeyUpdateRandomLossArgs {
int Family;
uint8_t RandomLossPercentage;
};
void
QuicTestKeyUpdateRandomLoss(
const KeyUpdateRandomLossArgs& Params
);
typedef enum QUIC_ABORTIVE_TRANSFER_DIRECTION {
ShutdownBoth,
ShutdownSend,
ShutdownReceive
} QUIC_ABORTIVE_TRANSFER_DIRECTION;
typedef union QUIC_ABORTIVE_TRANSFER_FLAGS {
struct {
uint32_t DelayStreamCreation : 1;
uint32_t SendDataOnStream : 1;
uint32_t ClientShutdown : 1;
uint32_t DelayClientShutdown : 1;
uint32_t WaitForStream : 1;
uint32_t ShutdownDirection : 2;
uint32_t UnidirectionalStream : 1;
uint32_t PauseReceive : 1;
uint32_t PendReceive : 1;
};
uint32_t IntValue;
} QUIC_ABORTIVE_TRANSFER_FLAGS;
struct AbortiveArgs {
int Family;
QUIC_ABORTIVE_TRANSFER_FLAGS Flags;
};
void
QuicAbortiveTransfers(
const AbortiveArgs& Params
);
struct CancelOnLossArgs {
bool DropPackets;
};
void
QuicCancelOnLossSend(
const CancelOnLossArgs& Params
);
struct CidUpdateArgs {
int Family;
uint16_t Iterations;
};
void
QuicTestCidUpdate(
const CidUpdateArgs& Params
);
typedef enum QUIC_RECEIVE_RESUME_SHUTDOWN_TYPE {
NoShutdown,
GracefulShutdown,
AbortShutdown
} QUIC_RECEIVE_RESUME_SHUTDOWN_TYPE;
typedef enum QUIC_RECEIVE_RESUME_TYPE {
ReturnConsumedBytes,
ReturnStatusPending,
ReturnStatusContinue
} QUIC_RECEIVE_RESUME_TYPE;
struct ReceiveResumeArgs {
int Family;
int SendBytes;
int ConsumeBytes;
QUIC_RECEIVE_RESUME_SHUTDOWN_TYPE ShutdownType;
QUIC_RECEIVE_RESUME_TYPE PauseType;
bool PauseFirst;
};
void
QuicTestReceiveResume(
const ReceiveResumeArgs& Params
);
struct ReceiveResumeNoDataArgs {
int Family;
QUIC_RECEIVE_RESUME_SHUTDOWN_TYPE ShutdownType;
};
void
QuicTestReceiveResumeNoData(
const ReceiveResumeNoDataArgs& Params
);
void
QuicTestAckSendDelay(
const FamilyArgs& Params
);
void
QuicTestAbortReceive_Paused(
);
void
QuicTestAbortReceive_Pending(
);
void
QuicTestAbortReceive_Incomplete(
);
void
QuicTestSlowReceive(
);
void
QuicTestNthAllocFail(
);
void
QuicTestNthPacketDrop(
);
void
QuicTestStreamPriority(
);
void
QuicTestStreamPriorityInfiniteLoop(
);
void
QuicTestStreamDifferentAbortErrors(
);
void
QuicTestStreamAbortRecvFinRace(
);
void
QuicTestStreamAbortConnFlowControl(
);
void
QuicTestStreamReliableReset(
);
void
QuicTestStreamReliableResetMultipleSends(
);
void
QuicTestStreamMultiReceive(
);
void
QuicTestStreamBlockUnblockConnFlowControl_Unidi(
);
void
QuicTestStreamBlockUnblockConnFlowControl_Bidi(
);
void
QuicTestOperationPriority(
);
void
QuicTestConnectionPriority(
);
void
QuicTestConnectionStreamStartSendPriority(
);
void
QuicTestEcn(
const FamilyArgs& Params
);
struct AppProvidedBuffersConfig {
uint32_t StreamStartBuffersNum;
uint32_t StreamStartBuffersSize;
uint32_t AdditionalBuffersNum;
uint32_t AdditionalBuffersSize;
};
void
QuicTestStreamAppProvidedBuffers_ClientSend(
const AppProvidedBuffersConfig& BufferConfig
);
void
QuicTestStreamAppProvidedBuffers_ServerSend(
const AppProvidedBuffersConfig& BufferConfig
);
void
QuicTestStreamAppProvidedBuffersOutOfSpace_ClientSend_AbortStream(
const AppProvidedBuffersConfig& BufferConfig
);
void
QuicTestStreamAppProvidedBuffersOutOfSpace_ClientSend_ProvideMoreBuffer(
const AppProvidedBuffersConfig& BufferConfig
);
void
QuicTestStreamAppProvidedBuffersOutOfSpace_ServerSend_AbortStream(
const AppProvidedBuffersConfig& BufferConfig
);
void
QuicTestStreamAppProvidedBuffersOutOfSpace_ServerSend_ProvideMoreBuffer(
const AppProvidedBuffersConfig& BufferConfig
);
//
// QuicDrill tests
//
void
QuicDrillTestVarIntEncoder(
);
struct DrillInitialPacketCidArgs {
int Family;
bool SourceOrDest;
bool ActualCidLengthValid;
bool ShortCidLength;
bool CidLengthFieldValid;
};
void
QuicDrillTestInitialCid(
const DrillInitialPacketCidArgs& Params
);
struct DrillInitialPacketTokenArgs {
int Family;
};
void
QuicDrillTestInitialToken(
const DrillInitialPacketTokenArgs& Params
);
void
QuicDrillTestServerVNPacket(
const DrillInitialPacketTokenArgs& Params
);
void
QuicDrillTestKeyUpdateDuringHandshake(
const DrillInitialPacketTokenArgs& Params
);
//
// Datagram tests
//
struct DatagramNegotiationArgs {
int Family;
bool DatagramReceiveEnabled;