diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-22 23:24:52 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-22 23:24:52 +0000 |
commit | 8c1be4e0311d52f07fe16fc091862957757dc002 (patch) | |
tree | a24bf3c06619ade183764c6240d1dfa6c10e52fe /media/base | |
parent | 8d4139f6fe7042310a9886dfb09c740e484ecfbb (diff) | |
download | chromium_src-8c1be4e0311d52f07fe16fc091862957757dc002.zip chromium_src-8c1be4e0311d52f07fe16fc091862957757dc002.tar.gz chromium_src-8c1be4e0311d52f07fe16fc091862957757dc002.tar.bz2 |
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
Diffstat (limited to 'media/base')
-rw-r--r-- | media/base/mock_pipeline.h | 16 |
1 files changed, 0 insertions, 16 deletions
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); }; |