| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef MEDIA_BASE_MOCK_READER_H_ | 5 #ifndef MEDIA_BASE_MOCK_READER_H_ |
| 6 #define MEDIA_BASE_MOCK_READER_H_ | 6 #define MEDIA_BASE_MOCK_READER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Whether or not the callback was executed. | 63 // Whether or not the callback was executed. |
| 64 bool called_; | 64 bool called_; |
| 65 | 65 |
| 66 // Whether or not this reader was expecting a callback. | 66 // Whether or not this reader was expecting a callback. |
| 67 bool expecting_call_; | 67 bool expecting_call_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(MockReader); | 69 DISALLOW_COPY_AND_ASSIGN(MockReader); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 // Commonly used reader types. | 72 // Commonly used reader types. |
| 73 typedef MockReader<DemuxerStream, Buffer> DemuxerStreamReader; | 73 typedef MockReader<DemuxerStream, DecoderBuffer> DemuxerStreamReader; |
| 74 | 74 |
| 75 } // namespace media | 75 } // namespace media |
| 76 | 76 |
| 77 #endif // MEDIA_BASE_MOCK_READER_H_ | 77 #endif // MEDIA_BASE_MOCK_READER_H_ |
| OLD | NEW |