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

Side by Side Diff: media/test/data/eme_player_js/player_utils.js

Issue 2582463003: media: Verify CDM Host files (Closed)
Patch Set: Polished! Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The PlayerUtils provides utility functions to binding common media events 5 // The PlayerUtils provides utility functions to binding common media events
6 // to specific player functions. It also provides functions to load media source 6 // to specific player functions. It also provides functions to load media source
7 // base on test configurations. 7 // base on test configurations.
8 var PlayerUtils = new function() { 8 var PlayerUtils = new function() {
9 } 9 }
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 case WIDEVINE_KEYSYSTEM: 206 case WIDEVINE_KEYSYSTEM:
207 return WidevinePlayer; 207 return WidevinePlayer;
208 case CLEARKEY: 208 case CLEARKEY:
209 case EXTERNAL_CLEARKEY: 209 case EXTERNAL_CLEARKEY:
210 case EXTERNAL_CLEARKEY_RENEWAL: 210 case EXTERNAL_CLEARKEY_RENEWAL:
211 case CRASH_TEST_KEYSYSTEM: 211 case CRASH_TEST_KEYSYSTEM:
212 return ClearKeyPlayer; 212 return ClearKeyPlayer;
213 case FILE_IO_TEST_KEYSYSTEM: 213 case FILE_IO_TEST_KEYSYSTEM:
214 case OUTPUT_PROTECTION_TEST_KEYSYSTEM: 214 case OUTPUT_PROTECTION_TEST_KEYSYSTEM:
215 case PLATFORM_VERIFICATION_TEST_KEYSYSTEM: 215 case PLATFORM_VERIFICATION_TEST_KEYSYSTEM:
216 case VERIFY_HOST_FILES_TEST_KEYSYSTEM:
216 return UnitTestPlayer; 217 return UnitTestPlayer;
217 default: 218 default:
218 Utils.timeLog(keySystem + ' is not a known key system'); 219 Utils.timeLog(keySystem + ' is not a known key system');
219 return ClearKeyPlayer; 220 return ClearKeyPlayer;
220 } 221 }
221 } 222 }
222 var Player = getPlayerType(testConfig.keySystem); 223 var Player = getPlayerType(testConfig.keySystem);
223 return new Player(video, testConfig); 224 return new Player(video, testConfig);
224 }; 225 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698