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

Unified Diff: media/base/test_data_util.h

Issue 1517473002: Support HLS MPEG2 TS with SAMPLE-AES encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@encryption_scheme
Patch Set: README file update Created 4 years, 9 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
Index: media/base/test_data_util.h
diff --git a/media/base/test_data_util.h b/media/base/test_data_util.h
index a71e2a5dc59a3604dd36b93e9b8718e624153976..82c13884a07bbd80e8d710291bbb53f84eb8701a 100644
--- a/media/base/test_data_util.h
+++ b/media/base/test_data_util.h
@@ -36,6 +36,18 @@ std::string GetURLQueryString(const base::StringPairs& query_params);
// |buffer| - The contents of the file.
scoped_refptr<DecoderBuffer> ReadTestDataFile(const std::string& name);
+// If the provided |key_id| is that of the test key, returns true and fills the
+// |key|, otherwise returns false. If |allowRotation| is true, then other valid
+// values are obtained by rotating the original key_id and key. Two overloads
+// are provided, one using vectors and one using strings.
+bool LookupTestKey(const std::vector<uint8_t>& key_id,
+ std::vector<uint8_t>* key,
+ bool allowRotation);
+
+bool LookupTestKey(const std::string& key_id,
+ std::string* key,
+ bool allowRotation);
+
} // namespace media
#endif // MEDIA_BASE_TEST_DATA_UTIL_H_
« no previous file with comments | « media/base/bit_reader.cc ('k') | media/base/test_data_util.cc » ('j') | media/media.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698