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

Unified Diff: media/filters/ffmpeg_video_decoder_unittest.cc

Issue 10651006: Add Common Encryption support to BMFF, including subsample decryption. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Satisfy mac_rel buildbot Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/crypto/aes_decryptor_unittest.cc ('k') | media/mp4/avc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_video_decoder_unittest.cc
diff --git a/media/filters/ffmpeg_video_decoder_unittest.cc b/media/filters/ffmpeg_video_decoder_unittest.cc
index 6a7fb4f3e0a6b1103d2274965f21c2c60bb21bf4..f720cf166fbe6a81f101ff1740d0ab882affe2bf 100644
--- a/media/filters/ffmpeg_video_decoder_unittest.cc
+++ b/media/filters/ffmpeg_video_decoder_unittest.cc
@@ -4,6 +4,7 @@
#include <deque>
#include <string>
+#include <vector>
#include "base/bind.h"
#include "base/message_loop.h"
@@ -47,10 +48,14 @@ static scoped_refptr<DecoderBuffer> CreateFakeEncryptedBuffer() {
const int encrypted_frame_offset = 1; // This should be non-zero.
scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(buffer_size));
buffer->SetDecryptConfig(scoped_ptr<DecryptConfig>(new DecryptConfig(
- kFakeKeyId, arraysize(kFakeKeyId),
- kFakeIv, DecryptConfig::kDecryptionKeySize,
- kFakeCheckSum, arraysize(kFakeCheckSum),
- encrypted_frame_offset)));
+ std::string(reinterpret_cast<const char*>(kFakeKeyId),
+ arraysize(kFakeKeyId)),
+ std::string(reinterpret_cast<const char*>(kFakeIv),
+ DecryptConfig::kDecryptionKeySize),
+ std::string(reinterpret_cast<const char*>(kFakeCheckSum),
+ arraysize(kFakeCheckSum)),
+ encrypted_frame_offset,
+ std::vector<SubsampleEntry>())));
return buffer;
}
« no previous file with comments | « media/crypto/aes_decryptor_unittest.cc ('k') | media/mp4/avc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698