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

Issue 184813009: Cast Streaming API end-to-end browser_test. (Closed)

Created:
6 years, 9 months ago by miu
Modified:
6 years, 9 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, mikhal+watch_chromium.org, extensions-reviews_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, pwestin+watch_google.com, feature-media-reviews_chromium.org, chromium-apps-reviews_chromium.org, hubbe+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Cast Streaming API end-to-end browser_test. Similar to the TabCaptureApi.EndToEnd test: An extension is run that generates a rotating cycle of colors and audio tones, and the result is captured and streamed to an in-process Cast receiver. In addition: 1. Refactored existing code out of the cast_receiver_app into a shared InProcessReceiver class. 2. Added a convenient StandaloneCastEnvironment for test apps. 3. Got rid of the cast_receiver_app prompts since the defaults are used >99% of the time. Using the --enable-prompts command line arg will show them again. 4. Minor clean-ups in files touched. NOTE: The new EndToEnd test is being submitted as disabled while outstanding bugs are worked by the team. Will re-enable once the implementation is sufficiently stable for the bots. R=hubbe@chromium.org, kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255805

Patch Set 1 #

Total comments: 34

Patch Set 2 : Addressed hubbe's comments, and fixed threading/shutdown issues. #

Total comments: 9

Patch Set 3 : Fix cast video resolution issues. #

Patch Set 4 : Remove ref-counting of InProcessReceiver and always destroy it on the MAIN thread. #

Total comments: 4

Patch Set 5 : Addressed hubbe's final nits + REBASE. #

Patch Set 6 : Fix LoggingImplTest + REBASE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1007 lines, -225 lines) Patch
A + chrome/browser/extensions/api/cast_streaming/DEPS View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/extensions/api/cast_streaming/OWNERS View 1 1 chunk +0 lines, -1 line 0 comments Download
A chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc View 1 2 3 4 1 chunk +332 lines, -0 lines 0 comments Download
D chrome/browser/extensions/cast_streaming_apitest.cc View 1 2 3 4 1 chunk +0 lines, -35 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 3 chunks +2 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/cast_streaming/end_to_end_sender.html View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/cast_streaming/end_to_end_sender.js View 1 2 3 1 chunk +143 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/cast_streaming/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M media/cast/cast_environment.h View 1 2 3 4 chunks +13 lines, -10 lines 0 comments Download
M media/cast/cast_environment.cc View 1 2 3 4 chunks +21 lines, -34 lines 0 comments Download
M media/cast/cast_receiver_impl.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/logging/logging_impl.h View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M media/cast/logging/logging_impl.cc View 1 2 3 4 7 chunks +18 lines, -17 lines 0 comments Download
M media/cast/logging/logging_impl_unittest.cc View 1 2 3 4 5 3 chunks +1 line, -4 lines 0 comments Download
M media/cast/test/linux_output_window.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M media/cast/test/linux_output_window.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M media/cast/test/receiver.cc View 1 2 3 8 chunks +41 lines, -103 lines 0 comments Download
A media/cast/test/utility/default_config.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A media/cast/test/utility/default_config.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
A media/cast/test/utility/in_process_receiver.h View 1 2 3 1 chunk +113 lines, -0 lines 0 comments Download
A media/cast/test/utility/in_process_receiver.cc View 1 2 3 1 chunk +126 lines, -0 lines 0 comments Download
M media/cast/test/utility/input_builder.cc View 3 chunks +6 lines, -0 lines 0 comments Download
A media/cast/test/utility/standalone_cast_environment.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
A media/cast/test/utility/standalone_cast_environment.cc View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
M media/cast/test/utility/utility.gyp View 1 2 chunks +11 lines, -3 lines 0 comments Download
M media/cast/transport/cast_transport_sender_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
miu
hubbe: PTAL. If there's something I can do here in the code factoring to help ...
6 years, 9 months ago (2014-03-01 02:45:53 UTC) #1
hubbe
https://codereview.chromium.org/184813009/diff/1/chrome/browser/extensions/DEPS File chrome/browser/extensions/DEPS (right): https://codereview.chromium.org/184813009/diff/1/chrome/browser/extensions/DEPS#newcode20 chrome/browser/extensions/DEPS:20: specific_include_rules = { I wonder if it would be ...
6 years, 9 months ago (2014-03-04 22:42:26 UTC) #2
miu
Addressed your comments, and also got the test working now (except audio is currently broken ...
6 years, 9 months ago (2014-03-06 06:09:15 UTC) #3
hubbe
https://codereview.chromium.org/184813009/diff/1/chrome/browser/extensions/DEPS File chrome/browser/extensions/DEPS (right): https://codereview.chromium.org/184813009/diff/1/chrome/browser/extensions/DEPS#newcode20 chrome/browser/extensions/DEPS:20: specific_include_rules = { On 2014/03/06 06:09:15, miu wrote: > ...
6 years, 9 months ago (2014-03-06 19:54:42 UTC) #4
miu
hubbe: PTAL. https://codereview.chromium.org/184813009/diff/1/chrome/browser/extensions/cast_streaming_apitest.cc File chrome/browser/extensions/cast_streaming_apitest.cc (right): https://codereview.chromium.org/184813009/diff/1/chrome/browser/extensions/cast_streaming_apitest.cc#newcode208 chrome/browser/extensions/cast_streaming_apitest.cc:208: *average += weight * sample_value - weight ...
6 years, 9 months ago (2014-03-07 22:40:28 UTC) #5
miu
kalman: Need OWNERS approval for adding cast_streaming dir under src/chrome/browser/extensions/api.
6 years, 9 months ago (2014-03-07 22:41:42 UTC) #6
not at google - send to devlin
lgtm
6 years, 9 months ago (2014-03-07 22:43:30 UTC) #7
hubbe
LGTM + 2 nits https://codereview.chromium.org/184813009/diff/60001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc File chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc (right): https://codereview.chromium.org/184813009/diff/60001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc#newcode122 chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc:122: // TODO(miu): Check audio tone ...
6 years, 9 months ago (2014-03-07 22:48:50 UTC) #8
miu
https://codereview.chromium.org/184813009/diff/60001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc File chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc (right): https://codereview.chromium.org/184813009/diff/60001/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc#newcode122 chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc:122: // TODO(miu): Check audio tone too, once audio is ...
6 years, 9 months ago (2014-03-08 02:20:49 UTC) #9
miu
The CQ bit was checked by miu@chromium.org
6 years, 9 months ago (2014-03-08 02:20:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/184813009/80001
6 years, 9 months ago (2014-03-08 11:15:24 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 12:51:53 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
6 years, 9 months ago (2014-03-08 12:51:53 UTC) #13
miu
The CQ bit was checked by miu@chromium.org
6 years, 9 months ago (2014-03-08 21:33:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/184813009/100001
6 years, 9 months ago (2014-03-08 21:33:42 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 22:49:33 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234602
6 years, 9 months ago (2014-03-08 22:49:34 UTC) #17
miu
The CQ bit was checked by miu@chromium.org
6 years, 9 months ago (2014-03-08 23:30:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/184813009/100001
6 years, 9 months ago (2014-03-08 23:30:33 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-09 00:27:16 UTC) #20
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234639
6 years, 9 months ago (2014-03-09 00:27:17 UTC) #21
miu
6 years, 9 months ago (2014-03-09 01:42:02 UTC) #22
Message was sent while issue was closed.
Committed patchset #6 manually as r255805 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698