QuicSpdyClientStreamTest()
: connection_(new StrictMock<MockConnection>(
false, SupportedVersions(GetParam()))),
- session_(QuicServerId("example.com", 80, false, PRIVACY_MODE_DISABLED),
- DefaultQuicConfig(),
- connection_,
- &crypto_config_),
+ session_(DefaultQuicConfig(), connection_),
body_("hello world") {
+ session_.InitializeSession(
+ QuicServerId("example.com", 80, false, PRIVACY_MODE_DISABLED),
+ &crypto_config_);
crypto_config_.SetDefaults();
headers_.SetResponseFirstlineFromStringPieces("HTTP/1.1", "200", "Ok");
QuicStreamFrame frame(3, false, 3, MakeIOVector("asd"));
EXPECT_FALSE(stream_->write_side_closed());
- EXPECT_TRUE(stream_->OnStreamFrame(frame));
+ stream_->OnStreamFrame(frame);
EXPECT_TRUE(stream_->write_side_closed());
}