1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-25 15:43:13 +03:00

Move the management of the certificate verifier and the fizz::client::FizzClientContext object to FizzClientContext (#63)

Summary:
This allows to remove various fizz specific parts of the API.
Pull Request resolved: https://github.com/facebookincubator/mvfst/pull/63

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

 ---
## Proxygen Canary
Traffic Canary: https://our.intern.facebook.com/intern/traffic/canary?fbid=2326668697645016
* elb.prod.sju1c01 - binary - 2019-11-14 15:00 - https://fburl.com/dyndash/7m8qfbm6
* flb.prod.flhe2c01 - binary - 2019-11-14 15:00 - https://fburl.com/dyndash/alba0iv1
* olb.prod.rpnb0c01 - binary - 2019-11-14 15:00 - https://fburl.com/dyndash/f5eogqg5
* slb.prod_regional.rodn0c00 - binary - 2019-11-14 15:00 - https://fburl.com/dyndash/vtit218f
 ---

Reviewed By: yangchi

Differential Revision: D18303967

Pulled By: mjoras

fbshipit-source-id: 9bb7ed6ab608f9c2d1e8d5b0b533bda69f5d9a71
This commit is contained in:
Amaury Séchet
2019-11-18 09:26:10 -08:00
committed by Facebook Github Bot
parent 5de60375b3
commit ccf9ca475e
15 changed files with 170 additions and 107 deletions

View File

@@ -29,7 +29,7 @@ using PeekIterator = std::deque<StreamBuffer>::const_iterator;
class QuicStreamFunctionsTest : public Test {
public:
QuicStreamFunctionsTest()
: conn(std::make_shared<FizzClientQuicHandshakeContext>()) {}
: conn(FizzClientQuicHandshakeContext::Builder().build()) {}
void SetUp() override {
conn.flowControlState.peerAdvertisedInitialMaxStreamOffsetBidiLocal =
@@ -1088,7 +1088,7 @@ TEST_F(QuicStreamFunctionsTest, IsBidirectionalStream) {
TEST_F(QuicStreamFunctionsTest, IsSendingStream) {
QuicClientConnectionState clientState(
std::make_shared<FizzClientQuicHandshakeContext>());
FizzClientQuicHandshakeContext::Builder().build());
QuicServerConnectionState serverState;
QuicNodeType nodeType;
StreamId id;
@@ -1116,7 +1116,7 @@ TEST_F(QuicStreamFunctionsTest, IsSendingStream) {
TEST_F(QuicStreamFunctionsTest, IsReceivingStream) {
QuicClientConnectionState clientState(
std::make_shared<FizzClientQuicHandshakeContext>());
FizzClientQuicHandshakeContext::Builder().build());
QuicServerConnectionState serverState;
QuicNodeType nodeType;
StreamId id;