| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/time.h" | |
| 8 #include "base/waitable_event.h" | 7 #include "base/waitable_event.h" |
| 9 #include "media/base/pipeline_impl.h" | 8 #include "media/base/pipeline_impl.h" |
| 10 #include "media/base/media_format.h" | 9 #include "media/base/media_format.h" |
| 11 #include "media/base/filters.h" | 10 #include "media/base/filters.h" |
| 12 #include "media/base/factory.h" | 11 #include "media/base/factory.h" |
| 13 #include "media/base/filter_host.h" | 12 #include "media/base/filter_host.h" |
| 14 #include "media/base/mock_media_filters.h" | 13 #include "media/base/mock_media_filters.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 15 |
| 17 using media::FilterFactory; | 16 using media::FilterFactory; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 config.has_video = false; | 143 config.has_video = false; |
| 145 AddAllMockFilters(c, &config); | 144 AddAllMockFilters(c, &config); |
| 146 InitializationHelper h; | 145 InitializationHelper h; |
| 147 h.Start(&p, c, url, media::PIPELINE_ERROR_COULD_NOT_RENDER); | 146 h.Start(&p, c, url, media::PIPELINE_ERROR_COULD_NOT_RENDER); |
| 148 p.Stop(); | 147 p.Stop(); |
| 149 } | 148 } |
| 150 | 149 |
| 151 // TODO(ralphl): Add a unit test that makes sure that the mock audio filter | 150 // TODO(ralphl): Add a unit test that makes sure that the mock audio filter |
| 152 // is actually called on a SetVolume() call to the pipeline. I almost checked | 151 // is actually called on a SetVolume() call to the pipeline. I almost checked |
| 153 // in code that broke this, but all unit tests were passing. | 152 // in code that broke this, but all unit tests were passing. |
| OLD | NEW |