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: chrome/test/data/media/eme_player_js/globals.js

Issue 408993002: Have media content and chrome browser tests load data from media/test/data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: chrome/test/data/media/eme_player_js/globals.js
diff --git a/chrome/test/data/media/eme_player_js/globals.js b/chrome/test/data/media/eme_player_js/globals.js
deleted file mode 100644
index c608dfebbc2cd6f1a153636bc2bfc632f673ceed..0000000000000000000000000000000000000000
--- a/chrome/test/data/media/eme_player_js/globals.js
+++ /dev/null
@@ -1,80 +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.
-
-// This file contains global constant variables used by the application.
-
-// Heart beat message header.
-var HEART_BEAT_HEADER = 'HEARTBEAT';
-
-// Default key used to encrypt many media files used in browser tests.
-var KEY = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b,
- 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]);
-
-var DEFAULT_LICENSE_SERVER = document.location.origin + '/license_server';
-
-var DEFAULT_MEDIA_FILE = 'http://shadi.kir/alcatraz/Chrome_44-enc_av.webm';
-
-// Key ID used for init data.
-var KEY_ID = '0123456789012345';
-
-// Unique strings to identify test result expectations.
-var KEY_ERROR = 'KEY_ERROR';
-var FILE_IO_TEST_RESULT_HEADER = 'FILEIOTESTRESULT';
-var FILE_IO_TEST_SUCCESS = 'FILE_IO_TEST_SUCCESS';
-var PREFIXED_API_LOAD_SESSION_HEADER = 'LOAD_SESSION|';
-var NOTSUPPORTEDERROR = 'NOTSUPPORTEDERROR';
-
-// Available EME key systems to use.
-var PREFIXED_CLEARKEY = 'webkit-org.w3.clearkey';
-var CLEARKEY = 'org.w3.clearkey';
-var EXTERNAL_CLEARKEY = 'org.chromium.externalclearkey';
-var WIDEVINE_KEYSYSTEM = 'com.widevine.alpha';
-var FILE_IO_TEST_KEYSYSTEM = 'org.chromium.externalclearkey.fileiotest';
-var EME_PREFIXED_VERSION = 'Prefixed EME (v 0.1b)';
-var EME_UNPREFIXED_VERSION = 'Unprefixed EME (Working draft)';
-
-// Key system name:value map to show on the document page.
-var KEY_SYSTEMS = {
- 'Widevine': WIDEVINE_KEYSYSTEM,
- 'Clearkey': CLEARKEY,
- 'External Clearkey': EXTERNAL_CLEARKEY
-};
-
-// General WebM and MP4 name:content_type map to show on the document page.
-var MEDIA_TYPES = {
- 'WebM - Audio Video': 'video/webm; codecs="vorbis, vp8"',
- 'WebM - Video Only': 'video/webm; codecs="vp8"',
- 'WebM - Audio Only': 'video/webm; codecs="vorbis"',
- 'MP4 - Video Only': 'video/mp4; codecs="avc1.4D4041"',
- 'MP4 - Audio Only': 'audio/mp4; codecs="mp4a.40.2"'
-};
-
-// Update the EME versions list by checking runtime support by the browser.
-var EME_VERSIONS_OPTIONS = {};
-EME_VERSIONS_OPTIONS[EME_UNPREFIXED_VERSION] = EME_UNPREFIXED_VERSION;
-EME_VERSIONS_OPTIONS[EME_PREFIXED_VERSION] = EME_PREFIXED_VERSION;
-
-var EME_DISABLED_OPTIONS = [];
-var PROMISES_SUPPORTED = false;
-if (!document.createElement('video').webkitAddKey)
- EME_DISABLED_OPTIONS.push(EME_PREFIXED_VERSION);
-if (!document.createElement('video').setMediaKeys)
- EME_DISABLED_OPTIONS.push(EME_UNPREFIXED_VERSION);
-else
- PROMISES_SUPPORTED = MediaKeys.create != undefined;
-
-// Global document elements ID's.
-var VIDEO_ELEMENT_ID = 'video';
-var MEDIA_FILE_ELEMENT_ID = 'mediaFile';
-var LICENSE_SERVER_ELEMENT_ID = 'licenseServer';
-var KEYSYSTEM_ELEMENT_ID = 'keySystemList';
-var MEDIA_TYPE_ELEMENT_ID = 'mediaTypeList';
-var USE_MSE_ELEMENT_ID = 'useMSE';
-var USE_PREFIXED_EME_ID = 'usePrefixedEME';
-
-// These variables get updated every second, so better to have global pointers.
-var decodedFPSElement = document.getElementById('decodedFPS');
-var droppedFPSElement = document.getElementById('droppedFPS');
-var droppedFramesElement = document.getElementById('droppedFrames');
-var docLogs = document.getElementById('logs');
« no previous file with comments | « chrome/test/data/media/eme_player_js/fps_observer.js ('k') | chrome/test/data/media/eme_player_js/media_source_utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698