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 "media/formats/mp4/sample_to_group_iterator.h" | 5 #include "media/formats/mp4/sample_to_group_iterator.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
7 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
9 | 13 |
10 namespace media { | 14 namespace media { |
11 namespace mp4 { | 15 namespace mp4 { |
12 | 16 |
13 namespace { | 17 namespace { |
14 const SampleToGroupEntry kCompactSampleToGroupTable[] = | 18 const SampleToGroupEntry kCompactSampleToGroupTable[] = |
15 {{10, 8}, {9, 5}, {25, 7}, {48, 63}, {8, 2}}; | 19 {{10, 8}, {9, 5}, {25, 7}, {48, 63}, {8, 2}}; |
16 } // namespace | 20 } // namespace |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ASSERT_EQ(sample_to_group_table_[sample], | 61 ASSERT_EQ(sample_to_group_table_[sample], |
58 sample_to_group_iterator_->group_description_index()); | 62 sample_to_group_iterator_->group_description_index()); |
59 ASSERT_TRUE(sample_to_group_iterator_->IsValid()); | 63 ASSERT_TRUE(sample_to_group_iterator_->IsValid()); |
60 } | 64 } |
61 ASSERT_FALSE(sample_to_group_iterator_->Advance()); | 65 ASSERT_FALSE(sample_to_group_iterator_->Advance()); |
62 ASSERT_FALSE(sample_to_group_iterator_->IsValid()); | 66 ASSERT_FALSE(sample_to_group_iterator_->IsValid()); |
63 } | 67 } |
64 | 68 |
65 } // namespace mp4 | 69 } // namespace mp4 |
66 } // namespace media | 70 } // namespace media |
OLD | NEW |