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

Unified Diff: media/test/data/eme_player_js/utils.js

Issue 1712903002: Remove prefixed EME. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix isRenewalMessage() in browser tests. Created 4 years, 10 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/test/data/eme_player_js/test_config.js ('k') | media/test/data/eme_player_js/widevine_player.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/data/eme_player_js/utils.js
diff --git a/media/test/data/eme_player_js/utils.js b/media/test/data/eme_player_js/utils.js
index 41a4d45c322855e4a3dd3e57e660582f4ddd1796..8ebb033f71f13fe7d66490f2612f17f7665c6528 100644
--- a/media/test/data/eme_player_js/utils.js
+++ b/media/test/data/eme_player_js/utils.js
@@ -189,19 +189,13 @@ Utils.isRenewalMessage = function(message) {
if (message.messageType != 'license-renewal')
return false;
- if (!Utils.isRenewalMessagePrefixed(message.message)) {
+ if (!Utils.hasPrefix(message.message, EME_RENEWAL_MESSAGE_HEADER)) {
Utils.failTest('license-renewal message doesn\'t contain expected header',
- PREFIXED_EME_RENEWAL_MISSING_HEADER);
+ EME_RENEWAL_MISSING_HEADER);
}
return true;
};
-// For the prefixed API renewal messages are determined by looking at the
-// message and finding a known string.
-Utils.isRenewalMessagePrefixed = function(msg) {
- return Utils.hasPrefix(msg, PREFIXED_EME_RENEWAL_MESSAGE_HEADER);
-};
-
Utils.resetTitleChange = function() {
this.titleChanged = false;
document.title = '';
« no previous file with comments | « media/test/data/eme_player_js/test_config.js ('k') | media/test/data/eme_player_js/widevine_player.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698