This source file includes following definitions.
- SetNextStreamId
- SetMaxOpenStreams
- GetHeadersStream
- GetWriteblockedStreams
- GetIncomingDataStream
#include "net/quic/test_tools/quic_session_peer.h"
#include "net/quic/quic_session.h"
#include "net/quic/reliable_quic_stream.h"
namespace net {
namespace test {
void QuicSessionPeer::SetNextStreamId(QuicSession* session, QuicStreamId id) {
session->next_stream_id_ = id;
}
void QuicSessionPeer::SetMaxOpenStreams(QuicSession* session,
uint32 max_streams) {
session->max_open_streams_ = max_streams;
}
QuicHeadersStream* QuicSessionPeer::GetHeadersStream(QuicSession* session) {
return session->headers_stream_.get();
}
QuicWriteBlockedList* QuicSessionPeer::GetWriteblockedStreams(
QuicSession* session) {
return &session->write_blocked_streams_;
}
QuicDataStream* QuicSessionPeer::GetIncomingDataStream(
QuicSession* session,
QuicStreamId stream_id) {
return session->GetIncomingDataStream(stream_id);
}
}
}