From 8c1be4e0311d52f07fe16fc091862957757dc002 Mon Sep 17 00:00:00 2001 From: "scherkus@chromium.org" Date: Mon, 22 Jun 2009 23:24:52 +0000 Subject: Removed message loop from MockPipeline as it is no longer needed. TEST=none BUG=none Review URL: http://codereview.chromium.org/145022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18984 0039d316-1c4b-4281-b951-d872f2087c98 --- media/base/mock_pipeline.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'media/base') diff --git a/media/base/mock_pipeline.h b/media/base/mock_pipeline.h index dd31ca6..01061c3 100644 --- a/media/base/mock_pipeline.h +++ b/media/base/mock_pipeline.h @@ -130,20 +130,6 @@ class MockPipeline : public media::Pipeline { total_bytes_ = 0; } - // Runs all queued tasks until there are no more. - // - // Although it is possible for tasks to run indefinitely (executing tasks post - // additional tasks), such situations should be treated as a bug. Since the - // pipeline is request/pull-based, only enough tasks to satisfy the request - // should ever be executed. - void RunAllTasks() { - message_loop_.RunAllPending(); - } - - void PostTask(Task* task) { - message_loop_.PostTask(FROM_HERE, task); - } - void Error(media::PipelineError error) { initialized_ = false; error_ = error; @@ -187,8 +173,6 @@ class MockPipeline : public media::Pipeline { int64 buffered_bytes_; int64 total_bytes_; - MessageLoop message_loop_; - DISALLOW_COPY_AND_ASSIGN(MockPipeline); }; -- cgit v1.1