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 "media/formats/webm/webm_content_encodings_client.h" | 5 #include "media/formats/webm/webm_content_encodings_client.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
11 #include "media/base/mock_media_log.h" | 13 #include "media/base/mock_media_log.h" |
12 #include "media/formats/webm/webm_constants.h" | 14 #include "media/formats/webm/webm_constants.h" |
13 #include "media/formats/webm/webm_parser.h" | 15 #include "media/formats/webm/webm_parser.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
16 | 18 |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 0x47, 0xE1, 0x81, 0xEE, // ContentEncAlgo (size = 1), invalid | 275 0x47, 0xE1, 0x81, 0xEE, // ContentEncAlgo (size = 1), invalid |
274 0x47, 0xE2, 0x88, // ContentEncKeyID (size = 8) | 276 0x47, 0xE2, 0x88, // ContentEncKeyID (size = 8) |
275 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, | 277 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, |
276 }; | 278 }; |
277 int size = sizeof(kContentEncodings); | 279 int size = sizeof(kContentEncodings); |
278 EXPECT_MEDIA_LOG(UnexpectedContentEncAlgo(0xEE)); | 280 EXPECT_MEDIA_LOG(UnexpectedContentEncAlgo(0xEE)); |
279 ParseAndExpectToFail(kContentEncodings, size); | 281 ParseAndExpectToFail(kContentEncodings, size); |
280 } | 282 } |
281 | 283 |
282 } // namespace media | 284 } // namespace media |
OLD | NEW |