OLD | NEW |
1 // Copyright (c) 2012 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 #include <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "media/base/audio_decoder_config.h" | 9 #include "media/base/audio_decoder_config.h" |
10 #include "media/base/decoder_buffer.h" | 10 #include "media/base/decoder_buffer.h" |
11 #include "media/base/decrypt_config.h" | 11 #include "media/base/decrypt_config.h" |
12 #include "media/base/mock_demuxer_host.h" | 12 #include "media/base/mock_demuxer_host.h" |
13 #include "media/base/test_data_util.h" | 13 #include "media/base/test_data_util.h" |
14 #include "media/base/test_helpers.h" | 14 #include "media/base/test_helpers.h" |
15 #include "media/filters/chunk_demuxer.h" | 15 #include "media/filters/chunk_demuxer.h" |
16 #include "media/webm/cluster_builder.h" | 16 #include "media/webm/cluster_builder.h" |
17 #include "media/webm/webm_constants.h" | 17 #include "media/webm/webm_constants.h" |
18 #include "media/webm/webm_crypto_helpers.h" | 18 #include "media/webm/webm_crypto_helpers.h" |
(...skipping 2628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2647 // don't get removed. | 2647 // don't get removed. |
2648 // | 2648 // |
2649 // NOTE: The current GC algorithm tries to preserve the GOP at the | 2649 // NOTE: The current GC algorithm tries to preserve the GOP at the |
2650 // current position as well as the last appended GOP. This is | 2650 // current position as well as the last appended GOP. This is |
2651 // why there are 2 ranges in the expectations. | 2651 // why there are 2 ranges in the expectations. |
2652 AppendSingleStreamCluster(kSourceId, kAudioTrackNum, 700, 5); | 2652 AppendSingleStreamCluster(kSourceId, kAudioTrackNum, 700, 5); |
2653 CheckExpectedRanges(kSourceId, "{ [500,592) [792,815) }"); | 2653 CheckExpectedRanges(kSourceId, "{ [500,592) [792,815) }"); |
2654 } | 2654 } |
2655 | 2655 |
2656 } // namespace media | 2656 } // namespace media |
OLD | NEW |