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 <stdint.h> |
| 6 |
5 #include "media/base/test_data_util.h" | 7 #include "media/base/test_data_util.h" |
6 #include "media/formats/common/stream_parser_test_base.h" | 8 #include "media/formats/common/stream_parser_test_base.h" |
7 #include "media/formats/mpeg/mpeg1_audio_stream_parser.h" | 9 #include "media/formats/mpeg/mpeg1_audio_stream_parser.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
9 | 11 |
10 namespace media { | 12 namespace media { |
11 | 13 |
12 class MPEG1AudioStreamParserTest | 14 class MPEG1AudioStreamParserTest |
13 : public StreamParserTestBase, public testing::Test { | 15 : public StreamParserTestBase, public testing::Test { |
14 public: | 16 public: |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 buffer_ptr += kXingRemainingSize; | 87 buffer_ptr += kXingRemainingSize; |
86 | 88 |
87 // Append the first real frame and ensure we get a segment. | 89 // Append the first real frame and ensure we get a segment. |
88 const int kFirstRealFrameSize = 182; | 90 const int kFirstRealFrameSize = 182; |
89 EXPECT_EQ("NewSegment{ 0K }EndOfSegment", | 91 EXPECT_EQ("NewSegment{ 0K }EndOfSegment", |
90 ParseData(buffer_ptr, kFirstRealFrameSize)); | 92 ParseData(buffer_ptr, kFirstRealFrameSize)); |
91 EXPECT_TRUE(last_audio_config().IsValidConfig()); | 93 EXPECT_TRUE(last_audio_config().IsValidConfig()); |
92 } | 94 } |
93 | 95 |
94 } // namespace media | 96 } // namespace media |
OLD | NEW |