| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 // The corresponding FilterHost implementation for MockPipeline. Maintains a | 5 // The corresponding FilterHost implementation for MockPipeline. Maintains a |
| 6 // reference to the parent MockPipeline and a reference to the Filter its | 6 // reference to the parent MockPipeline and a reference to the Filter its |
| 7 // hosting. Common usage is to check if the hosted filter has initialized by | 7 // hosting. Common usage is to check if the hosted filter has initialized by |
| 8 // calling IsInitialized(). | 8 // calling IsInitialized(). |
| 9 | 9 |
| 10 #ifndef MEDIA_BASE_MOCK_FILTER_HOST_H_ | 10 #ifndef MEDIA_BASE_MOCK_FILTER_HOST_H_ |
| 11 #define MEDIA_BASE_MOCK_FILTER_HOST_H_ | 11 #define MEDIA_BASE_MOCK_FILTER_HOST_H_ |
| 12 | 12 |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/scoped_ptr.h" |
| 15 #include "media/base/factory.h" | 16 #include "media/base/factory.h" |
| 16 #include "media/base/filter_host.h" | 17 #include "media/base/filter_host.h" |
| 17 #include "media/base/filters.h" | 18 #include "media/base/filters.h" |
| 18 #include "media/base/media_format.h" | 19 #include "media/base/media_format.h" |
| 19 #include "media/base/mock_pipeline.h" | 20 #include "media/base/mock_pipeline.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 22 |
| 22 namespace media { | 23 namespace media { |
| 23 | 24 |
| 24 template <class Filter> | 25 template <class Filter> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 108 |
| 108 // Tracks if the filter has executed InitializationComplete(). | 109 // Tracks if the filter has executed InitializationComplete(). |
| 109 bool initialized_; | 110 bool initialized_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(MockFilterHost); | 112 DISALLOW_COPY_AND_ASSIGN(MockFilterHost); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace media | 115 } // namespace media |
| 115 | 116 |
| 116 #endif // MEDIA_BASE_MOCK_FILTER_HOST_H_ | 117 #endif // MEDIA_BASE_MOCK_FILTER_HOST_H_ |
| OLD | NEW |