chromium/third_party/openscreen/src/cast/streaming/impl/packet_receive_stats_tracker_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cast/streaming/impl/packet_receive_stats_tracker.h"

#include <chrono>
#include <limits>

#include "cast/streaming/public/constants.h"
#include "gtest/gtest.h"
#include "util/chrono_helpers.h"

namespace openscreen::cast {
namespace {

// Returns a RtcpReportBlock with all fields set to known values to see how the
// fields are modified by functions called during the tests.
RtcpReportBlock GetSentinel() {}

// Run gtest expectations, that no fields were changed.
#define EXPECT_FIELDS_NOT_POPULATED(x)

// Run gtest expectations, that only the fields changed by
// PacketReceiveStatsTracker::PopulateNextReport() were changed.
#define EXPECT_FIELDS_POPULATED(x)

TEST(PacketReceiveStatsTrackerTest, DoesNotPopulateReportWithoutData) {}

TEST(PacketReceiveStatsTrackerTest, PopulatesReportWithOnePacketTracked) {}

TEST(PacketReceiveStatsTrackerTest, WhenReceivingAllPackets) {}

TEST(PacketReceiveStatsTrackerTest, WhenReceivingAboutHalfThePackets) {}

TEST(PacketReceiveStatsTrackerTest, ComputesJitterCorrectly) {}

}  // namespace
}  // namespace openscreen::cast