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 "media/cdm/cenc_utils.h" | 5 #include "media/cdm/cenc_utils.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
9 | 13 |
10 namespace media { | 14 namespace media { |
11 | 15 |
12 const uint8_t kKey1Data[] = { | 16 const uint8_t kKey1Data[] = { |
13 0x7E, 0x57, 0x1D, 0x03, 0x7E, 0x57, 0x1D, 0x03, | 17 0x7E, 0x57, 0x1D, 0x03, 0x7E, 0x57, 0x1D, 0x03, |
14 0x7E, 0x57, 0x1D, 0x03, 0x7E, 0x57, 0x1D, 0x03 | 18 0x7E, 0x57, 0x1D, 0x03, 0x7E, 0x57, 0x1D, 0x03 |
15 }; | 19 }; |
16 const uint8_t kKey2Data[] = { | 20 const uint8_t kKey2Data[] = { |
17 0x7E, 0x57, 0x1D, 0x04, 0x7E, 0x57, 0x1D, 0x04, | 21 0x7E, 0x57, 0x1D, 0x04, 0x7E, 0x57, 0x1D, 0x04, |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 EXPECT_FALSE(ValidatePsshInput(boxes)); | 547 EXPECT_FALSE(ValidatePsshInput(boxes)); |
544 | 548 |
545 // Repeat with |non_pssh_box| first. | 549 // Repeat with |non_pssh_box| first. |
546 boxes.clear(); | 550 boxes.clear(); |
547 boxes.insert(boxes.end(), non_pssh_box.begin(), non_pssh_box.end()); | 551 boxes.insert(boxes.end(), non_pssh_box.begin(), non_pssh_box.end()); |
548 boxes.insert(boxes.end(), pssh_box.begin(), pssh_box.end()); | 552 boxes.insert(boxes.end(), pssh_box.begin(), pssh_box.end()); |
549 EXPECT_FALSE(ValidatePsshInput(boxes)); | 553 EXPECT_FALSE(ValidatePsshInput(boxes)); |
550 } | 554 } |
551 | 555 |
552 } // namespace media | 556 } // namespace media |
OLD | NEW |