Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: media/cdm/cenc_utils_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cdm/cenc_utils.cc ('k') | media/cdm/external_clear_key_test_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/cdm/cenc_utils.cc ('k') | media/cdm/external_clear_key_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698