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/platform_thread.h" | |
8 #include "base/time.h" | 7 #include "base/time.h" |
9 #include "base/waitable_event.h" | 8 #include "base/waitable_event.h" |
10 #include "media/base/pipeline_impl.h" | 9 #include "media/base/pipeline_impl.h" |
11 #include "media/base/media_format.h" | 10 #include "media/base/media_format.h" |
12 #include "media/base/filters.h" | 11 #include "media/base/filters.h" |
13 #include "media/base/factory.h" | 12 #include "media/base/factory.h" |
14 #include "media/base/filter_host.h" | 13 #include "media/base/filter_host.h" |
15 #include "media/base/mock_media_filters.h" | 14 #include "media/base/mock_media_filters.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
17 | 16 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 config.has_video = false; | 144 config.has_video = false; |
146 AddAllMockFilters(c, &config); | 145 AddAllMockFilters(c, &config); |
147 InitializationHelper h; | 146 InitializationHelper h; |
148 h.Start(&p, c, url, media::PIPELINE_ERROR_COULD_NOT_RENDER); | 147 h.Start(&p, c, url, media::PIPELINE_ERROR_COULD_NOT_RENDER); |
149 p.Stop(); | 148 p.Stop(); |
150 } | 149 } |
151 | 150 |
152 // TODO(ralphl): Add a unit test that makes sure that the mock audio filter | 151 // TODO(ralphl): Add a unit test that makes sure that the mock audio filter |
153 // is actually called on a SetVolume() call to the pipeline. I almost checked | 152 // is actually called on a SetVolume() call to the pipeline. I almost checked |
154 // in code that broke this, but all unit tests were passing. | 153 // in code that broke this, but all unit tests were passing. |
OLD | NEW |