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

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: rebase Created 4 years 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/base/bit_reader.cc ('k') | media/base/test_data_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/test_data_util.h
diff --git a/media/base/test_data_util.h b/media/base/test_data_util.h
index f4691b4c11f10ef3fdecbbbcfa7bb6322746e766..b93093b1e7164ce01c161b5e033c8443ff4b22ea 100644
--- a/media/base/test_data_util.h
+++ b/media/base/test_data_util.h
@@ -35,6 +35,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 a 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 LookupTestKeyVector(const std::vector<uint8_t>& key_id,
+ bool allowRotation,
+ std::vector<uint8_t>* key);
+
+bool LookupTestKeyString(const std::string& key_id,
+ bool allowRotation,
+ std::string* key);
+
} // 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698