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

Side by Side Diff: media/mp4/mp4_stream_parser_unittest.cc

Issue 23072043: Change NeedKeyCB to use std::vector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <algorithm> 5 #include <algorithm>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 DumpBuffers("video_buffers", video_buffers); 87 DumpBuffers("video_buffers", video_buffers);
88 return true; 88 return true;
89 } 89 }
90 90
91 bool NewTextBuffersF(TextTrack* text_track, 91 bool NewTextBuffersF(TextTrack* text_track,
92 const StreamParser::BufferQueue& buffers) { 92 const StreamParser::BufferQueue& buffers) {
93 return true; 93 return true;
94 } 94 }
95 95
96 void KeyNeededF(const std::string& type, 96 void KeyNeededF(const std::string& type,
97 scoped_ptr<uint8[]> init_data, int init_data_size) { 97 const std::vector<uint8>& init_data) {
98 DVLOG(1) << "KeyNeededF: " << init_data_size; 98 DVLOG(1) << "KeyNeededF: " << init_data.size();
99 EXPECT_EQ(kMp4InitDataType, type); 99 EXPECT_EQ(kMp4InitDataType, type);
100 EXPECT_TRUE(init_data.get()); 100 EXPECT_TRUE(&init_data[0]);
101 EXPECT_GT(init_data_size, 0); 101 EXPECT_GT(init_data.size(), 0u);
xhwang 2013/08/23 17:24:37 ditto
acolwell GONE FROM CHROMIUM 2013/08/23 19:55:28 Done.
102 } 102 }
103 103
104 scoped_ptr<TextTrack> AddTextTrackF( 104 scoped_ptr<TextTrack> AddTextTrackF(
105 TextKind kind, 105 TextKind kind,
106 const std::string& label, 106 const std::string& label,
107 const std::string& language) { 107 const std::string& language) {
108 return scoped_ptr<TextTrack>(); 108 return scoped_ptr<TextTrack>();
109 } 109 }
110 110
111 void NewSegmentF() { 111 void NewSegmentF() {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 EXPECT_TRUE(AppendDataInPieces(buffer->data() + kFirstMoofOffset, 207 EXPECT_TRUE(AppendDataInPieces(buffer->data() + kFirstMoofOffset,
208 buffer->data_size() - kFirstMoofOffset, 208 buffer->data_size() - kFirstMoofOffset,
209 512)); 209 512));
210 } 210 }
211 211
212 // TODO(strobe): Create and test media which uses CENC auxiliary info stored 212 // TODO(strobe): Create and test media which uses CENC auxiliary info stored
213 // inside a private box 213 // inside a private box
214 214
215 } // namespace mp4 215 } // namespace mp4
216 } // namespace media 216 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698