#include "quiche/quic/core/http/quic_send_control_stream.h"
#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/escaping.h"
#include "absl/strings/string_view.h"
#include "quiche/quic/core/crypto/null_encrypter.h"
#include "quiche/quic/platform/api/quic_flags.h"
#include "quiche/quic/test_tools/quic_config_peer.h"
#include "quiche/quic/test_tools/quic_spdy_session_peer.h"
#include "quiche/quic/test_tools/quic_test_utils.h"
#include "quiche/common/test_tools/quiche_test_utils.h"
namespace quic {
namespace test {
namespace {
_;
AnyNumber;
Invoke;
StrictMock;
struct TestParams { … };
std::string PrintToString(const TestParams& tp) { … }
std::vector<TestParams> GetTestParams() { … }
class QuicSendControlStreamTest : public QuicTestWithParam<TestParams> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(QuicSendControlStreamTest, WriteSettings) { … }
TEST_P(QuicSendControlStreamTest, WriteSettingsOnlyOnce) { … }
TEST_P(QuicSendControlStreamTest, SendOriginFrameOnce) { … }
TEST_P(QuicSendControlStreamTest, WritePriorityBeforeSettings) { … }
TEST_P(QuicSendControlStreamTest, CloseControlStream) { … }
TEST_P(QuicSendControlStreamTest, ReceiveDataOnSendControlStream) { … }
TEST_P(QuicSendControlStreamTest, SendGoAway) { … }
}
}
}