mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-08 09:42:06 +03:00
Change Buf -> BufPtr and RawBuf -> Buf
Summary: Previously, * `RawBuf` was a typealias for `std::unique_ptr<folly::IOBuf>` * `Buf` was a typealias for `folly::IOBuf` In this diff, * `Buf` is a typealias for `folly::IOBuf` * `BufPtr` is a typealias for `std::unique_ptr<folly::IOBuf>` Reviewed By: hanidamlaj Differential Revision: D73206576 fbshipit-source-id: 454bf6ccfce3d6571e5e931889263ed98cc24af3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
153668148e
commit
41667ff7c5
@@ -474,7 +474,7 @@ TEST_P(QuicPacketSchedulerTest, CryptoPaddingRetransmissionClientInitial) {
|
||||
"CryptoOnlyScheduler")
|
||||
.cryptoFrames())
|
||||
.build();
|
||||
Buf helloBuf = folly::IOBuf::copyBuffer("chlo");
|
||||
BufPtr helloBuf = folly::IOBuf::copyBuffer("chlo");
|
||||
ChainedByteRangeHead clientHelloData(helloBuf);
|
||||
conn.cryptoState->initialStream.lossBuffer.push_back(
|
||||
WriteStreamBuffer{std::move(clientHelloData), 0, false});
|
||||
@@ -505,8 +505,8 @@ TEST_P(QuicPacketSchedulerTest, CryptoSchedulerOnlySingleLossFits) {
|
||||
CryptoStreamScheduler scheduler(
|
||||
conn, *getCryptoStream(*conn.cryptoState, EncryptionLevel::Handshake));
|
||||
|
||||
Buf helloBuf = folly::IOBuf::copyBuffer("shlo");
|
||||
Buf certBuf = folly::IOBuf::copyBuffer(
|
||||
BufPtr helloBuf = folly::IOBuf::copyBuffer("shlo");
|
||||
BufPtr certBuf = folly::IOBuf::copyBuffer(
|
||||
"certificatethatisverylongseriouslythisisextremelylongandcannotfitintoapacket");
|
||||
|
||||
conn.cryptoState->handshakeStream.lossBuffer.emplace_back(
|
||||
@@ -540,7 +540,7 @@ TEST_P(QuicPacketSchedulerTest, CryptoWritePartialLossBuffer) {
|
||||
"CryptoOnlyScheduler")
|
||||
.cryptoFrames())
|
||||
.build();
|
||||
Buf lossBuffer =
|
||||
BufPtr lossBuffer =
|
||||
folly::IOBuf::copyBuffer("return the special duration value max");
|
||||
conn.cryptoState->initialStream.lossBuffer.emplace_back(
|
||||
ChainedByteRangeHead(lossBuffer), 0, false);
|
||||
@@ -971,7 +971,7 @@ TEST_P(QuicPacketSchedulerTest, CloneSchedulerHasHandshakeDataAndAcks) {
|
||||
|
||||
// Add some crypto data for the outstanding packet to make it look legit.
|
||||
// This is so cloning scheduler can actually copy something.
|
||||
Buf cryptoBuf = folly::IOBuf::copyBuffer("test");
|
||||
BufPtr cryptoBuf = folly::IOBuf::copyBuffer("test");
|
||||
ChainedByteRangeHead cryptoRch(cryptoBuf);
|
||||
getCryptoStream(*conn.cryptoState, EncryptionLevel::Handshake)
|
||||
->retransmissionBuffer.emplace(
|
||||
|
Reference in New Issue
Block a user