Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(989)

Side by Side Diff: media/formats/mpeg/mpeg1_audio_stream_parser_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/formats/mpeg/mpeg1_audio_stream_parser.h ('k') | media/formats/mpeg/mpeg_audio_stream_parser_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698