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 <stddef.h> |
| 6 #include <stdint.h> |
5 #include <string.h> | 7 #include <string.h> |
6 | 8 |
| 9 #include "base/macros.h" |
7 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
8 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
9 #include "media/base/decrypt_config.h" | 12 #include "media/base/decrypt_config.h" |
10 #include "media/base/stream_parser_buffer.h" | 13 #include "media/base/stream_parser_buffer.h" |
11 #include "media/filters/h264_parser.h" | 14 #include "media/filters/h264_parser.h" |
12 #include "media/formats/mp4/avc.h" | 15 #include "media/formats/mp4/avc.h" |
13 #include "media/formats/mp4/box_definitions.h" | 16 #include "media/formats/mp4/box_definitions.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
15 | 18 |
16 namespace media { | 19 namespace media { |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 << "'" << test_cases[i].input << "' insert failed."; | 452 << "'" << test_cases[i].input << "' insert failed."; |
450 EXPECT_TRUE(AVC::IsValidAnnexB(buf, subsamples)) | 453 EXPECT_TRUE(AVC::IsValidAnnexB(buf, subsamples)) |
451 << "'" << test_cases[i].input << "' created invalid AnnexB."; | 454 << "'" << test_cases[i].input << "' created invalid AnnexB."; |
452 EXPECT_EQ(test_cases[i].expected, AnnexBToString(buf, subsamples)) | 455 EXPECT_EQ(test_cases[i].expected, AnnexBToString(buf, subsamples)) |
453 << "'" << test_cases[i].input << "' generated unexpected output."; | 456 << "'" << test_cases[i].input << "' generated unexpected output."; |
454 } | 457 } |
455 } | 458 } |
456 | 459 |
457 } // namespace mp4 | 460 } // namespace mp4 |
458 } // namespace media | 461 } // namespace media |
OLD | NEW |