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

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

Issue 2085063002: media: Add OutputProtectionProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 6 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/app_loader.js ('k') | media/test/data/eme_player_js/globals.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/file_io_test_player.js
diff --git a/media/test/data/eme_player_js/file_io_test_player.js b/media/test/data/eme_player_js/file_io_test_player.js
deleted file mode 100644
index fb0d025eac4b0762d51f5d0cbeed7290f228f7a2..0000000000000000000000000000000000000000
--- a/media/test/data/eme_player_js/file_io_test_player.js
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// File IO test player is used to test File IO CDM functionality.
-function FileIOTestPlayer(video, testConfig) {
- this.video = video;
- this.testConfig = testConfig;
-}
-
-FileIOTestPlayer.prototype.init = function() {
- // Returns a promise.
- return PlayerUtils.initEMEPlayer(this);
-};
-
-FileIOTestPlayer.prototype.registerEventListeners = function() {
- // Returns a promise.
- return PlayerUtils.registerEMEEventListeners(this);
-};
-
-handleMessage = function(message) {
- // The test result is either '0' or '1' appended to the header.
- var msg = Utils.convertToUint8Array(message.message);
- if (Utils.hasPrefix(msg, FILE_IO_TEST_RESULT_HEADER)) {
- if (msg.length != FILE_IO_TEST_RESULT_HEADER.length + 1) {
- Utils.failTest('Unexpected FileIOTest CDM message' + msg);
- return;
- }
- var result_index = FILE_IO_TEST_RESULT_HEADER.length;
- var success = String.fromCharCode(msg[result_index]) == 1;
- Utils.timeLog('CDM file IO test: ' + (success ? 'Success' : 'Fail'));
- if (success)
- Utils.setResultInTitle(FILE_IO_TEST_SUCCESS);
- else
- Utils.failTest('File IO CDM message fail status.');
- }
-};
-
-FileIOTestPlayer.prototype.onMessage = handleMessage;
« no previous file with comments | « media/test/data/eme_player_js/app_loader.js ('k') | media/test/data/eme_player_js/globals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698