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

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

Issue 2267283002: media: Separate renewal from default External Clear Key test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/test/data/eme_player_js/player_utils.js ('k') | no next file » | 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 7eec1bdb4dd0124d0b76e14d8319728e45a0bef5..653677fae4056d474e66f83e9a8e82502e53f685 100644
--- a/media/test/data/eme_player_js/utils.js
+++ b/media/test/data/eme_player_js/utils.js
@@ -186,14 +186,7 @@ Utils.installTitleEventHandler = function(element, event) {
};
Utils.isRenewalMessage = function(message) {
- if (message.messageType != 'license-renewal')
- return false;
-
- if (!Utils.hasPrefix(message.message, EME_RENEWAL_MESSAGE_HEADER)) {
- Utils.failTest('license-renewal message doesn\'t contain expected header',
- EME_RENEWAL_MISSING_HEADER);
- }
- return true;
+ return (message.messageType == 'license-renewal');
};
Utils.resetTitleChange = function() {
« no previous file with comments | « media/test/data/eme_player_js/player_utils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698