#include "media/cast/logging/stats_event_subscriber.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/memory/ref_counted.h"
#include "base/rand_util.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
#include "base/values.h"
#include "media/base/fake_single_thread_task_runner.h"
#include "media/cast/cast_environment.h"
#include "media/cast/logging/logging_defines.h"
#include "media/cast/test/fake_receiver_time_offset_estimator.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const int kReceiverOffsetSecs = …;
}
namespace media {
namespace cast {
class StatsEventSubscriberTest : public ::testing::Test { … };
TEST_F(StatsEventSubscriberTest, CaptureEncode) { … }
TEST_F(StatsEventSubscriberTest, Encode) { … }
TEST_F(StatsEventSubscriberTest, Decode) { … }
TEST_F(StatsEventSubscriberTest, PlayoutDelay) { … }
TEST_F(StatsEventSubscriberTest, E2ELatency) { … }
TEST_F(StatsEventSubscriberTest, Packets) { … }
bool CheckHistogramHasValue(const base::Value::List& values,
const std::string& bucket,
int expected_count) { … }
TEST_F(StatsEventSubscriberTest, Histograms) { … }
}
}