1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-08-08 09:42:06 +03:00

Remove throws from CryptoFactory

Summary: Continuing the theme, removing them from the CryptoFactory and translating to Expected.

Reviewed By: kvtsoy, jbeshay

Differential Revision: D74676120

fbshipit-source-id: 715b497e68a4e3004811038cba479c443d5398fd
This commit is contained in:
Matt Joras
2025-05-16 14:19:45 -07:00
committed by Facebook GitHub Bot
parent c088421ecf
commit bf71d17f2c
36 changed files with 617 additions and 300 deletions

View File

@@ -105,7 +105,7 @@ class QuicTransportTest : public Test {
.WillRepeatedly(
Invoke([&](auto& buf, auto, auto) { return buf->clone(); }));
transport_->getConnectionState().oneRttWriteCipher = std::move(aead);
auto tempHeaderCipher = test::createNoOpHeaderCipher();
auto tempHeaderCipher = test::createNoOpHeaderCipher().value();
tempHeaderCipher->setDefaultKey();
transport_->getConnectionState().oneRttWriteHeaderCipher =
std::move(tempHeaderCipher);