| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/files/memory_mapped_file.h" | 6 #include "base/files/memory_mapped_file.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/path_service.h" | |
| 9 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 10 #include "media/base/test_data_util.h" | 9 #include "media/base/test_data_util.h" |
| 11 #include "media/filters/h264_parser.h" | 10 #include "media/filters/h264_parser.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 12 |
| 14 namespace media { | 13 namespace media { |
| 15 | 14 |
| 16 TEST(H264ParserTest, StreamFileParsing) { | 15 TEST(H264ParserTest, StreamFileParsing) { |
| 17 base::FilePath file_path = GetTestDataFilePath("test-25fps.h264"); | 16 base::FilePath file_path = GetTestDataFilePath("test-25fps.h264"); |
| 18 // Number of NALUs in the test stream to be parsed. | 17 // Number of NALUs in the test stream to be parsed. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 62 |
| 64 default: | 63 default: |
| 65 // Skip unsupported NALU. | 64 // Skip unsupported NALU. |
| 66 DVLOG(4) << "Skipping unsupported NALU"; | 65 DVLOG(4) << "Skipping unsupported NALU"; |
| 67 break; | 66 break; |
| 68 } | 67 } |
| 69 } | 68 } |
| 70 } | 69 } |
| 71 | 70 |
| 72 } // namespace media | 71 } // namespace media |
| OLD | NEW |