| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FORMATS_COMMON_STREAM_PARSER_TEST_BASE_H_ | 5 #ifndef MEDIA_FORMATS_COMMON_STREAM_PARSER_TEST_BASE_H_ |
| 6 #define MEDIA_FORMATS_COMMON_STREAM_PARSER_TEST_BASE_H_ | 6 #define MEDIA_FORMATS_COMMON_STREAM_PARSER_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 size_t piece_size); | 58 size_t piece_size); |
| 59 void OnInitDone(const StreamParser::InitParameters& params); | 59 void OnInitDone(const StreamParser::InitParameters& params); |
| 60 bool OnNewConfig(const AudioDecoderConfig& audio_config, | 60 bool OnNewConfig(const AudioDecoderConfig& audio_config, |
| 61 const VideoDecoderConfig& video_config, | 61 const VideoDecoderConfig& video_config, |
| 62 const StreamParser::TextTrackConfigMap& text_config); | 62 const StreamParser::TextTrackConfigMap& text_config); |
| 63 bool OnNewBuffers(const StreamParser::BufferQueue& audio_buffers, | 63 bool OnNewBuffers(const StreamParser::BufferQueue& audio_buffers, |
| 64 const StreamParser::BufferQueue& video_buffers, | 64 const StreamParser::BufferQueue& video_buffers, |
| 65 const StreamParser::TextBufferQueueMap& text_map); | 65 const StreamParser::TextBufferQueueMap& text_map); |
| 66 void OnKeyNeeded(EmeInitDataType type, const std::vector<uint8_t>& init_data); | 66 void OnKeyNeeded(EmeInitDataType type, const std::vector<uint8_t>& init_data); |
| 67 void OnNewSegment(); | 67 void OnNewSegment(); |
| 68 void OnEndOfSegment(); | 68 bool OnEndOfSegment(); |
| 69 | 69 |
| 70 scoped_ptr<StreamParser> parser_; | 70 scoped_ptr<StreamParser> parser_; |
| 71 std::stringstream results_stream_; | 71 std::stringstream results_stream_; |
| 72 AudioDecoderConfig last_audio_config_; | 72 AudioDecoderConfig last_audio_config_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(StreamParserTestBase); | 74 DISALLOW_COPY_AND_ASSIGN(StreamParserTestBase); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace media | 77 } // namespace media |
| 78 | 78 |
| 79 #endif // MEDIA_FORMATS_COMMON_STREAM_PARSER_TEST_BASE_H_ | 79 #endif // MEDIA_FORMATS_COMMON_STREAM_PARSER_TEST_BASE_H_ |
| OLD | NEW |