chromium/net/third_party/quiche/src/quiche/quic/core/frames/quic_frames_test.cc

// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <sstream>
#include <vector>

#include "quiche/quic/core/frames/quic_ack_frame.h"
#include "quiche/quic/core/frames/quic_blocked_frame.h"
#include "quiche/quic/core/frames/quic_connection_close_frame.h"
#include "quiche/quic/core/frames/quic_frame.h"
#include "quiche/quic/core/frames/quic_goaway_frame.h"
#include "quiche/quic/core/frames/quic_mtu_discovery_frame.h"
#include "quiche/quic/core/frames/quic_new_connection_id_frame.h"
#include "quiche/quic/core/frames/quic_padding_frame.h"
#include "quiche/quic/core/frames/quic_ping_frame.h"
#include "quiche/quic/core/frames/quic_rst_stream_frame.h"
#include "quiche/quic/core/frames/quic_stop_waiting_frame.h"
#include "quiche/quic/core/frames/quic_stream_frame.h"
#include "quiche/quic/core/frames/quic_window_update_frame.h"
#include "quiche/quic/core/quic_interval.h"
#include "quiche/quic/core/quic_types.h"
#include "quiche/quic/platform/api/quic_expect_bug.h"
#include "quiche/quic/platform/api/quic_test.h"
#include "quiche/quic/test_tools/quic_test_utils.h"

namespace quic {
namespace test {
namespace {

class QuicFramesTest : public QuicTest {};

TEST_F(QuicFramesTest, AckFrameToString) {}

TEST_F(QuicFramesTest, BigAckFrameToString) {}

TEST_F(QuicFramesTest, PaddingFrameToString) {}

TEST_F(QuicFramesTest, RstStreamFrameToString) {}

TEST_F(QuicFramesTest, StopSendingFrameToString) {}

TEST_F(QuicFramesTest, NewConnectionIdFrameToString) {}

TEST_F(QuicFramesTest, RetireConnectionIdFrameToString) {}

TEST_F(QuicFramesTest, StreamsBlockedFrameToString) {}

TEST_F(QuicFramesTest, MaxStreamsFrameToString) {}

TEST_F(QuicFramesTest, ConnectionCloseFrameToString) {}

TEST_F(QuicFramesTest, TransportConnectionCloseFrameToString) {}

TEST_F(QuicFramesTest, GoAwayFrameToString) {}

TEST_F(QuicFramesTest, WindowUpdateFrameToString) {}

TEST_F(QuicFramesTest, BlockedFrameToString) {}

TEST_F(QuicFramesTest, PingFrameToString) {}

TEST_F(QuicFramesTest, HandshakeDoneFrameToString) {}

TEST_F(QuicFramesTest, QuicAckFreuqncyFrameToString) {}

TEST_F(QuicFramesTest, StreamFrameToString) {}

TEST_F(QuicFramesTest, StopWaitingFrameToString) {}

TEST_F(QuicFramesTest, IsAwaitingPacket) {}

TEST_F(QuicFramesTest, AddPacket) {}

TEST_F(QuicFramesTest, AddInterval) {}

TEST_F(QuicFramesTest, AddAdjacentForward) {}

TEST_F(QuicFramesTest, AddAdjacentReverse) {}

TEST_F(QuicFramesTest, RemoveSmallestInterval) {}

TEST_F(QuicFramesTest, CopyQuicFrames) {}

class PacketNumberQueueTest : public QuicTest {};

// Tests that a queue contains the expected data after calls to Add().
TEST_F(PacketNumberQueueTest, AddRange) {}

// Tests Contains function
TEST_F(PacketNumberQueueTest, Contains) {}

// Tests that a queue contains the expected data after calls to RemoveUpTo().
TEST_F(PacketNumberQueueTest, Removal) {}

// Tests that a queue is empty when all of its elements are removed.
TEST_F(PacketNumberQueueTest, Empty) {}

// Tests that logging the state of a PacketNumberQueue does not crash.
TEST_F(PacketNumberQueueTest, LogDoesNotCrash) {}

// Tests that the iterators returned from a packet queue iterate over the queue.
TEST_F(PacketNumberQueueTest, Iterators) {}

TEST_F(PacketNumberQueueTest, ReversedIterators) {}

TEST_F(PacketNumberQueueTest, IntervalLengthAndRemoveInterval) {}

}  // namespace
}  // namespace test
}  // namespace quic