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

Issue 308553002: Integrate browser tests with new EME player. (Closed)

Created:
6 years, 6 months ago by shadi
Modified:
6 years, 6 months ago
Reviewers:
jrummell, ddorwin
CC:
chromium-reviews, fischman+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@eme_player
Visibility:
Public.

Description

Integrate browser tests with new EME player. This CL makes several changes to the EME player to enable test specific expectations possible. The EME player can be still used as a stand alone player. BUG=356892 TESTS=out/Release/browser_tests --gtest_filter=*EncryptedMedia* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278330

Patch Set 1 #

Total comments: 30

Patch Set 2 : resolved comments #

Patch Set 3 : Add support for FileIO and LoadSession test cases #

Total comments: 9

Patch Set 4 : nits (small change to EME versions UI) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -201 lines) Patch
M chrome/browser/media/encrypted_media_browsertest.cc View 1 2 10 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/media/media_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/media/eme_player.html View 1 2 chunks +37 lines, -11 lines 0 comments Download
M chrome/test/data/media/eme_player_js/app_loader.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/media/eme_player_js/clearkey_player.js View 1 chunk +3 lines, -11 lines 0 comments Download
A chrome/test/data/media/eme_player_js/file_io_test_player.js View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/test/data/media/eme_player_js/globals.js View 1 2 3 2 chunks +17 lines, -5 lines 0 comments Download
M chrome/test/data/media/eme_player_js/media_source_utils.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/media/eme_player_js/player.js View 1 2 4 chunks +43 lines, -12 lines 0 comments Download
M chrome/test/data/media/eme_player_js/prefixed_clearkey_player.js View 1 chunk +3 lines, -11 lines 0 comments Download
M chrome/test/data/media/eme_player_js/prefixed_widevine_player.js View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/test/data/media/eme_player_js/test_app.js View 1 2 2 chunks +24 lines, -11 lines 0 comments Download
M chrome/test/data/media/eme_player_js/test_config.js View 1 2 3 3 chunks +30 lines, -27 lines 0 comments Download
M chrome/test/data/media/eme_player_js/utils.js View 1 2 3 4 chunks +186 lines, -90 lines 0 comments Download
M chrome/test/data/media/eme_player_js/widevine_player.js View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
shadi
PTAL. The change updates eme browser tests that use the encrypted_media_player.html to use eme_player.html (the ...
6 years, 6 months ago (2014-05-29 00:47:45 UTC) #1
jrummell
https://codereview.chromium.org/308553002/diff/1/chrome/test/data/media/eme_player.html File chrome/test/data/media/eme_player.html (right): https://codereview.chromium.org/308553002/diff/1/chrome/test/data/media/eme_player.html#newcode65 chrome/test/data/media/eme_player.html:65: var video = null; Why have a global var ...
6 years, 6 months ago (2014-05-29 21:45:05 UTC) #2
ddorwin
I just skimmed the data/ files. https://codereview.chromium.org/308553002/diff/1/chrome/browser/media/encrypted_media_browsertest.cc File chrome/browser/media/encrypted_media_browsertest.cc (right): https://codereview.chromium.org/308553002/diff/1/chrome/browser/media/encrypted_media_browsertest.cc#newcode71 chrome/browser/media/encrypted_media_browsertest.cc:71: const char kDefaultEMEPlayer[] ...
6 years, 6 months ago (2014-05-30 17:42:55 UTC) #3
shadi
Resolved comments. FILE_IO cases still not converted yet though. I wanted to upload the patch ...
6 years, 6 months ago (2014-05-31 00:31:37 UTC) #4
shadi
Added support for FileIO and LoadSession cases. Also passed all tests out/Release/browser_tests --gtest_filter=*EncryptedMedia* PTAL
6 years, 6 months ago (2014-06-12 22:12:27 UTC) #5
ddorwin
My comments have been addressed. Thanks. I'll leave this to John to complete the full ...
6 years, 6 months ago (2014-06-13 21:03:56 UTC) #6
jrummell
lgtm with a few nits. https://codereview.chromium.org/308553002/diff/80001/chrome/browser/media/encrypted_media_browsertest.cc File chrome/browser/media/encrypted_media_browsertest.cc (left): https://codereview.chromium.org/308553002/diff/80001/chrome/browser/media/encrypted_media_browsertest.cc#oldcode625 chrome/browser/media/encrypted_media_browsertest.cc:625: // TODO(jrummell): Fix these ...
6 years, 6 months ago (2014-06-13 21:53:59 UTC) #7
shadi
Thanks for reviews. As a summary, this CL changes all "simple playback" tests to use ...
6 years, 6 months ago (2014-06-19 01:07:04 UTC) #8
shadi
The CQ bit was checked by shadi@chromium.org
6 years, 6 months ago (2014-06-19 01:07:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/308553002/100001
6 years, 6 months ago (2014-06-19 01:11:37 UTC) #10
commit-bot: I haz the power
Change committed as 278330
6 years, 6 months ago (2014-06-19 11:36:35 UTC) #11
chrishtr
6 years, 6 months ago (2014-06-19 17:11:02 UTC) #12
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/332323003/ by chrishtr@chromium.org.

The reason for reverting is: Causes browser tests to fail on all waterfalls..

Powered by Google App Engine
This is Rietveld 408576698