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

Issue 357413002: Have media content and chrome browser tests load data from media/test/data (Closed)

Created:
6 years, 5 months ago by shadi
Modified:
6 years, 4 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, jam, mcasas+watch_chromium.org, dominich, feature-media-reviews_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, darin-cc_chromium.org, kmadhusu+watch_chromium.org, wjia+watch_chromium.org, Jered
Project:
chromium
Visibility:
Public.

Description

Have media content and chrome browser tests load data from media/test/data With media files copied over to media/test/data, this CL makes media related content browser tests and chrome browser tests load test data from one location. The location is common with media unit tests data forder; managed in one place in media/base/test_data_util.h BUG=379314 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282795

Patch Set 1 : #

Patch Set 2 : string instead of char* #

Patch Set 3 : delete html, JS from content #

Patch Set 4 : use media/base/test_data_util.h #

Patch Set 5 : fix mse_browser_tests.cc cases #

Patch Set 6 : few merge fixes #

Total comments: 20

Patch Set 7 : add common functions to media/base/test_data_util.h #

Patch Set 8 : fix net dependency for media_perftests #

Total comments: 12

Patch Set 9 : fix xhwang's comments #

Total comments: 4

Patch Set 10 : nits #

Total comments: 2

Patch Set 11 : dup #

Patch Set 12 : rebast to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -2244 lines) Patch
M chrome/browser/media/encrypted_media_browsertest.cc View 1 2 3 4 5 6 7 8 9 14 chunks +31 lines, -28 lines 0 comments Download
M chrome/browser/media/encrypted_media_istypesupported_browsertest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/media/media_browsertest.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/media/media_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -30 lines 0 comments Download
D chrome/test/data/media/eme_player.html View 1 chunk +0 lines, -108 lines 0 comments Download
D chrome/test/data/media/eme_player_js/app_loader.js View 1 chunk +0 lines, -24 lines 0 comments Download
D chrome/test/data/media/eme_player_js/clearkey_player.js View 1 chunk +0 lines, -33 lines 0 comments Download
D chrome/test/data/media/eme_player_js/eme_app.js View 1 1 chunk +0 lines, -81 lines 0 comments Download
D chrome/test/data/media/eme_player_js/file_io_test_player.js View 1 chunk +0 lines, -34 lines 0 comments Download
D chrome/test/data/media/eme_player_js/fps_observer.js View 1 chunk +0 lines, -67 lines 0 comments Download
D chrome/test/data/media/eme_player_js/globals.js View 1 chunk +0 lines, -80 lines 0 comments Download
D chrome/test/data/media/eme_player_js/media_source_utils.js View 1 chunk +0 lines, -70 lines 0 comments Download
D chrome/test/data/media/eme_player_js/player_utils.js View 1 1 chunk +0 lines, -186 lines 0 comments Download
D chrome/test/data/media/eme_player_js/prefixed_clearkey_player.js View 1 chunk +0 lines, -27 lines 0 comments Download
D chrome/test/data/media/eme_player_js/prefixed_widevine_player.js View 1 chunk +0 lines, -32 lines 0 comments Download
D chrome/test/data/media/eme_player_js/test_config.js View 1 chunk +0 lines, -31 lines 0 comments Download
D chrome/test/data/media/eme_player_js/utils.js View 1 chunk +0 lines, -245 lines 0 comments Download
D chrome/test/data/media/eme_player_js/widevine_player.js View 1 chunk +0 lines, -38 lines 0 comments Download
D chrome/test/data/media/encrypted_frame_size_change.html View 1 chunk +0 lines, -50 lines 0 comments Download
D chrome/test/data/media/frame_size_change-av-enc-v.webm View Binary file 0 comments Download
D chrome/test/data/media/mse_config_change.html View 1 chunk +0 lines, -135 lines 0 comments Download
D chrome/test/data/media/test_key_system_instantiation.html View 1 chunk +0 lines, -21 lines 0 comments Download
M content/browser/media/encrypted_media_browsertest.cc View 1 2 3 4 5 6 7 8 7 chunks +40 lines, -31 lines 0 comments Download
M content/browser/media/media_browsertest.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -10 lines 0 comments Download
M content/browser/media/media_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +43 lines, -46 lines 0 comments Download
M content/browser/media/media_source_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -7 lines 0 comments Download
D content/test/data/media/blackwhite.html View 1 2 1 chunk +0 lines, -231 lines 0 comments Download
D content/test/data/media/encrypted_frame_size_change.html View 1 1 chunk +0 lines, -50 lines 0 comments Download
D content/test/data/media/encrypted_media_player.html View 1 2 1 chunk +0 lines, -37 lines 0 comments Download
D content/test/data/media/encrypted_media_utils.js View 1 2 1 chunk +0 lines, -142 lines 0 comments Download
D content/test/data/media/media_source_player.html View 1 2 1 chunk +0 lines, -35 lines 0 comments Download
D content/test/data/media/media_source_utils.js View 1 1 chunk +0 lines, -67 lines 0 comments Download
D content/test/data/media/media_utils.js View 1 1 chunk +0 lines, -50 lines 0 comments Download
D content/test/data/media/mse_config_change.html View 1 1 chunk +0 lines, -132 lines 0 comments Download
D content/test/data/media/player.html View 1 2 1 chunk +0 lines, -77 lines 0 comments Download
M media/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M media/base/test_data_util.h View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
M media/base/test_data_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +28 lines, -4 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A + media/test/data/blackwhite.html View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/app_loader.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/clearkey_player.js View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/eme_app.js View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/file_io_test_player.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/fps_observer.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/globals.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/media_source_utils.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/player_utils.js View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/prefixed_clearkey_player.js View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/prefixed_widevine_player.js View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A media/test/data/eme_player_js/test_config.js View 1 chunk +65 lines, -0 lines 0 comments Download
A + media/test/data/eme_player_js/utils.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/eme_player_js/widevine_player.js View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/encrypted_frame_size_change.html View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/media_source_player.html View 1 2 3 4 5 2 chunks +9 lines, -6 lines 0 comments Download
A + media/test/data/mse_config_change.html View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
A + media/test/data/player.html View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + media/test/data/test_key_system_instantiation.html View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
shadi
PTAL.
6 years, 5 months ago (2014-07-01 23:00:49 UTC) #1
jrummell
I like that you're renaming the test files to be consistent. https://codereview.chromium.org/357413002/diff/120001/chrome/browser/media/media_browsertest.cc File chrome/browser/media/media_browsertest.cc (right): ...
6 years, 5 months ago (2014-07-02 00:33:41 UTC) #2
shadi
PTAL xhwang: got a question in comments for you. https://codereview.chromium.org/357413002/diff/120001/chrome/browser/media/media_browsertest.cc File chrome/browser/media/media_browsertest.cc (right): https://codereview.chromium.org/357413002/diff/120001/chrome/browser/media/media_browsertest.cc#newcode53 chrome/browser/media/media_browsertest.cc:53: ...
6 years, 5 months ago (2014-07-02 19:23:37 UTC) #3
xhwang
Looking pretty good. Just a few suggestions. https://codereview.chromium.org/357413002/diff/180001/chrome/browser/media/media_browsertest.h File chrome/browser/media/media_browsertest.h (right): https://codereview.chromium.org/357413002/diff/180001/chrome/browser/media/media_browsertest.h#newcode46 chrome/browser/media/media_browsertest.h:46: std::string RunTest(const ...
6 years, 5 months ago (2014-07-07 17:39:55 UTC) #4
shadi
Addresses comments. PTAL https://codereview.chromium.org/357413002/diff/180001/chrome/browser/media/media_browsertest.h File chrome/browser/media/media_browsertest.h (right): https://codereview.chromium.org/357413002/diff/180001/chrome/browser/media/media_browsertest.h#newcode46 chrome/browser/media/media_browsertest.h:46: std::string RunTest(const GURL& gurl, const std::string& ...
6 years, 5 months ago (2014-07-07 22:58:45 UTC) #5
xhwang
lgtm % nits. I like this CL! Thanks! https://codereview.chromium.org/357413002/diff/200001/chrome/browser/media/encrypted_media_browsertest.cc File chrome/browser/media/encrypted_media_browsertest.cc (right): https://codereview.chromium.org/357413002/diff/200001/chrome/browser/media/encrypted_media_browsertest.cc#newcode193 chrome/browser/media/encrypted_media_browsertest.cc:193: void ...
6 years, 5 months ago (2014-07-07 23:11:22 UTC) #6
shadi
Thanks https://codereview.chromium.org/357413002/diff/200001/chrome/browser/media/encrypted_media_browsertest.cc File chrome/browser/media/encrypted_media_browsertest.cc (right): https://codereview.chromium.org/357413002/diff/200001/chrome/browser/media/encrypted_media_browsertest.cc#newcode193 chrome/browser/media/encrypted_media_browsertest.cc:193: void StartLicenseServerIfNeeded( On 2014/07/07 23:11:22, xhwang wrote: > ...
6 years, 5 months ago (2014-07-07 23:38:14 UTC) #7
shadi
The CQ bit was checked by shadi@chromium.org
6 years, 5 months ago (2014-07-08 18:27:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/357413002/220001
6 years, 5 months ago (2014-07-08 18:29:08 UTC) #9
shadi
phajdan.jr: can you PTAL? ** Presubmit ERRORS ** Missing LGTM from OWNERS of dependencies added ...
6 years, 5 months ago (2014-07-08 21:29:34 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 21:35:50 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 21:40:05 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/78632)
6 years, 5 months ago (2014-07-08 21:40:07 UTC) #13
shadi
phajdan.jr is OOO, so picking owners from net/ asanka: can you PTAL to changes on ...
6 years, 5 months ago (2014-07-10 17:39:29 UTC) #14
asanka
https://codereview.chromium.org/357413002/diff/220001/media/base/test_data_util.cc File media/base/test_data_util.cc (right): https://codereview.chromium.org/357413002/diff/220001/media/base/test_data_util.cc#newcode41 media/base/test_data_util.cc:41: http_test_server.reset(new net::SpawnedTestServer( Have you considered using an EmbeddedTestServer instead? ...
6 years, 5 months ago (2014-07-11 17:30:36 UTC) #15
shadi
https://codereview.chromium.org/357413002/diff/220001/media/base/test_data_util.cc File media/base/test_data_util.cc (right): https://codereview.chromium.org/357413002/diff/220001/media/base/test_data_util.cc#newcode41 media/base/test_data_util.cc:41: http_test_server.reset(new net::SpawnedTestServer( On 2014/07/11 17:30:36, asanka wrote: > Have ...
6 years, 5 months ago (2014-07-11 18:19:55 UTC) #16
asanka
LGTM On 2014/07/11 18:19:55, shadi wrote: > https://codereview.chromium.org/357413002/diff/220001/media/base/test_data_util.cc > File media/base/test_data_util.cc (right): > > https://codereview.chromium.org/357413002/diff/220001/media/base/test_data_util.cc#newcode41 ...
6 years, 5 months ago (2014-07-11 20:29:58 UTC) #17
shadi1
The CQ bit was checked by shadi@google.com
6 years, 5 months ago (2014-07-11 20:53:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/357413002/220001
6 years, 5 months ago (2014-07-11 20:55:56 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-11 20:59:01 UTC) #20
shadi1
The CQ bit was unchecked by shadi@google.com
6 years, 5 months ago (2014-07-11 21:01:01 UTC) #21
shadi1
The CQ bit was checked by shadi@google.com
6 years, 5 months ago (2014-07-11 21:03:58 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/357413002/240001
6 years, 5 months ago (2014-07-11 21:06:36 UTC) #23
shadi
The CQ bit was checked by shadi@chromium.org
6 years, 5 months ago (2014-07-11 21:54:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/357413002/260001
6 years, 5 months ago (2014-07-11 21:54:56 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-12 02:11:57 UTC) #26
commit-bot: I haz the power
Change committed as 282795
6 years, 5 months ago (2014-07-12 04:47:47 UTC) #27
DaleCurtis
Hmm, why did you decide to put StartMediaHttpTestServer() in media? This requires media_unittests to now ...
6 years, 4 months ago (2014-08-01 21:37:00 UTC) #28
DaleCurtis
Alternatively, we can move this function into its own target which content/ can depend upon.
6 years, 4 months ago (2014-08-01 21:37:58 UTC) #29
DaleCurtis
6 years, 4 months ago (2014-08-01 21:57:18 UTC) #30
Message was sent while issue was closed.
Cleanup attempt here: https://codereview.chromium.org/438963005/

Powered by Google App Engine
This is Rietveld 408576698