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 #include <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include <algorithm> | 8 #include <algorithm> |
6 #include <string> | 9 #include <string> |
7 | 10 |
8 #include "base/bind.h" | 11 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
10 #include "base/logging.h" | 13 #include "base/logging.h" |
11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
12 #include "base/time/time.h" | 15 #include "base/time/time.h" |
13 #include "media/base/audio_decoder_config.h" | 16 #include "media/base/audio_decoder_config.h" |
14 #include "media/base/decoder_buffer.h" | 17 #include "media/base/decoder_buffer.h" |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 parser_->Flush(); | 290 parser_->Flush(); |
288 EXPECT_EQ(audio_frame_count_, 40); | 291 EXPECT_EQ(audio_frame_count_, 40); |
289 EXPECT_EQ(video_frame_count_, 0); | 292 EXPECT_EQ(video_frame_count_, 0); |
290 // This stream has no mid-stream configuration change. | 293 // This stream has no mid-stream configuration change. |
291 EXPECT_EQ(config_count_, 1); | 294 EXPECT_EQ(config_count_, 1); |
292 EXPECT_EQ(segment_count_, 1); | 295 EXPECT_EQ(segment_count_, 1); |
293 } | 296 } |
294 | 297 |
295 } // namespace mp2t | 298 } // namespace mp2t |
296 } // namespace media | 299 } // namespace media |
OLD | NEW |