#include "media/cast/logging/encoding_event_subscriber.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/memory/ref_counted.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/time/tick_clock.h"
#include "media/base/fake_single_thread_task_runner.h"
#include "media/cast/cast_environment.h"
#include "media/cast/logging/logging_defines.h"
#include "testing/gtest/include/gtest/gtest.h"
AggregatedFrameEvent;
AggregatedPacketEvent;
BasePacketEvent;
LogMetadata;
namespace {
int64_t InMilliseconds(base::TimeTicks event_time) { … }
}
namespace media {
namespace cast {
class EncodingEventSubscriberTest : public ::testing::Test { … };
TEST_F(EncodingEventSubscriberTest, FrameEventTruncating) { … }
TEST_F(EncodingEventSubscriberTest, PacketEventTruncating) { … }
TEST_F(EncodingEventSubscriberTest, TooManyProtos) { … }
TEST_F(EncodingEventSubscriberTest, EventFiltering) { … }
TEST_F(EncodingEventSubscriberTest, FrameEvent) { … }
TEST_F(EncodingEventSubscriberTest, FrameEventDelay) { … }
TEST_F(EncodingEventSubscriberTest, FrameEventSize) { … }
TEST_F(EncodingEventSubscriberTest, MultipleFrameEvents) { … }
TEST_F(EncodingEventSubscriberTest, PacketEvent) { … }
TEST_F(EncodingEventSubscriberTest, MultiplePacketEventsForPacket) { … }
TEST_F(EncodingEventSubscriberTest, MultiplePacketEventsForFrame) { … }
TEST_F(EncodingEventSubscriberTest, MultiplePacketEvents) { … }
TEST_F(EncodingEventSubscriberTest, FirstRtpTimeTicks) { … }
TEST_F(EncodingEventSubscriberTest, RelativeRtpTimeTicksWrapAround) { … }
TEST_F(EncodingEventSubscriberTest, MaxEventsPerProto) { … }
}
}