Skip to content

Commit

Permalink
Fix Internal Build Referencing Preview Features (#3982)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks committed Dec 4, 2023
1 parent 778a3c6 commit 3861a76
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/test/bin/quic_gtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2126,6 +2126,7 @@ TEST(Misc, StreamBlockUnblockBidiConnFlowControl) {
}
}

#ifdef QUIC_PARAM_STREAM_RELIABLE_OFFSET
TEST(Misc, StreamReliableReset) {
TestLogger Logger("StreamReliableReset");
if (TestingKernelMode) {
Expand All @@ -2143,6 +2144,7 @@ TEST(Misc, StreamReliableResetMultipleSends) {
QuicTestStreamReliableResetMultipleSends();
}
}
#endif // QUIC_PARAM_STREAM_RELIABLE_OFFSET

TEST(Misc, StreamBlockUnblockUnidiConnFlowControl) {
TestLogger Logger("StreamBlockUnblockUnidiConnFlowControl");
Expand Down
2 changes: 2 additions & 0 deletions src/test/bin/winkernel/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,7 @@ QuicTestCtlEvtIoDeviceControl(
Params->CustomCertValidationParams.AcceptCert,
Params->CustomCertValidationParams.AsyncValidation));
break;

#ifdef QUIC_API_ENABLE_PREVIEW_FEATURES
case IOCTL_QUIC_RELIABLE_RESET_NEGOTIATION:
CXPLAT_FRE_ASSERT(Params != nullptr);
Expand All @@ -1499,6 +1500,7 @@ QuicTestCtlEvtIoDeviceControl(
Params->FeatureNegotiationParams.ServerSupport,
Params->FeatureNegotiationParams.ClientSupport));
break;

case IOCTL_QUIC_ONE_WAY_DELAY_NEGOTIATION:
CXPLAT_FRE_ASSERT(Params != nullptr);
QuicTestCtlRun(
Expand Down
3 changes: 3 additions & 0 deletions src/test/lib/ApiTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4998,6 +4998,8 @@ void QuicTestStreamParam()
TEST_EQUAL(Length, sizeof(QUIC_STREAM_STATISTICS));
}
}

#ifdef QUIC_PARAM_STREAM_RELIABLE_OFFSET
//
// QUIC_PARAM_STREAM_RELIABLE_OFFSET
// QUIC_PARAM_STREAM_RELIABLE_OFFSET_RECV
Expand Down Expand Up @@ -5066,6 +5068,7 @@ void QuicTestStreamParam()
&Buffer));
}
}
#endif // QUIC_PARAM_STREAM_RELIABLE_OFFSET
}

void
Expand Down
4 changes: 3 additions & 1 deletion src/test/lib/DataTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3336,7 +3336,7 @@ struct StreamReliableReset {
}
};


#ifdef QUIC_PARAM_STREAM_RELIABLE_OFFSET
void
QuicTestStreamReliableReset(
)
Expand Down Expand Up @@ -3410,6 +3410,7 @@ QuicTestStreamReliableReset(
TEST_TRUE(Context.ShutdownErrorCode == AbortSendShutdownErrorCode);
}
}

void
QuicTestStreamReliableResetMultipleSends(
)
Expand Down Expand Up @@ -3492,3 +3493,4 @@ QuicTestStreamReliableResetMultipleSends(
// Test Error code matches what we sent.
TEST_TRUE(Context.ShutdownErrorCode == AbortShutdownErrorCode);
}
#endif // QUIC_PARAM_STREAM_RELIABLE_OFFSET
6 changes: 6 additions & 0 deletions src/test/lib/EventTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,7 @@ QuicTestValidateStreamEvents9(
{
TestScopeLogger ScopeLogger(__FUNCTION__);

#ifdef QUIC_PARAM_STREAM_RELIABLE_OFFSET
MsQuicSettings Settings;
Settings.SetPeerBidiStreamCount(1).SetMinimumMtu(1280).SetMaximumMtu(1280);
Settings.SetReliableResetEnabled(true);
Expand Down Expand Up @@ -1575,6 +1576,11 @@ QuicTestValidateStreamEvents9(
TEST_TRUE(Server.Complete.WaitTimeout(1000));
} // Stream scope
} // Connections scope
#else // QUIC_PARAM_STREAM_RELIABLE_OFFSET
UNREFERENCED_PARAMETER(Registration);
UNREFERENCED_PARAMETER(Listener);
UNREFERENCED_PARAMETER(ServerLocalAddr);
#endif // QUIC_PARAM_STREAM_RELIABLE_OFFSET
}

void QuicTestValidateStreamEvents(uint32_t Test)
Expand Down

0 comments on commit 3861a76

Please sign in to comment.