#include "content/renderer/media/batching_media_log.h"
#include "base/memory/raw_ptr.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/task_environment.h"
#include "base/test/test_mock_time_task_runner.h"
#include "content/public/test/mock_render_thread.h"
#include "media/base/buffering_state.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
namespace content {
class BatchingMediaLogTest;
class TestEventHandler : public BatchingMediaLog::EventHandler { … };
class BatchingMediaLogTest : public testing::Test { … };
void TestEventHandler::SendQueuedMediaEvents(
std::vector<media::MediaLogRecord> events) { … }
void TestEventHandler::OnWebMediaPlayerDestroyed() { … }
TEST_F(BatchingMediaLogTest, ThrottleSendingEvents) { … }
TEST_F(BatchingMediaLogTest, LimitEvents) { … }
TEST_F(BatchingMediaLogTest, EventSentWithoutDelayAfterIpcInterval) { … }
TEST_F(BatchingMediaLogTest, DurationChanged) { … }
TEST_F(BatchingMediaLogTest, PlayPause) { … }
TEST_F(BatchingMediaLogTest, BufferingStateChanged) { … }
TEST_F(BatchingMediaLogTest, OnlyKeepsFirstErrorStringMessage) { … }
}