| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
| 5 #include "base/files/memory_mapped_file.h" | 8 #include "base/files/memory_mapped_file.h" |
| 6 #include "base/logging.h" | 9 #include "base/logging.h" |
| 7 #include "media/base/test_data_util.h" | 10 #include "media/base/test_data_util.h" |
| 8 #include "media/filters/ivf_parser.h" | 11 #include "media/filters/ivf_parser.h" |
| 9 #include "media/filters/vp8_parser.h" | 12 #include "media/filters/vp8_parser.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 14 |
| 12 namespace media { | 15 namespace media { |
| 13 | 16 |
| 14 TEST(Vp8ParserTest, StreamFileParsing) { | 17 TEST(Vp8ParserTest, StreamFileParsing) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 38 ++num_parsed_frames; | 41 ++num_parsed_frames; |
| 39 } | 42 } |
| 40 | 43 |
| 41 DVLOG(1) << "Number of successfully parsed frames before EOS: " | 44 DVLOG(1) << "Number of successfully parsed frames before EOS: " |
| 42 << num_parsed_frames; | 45 << num_parsed_frames; |
| 43 | 46 |
| 44 EXPECT_EQ(ivf_file_header.num_frames, num_parsed_frames); | 47 EXPECT_EQ(ivf_file_header.num_frames, num_parsed_frames); |
| 45 } | 48 } |
| 46 | 49 |
| 47 } // namespace media | 50 } // namespace media |
| OLD | NEW |