Chromium Code Reviews| Index: media/mp4/mp4_stream_parser_unittest.cc |
| diff --git a/media/mp4/mp4_stream_parser_unittest.cc b/media/mp4/mp4_stream_parser_unittest.cc |
| index 6d7221a9c5e6b7c93664db280b0da6da5198cc26..81dbdd88a75dcc88b9a392d9261a72286db1dc4c 100644 |
| --- a/media/mp4/mp4_stream_parser_unittest.cc |
| +++ b/media/mp4/mp4_stream_parser_unittest.cc |
| @@ -23,6 +23,9 @@ using base::TimeDelta; |
| namespace media { |
| namespace mp4 { |
| +// TODO(xhwang): Figure out the init data type appropriately once it's spec'ed. |
| +static const char kMp4InitDataType[] = "video/mp4"; |
| + |
| class MP4StreamParserTest : public testing::Test { |
| public: |
| MP4StreamParserTest() |
| @@ -54,7 +57,7 @@ class MP4StreamParserTest : public testing::Test { |
| void InitF(bool init_ok, base::TimeDelta duration) { |
| DVLOG(1) << "InitF: ok=" << init_ok |
| - << ", dur=" << duration.InMilliseconds(); |
| + << ", dur=" << duration.InMilliseconds(); |
|
ddorwin
2012/10/27 03:26:00
nit: space replacement, but still off
xhwang
2012/10/27 05:32:52
On my local linux bot this looks aligned (no tab).
|
| } |
| bool NewConfigF(const AudioDecoderConfig& ac, const VideoDecoderConfig& vc) { |
| @@ -76,8 +79,12 @@ class MP4StreamParserTest : public testing::Test { |
| return true; |
| } |
| - bool KeyNeededF(scoped_array<uint8> init_data, int init_data_size) { |
| + bool KeyNeededF(const std::string& type, |
| + scoped_array<uint8> init_data, int init_data_size) { |
| DVLOG(1) << "KeyNeededF: " << init_data_size; |
| + EXPECT_EQ(kMp4InitDataType, type); |
| + EXPECT_TRUE(init_data.get()); |
| + EXPECT_GT(init_data_size, 0); |
| return true; |
| } |