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

Issue 15039009: Add PPAPI tests for VideoSource and VideoDestination resources. (Closed)

Created:
7 years, 7 months ago by bbudge
Modified:
7 years, 7 months ago
CC:
chromium-reviews, juberti2, dmichael (off chromium)
Visibility:
Public.

Description

Add PPAPI tests for VideoSource and VideoDestination resources. BUG=230980 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199626

Patch Set 1 #

Patch Set 2 : Fix proxy so basic tests pass. #

Total comments: 13

Patch Set 3 : Use IPC traits to pass PP_ImageDataDesc. #

Patch Set 4 : Address comments on test code. #

Total comments: 6

Patch Set 5 : Fix VideoDestination thunk for PutFrame. #

Total comments: 7

Patch Set 6 : Use a refcounted helper to receive frames. #

Total comments: 8

Patch Set 7 : Make reply sending code a little clearer. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -92 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/ppapi/ppapi_test.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_video_source_host.h View 1 2 3 4 5 6 4 chunks +32 lines, -13 lines 0 comments Download
M content/renderer/pepper/pepper_video_source_host.cc View 1 2 3 4 5 6 7 chunks +112 lines, -69 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -2 lines 0 comments Download
M ppapi/proxy/video_source_resource.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M ppapi/proxy/video_source_resource.cc View 1 2 3 chunks +22 lines, -5 lines 0 comments Download
A ppapi/tests/test_video_destination.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A ppapi/tests/test_video_destination.cc View 1 2 3 4 1 chunk +127 lines, -0 lines 0 comments Download
A ppapi/tests/test_video_source.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A ppapi/tests/test_video_source.cc View 1 2 3 4 1 chunk +121 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_video_destination_private_thunk.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
bbudge
To run these, build browser_tests and use --gtest_filter="OutOfProcessPPAPITest.VideoSource" or VideoDestination. The tests fail now because ...
7 years, 7 months ago (2013-05-07 20:48:48 UTC) #1
bbudge
Raymes for proxy host and resource (and tests if you'd like). Ronghua for tests.
7 years, 7 months ago (2013-05-09 21:24:08 UTC) #2
bbudge
+Chris for IPC review (ppapi_messages.h)
7 years, 7 months ago (2013-05-09 21:39:19 UTC) #3
bbudge
https://codereview.chromium.org/15039009/diff/3001/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://codereview.chromium.org/15039009/diff/3001/ppapi/proxy/ppapi_messages.h#newcode1867 ppapi/proxy/ppapi_messages.h:1867: std::string /* image_data_desc */, We're using string to marshal ...
7 years, 7 months ago (2013-05-09 21:40:25 UTC) #4
bbudge
https://codereview.chromium.org/15039009/diff/3001/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://codereview.chromium.org/15039009/diff/3001/ppapi/proxy/ppapi_messages.h#newcode1867 ppapi/proxy/ppapi_messages.h:1867: std::string /* image_data_desc */, We're using string to marshal ...
7 years, 7 months ago (2013-05-09 21:40:25 UTC) #5
palmer
https://codereview.chromium.org/15039009/diff/3001/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/15039009/diff/3001/content/renderer/pepper/pepper_video_source_host.cc#newcode183 content/renderer/pepper/pepper_video_source_host.cc:183: memcpy(&(image_desc_data)[0], &image_desc, sizeof(PP_ImageDataDesc)); Isn't there a way to describe ...
7 years, 7 months ago (2013-05-09 21:55:13 UTC) #6
Ronghua Wu (Left Chromium)
https://codereview.chromium.org/15039009/diff/3001/chrome/test/ppapi/ppapi_browsertest.cc File chrome/test/ppapi/ppapi_browsertest.cc (right): https://codereview.chromium.org/15039009/diff/3001/chrome/test/ppapi/ppapi_browsertest.cc#newcode1259 chrome/test/ppapi/ppapi_browsertest.cc:1259: TEST_PPAPI_OUT_OF_PROCESS(VideoSource) do we still need TEST_PPAPI_NACL? https://codereview.chromium.org/15039009/diff/3001/ppapi/tests/test_video_destination.cc File ppapi/tests/test_video_destination.cc ...
7 years, 7 months ago (2013-05-09 22:22:52 UTC) #7
bbudge
https://codereview.chromium.org/15039009/diff/3001/chrome/test/ppapi/ppapi_browsertest.cc File chrome/test/ppapi/ppapi_browsertest.cc (right): https://codereview.chromium.org/15039009/diff/3001/chrome/test/ppapi/ppapi_browsertest.cc#newcode1259 chrome/test/ppapi/ppapi_browsertest.cc:1259: TEST_PPAPI_OUT_OF_PROCESS(VideoSource) No, because they will fail without a proxy. ...
7 years, 7 months ago (2013-05-09 22:35:35 UTC) #8
Ronghua Wu (Left Chromium)
*test* LGTM
7 years, 7 months ago (2013-05-09 22:42:55 UTC) #9
palmer
lgtm https://codereview.chromium.org/15039009/diff/19001/ppapi/tests/test_video_destination.cc File ppapi/tests/test_video_destination.cc (right): https://codereview.chromium.org/15039009/diff/19001/ppapi/tests/test_video_destination.cc#newcode42 ppapi/tests/test_video_destination.cc:42: PPB_VIDEODESTINATION_PRIVATE_INTERFACE)); Style nit: I think the standard is ...
7 years, 7 months ago (2013-05-09 23:48:11 UTC) #10
bbudge
https://codereview.chromium.org/15039009/diff/19001/ppapi/tests/test_video_destination.cc File ppapi/tests/test_video_destination.cc (right): https://codereview.chromium.org/15039009/diff/19001/ppapi/tests/test_video_destination.cc#newcode42 ppapi/tests/test_video_destination.cc:42: PPB_VIDEODESTINATION_PRIVATE_INTERFACE)); Yeah, I should switch to the clang format ...
7 years, 7 months ago (2013-05-10 00:13:13 UTC) #11
truongphongluan
7 years, 7 months ago (2013-05-10 00:39:45 UTC) #12
raymes
https://codereview.chromium.org/15039009/diff/27001/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/15039009/diff/27001/content/renderer/pepper/pepper_video_source_host.cc#newcode65 content/renderer/pepper/pepper_video_source_host.cc:65: base::Unretained(this), I guess this wasn't right before because we ...
7 years, 7 months ago (2013-05-10 05:32:10 UTC) #13
bbudge
https://codereview.chromium.org/15039009/diff/27001/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/15039009/diff/27001/content/renderer/pepper/pepper_video_source_host.cc#newcode65 content/renderer/pepper/pepper_video_source_host.cc:65: base::Unretained(this), The RTC folks say this can't be called ...
7 years, 7 months ago (2013-05-10 12:31:12 UTC) #14
bbudge
https://codereview.chromium.org/15039009/diff/27001/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/15039009/diff/27001/content/renderer/pepper/pepper_video_source_host.cc#newcode65 content/renderer/pepper/pepper_video_source_host.cc:65: base::Unretained(this), While out on my morning run, around mile ...
7 years, 7 months ago (2013-05-10 13:52:59 UTC) #15
raymes
https://codereview.chromium.org/15039009/diff/37001/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/15039009/diff/37001/content/renderer/pepper/pepper_video_source_host.cc#newcode131 content/renderer/pepper/pepper_video_source_host.cc:131: void PepperVideoSourceHost::SendGetFrameReply() { I think the state is a ...
7 years, 7 months ago (2013-05-10 15:14:47 UTC) #16
bbudge
https://codereview.chromium.org/15039009/diff/37001/content/renderer/pepper/pepper_video_source_host.cc File content/renderer/pepper/pepper_video_source_host.cc (right): https://codereview.chromium.org/15039009/diff/37001/content/renderer/pepper/pepper_video_source_host.cc#newcode131 content/renderer/pepper/pepper_video_source_host.cc:131: void PepperVideoSourceHost::SendGetFrameReply() { On 2013/05/10 15:14:48, raymes wrote: > ...
7 years, 7 months ago (2013-05-10 17:38:21 UTC) #17
bbudge
7 years, 7 months ago (2013-05-10 22:37:17 UTC) #18
raymes1
lgtm
7 years, 7 months ago (2013-05-10 22:50:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/15039009/52001
7 years, 7 months ago (2013-05-10 22:55:54 UTC) #20
yzshen1
test OWNER rubber stamp.
7 years, 7 months ago (2013-05-10 23:02:36 UTC) #21
yzshen1
On 2013/05/10 23:02:36, yzshen1 wrote: > test OWNER rubber stamp. LGTM. :)
7 years, 7 months ago (2013-05-10 23:02:48 UTC) #22
commit-bot: I haz the power
7 years, 7 months ago (2013-05-11 19:23:40 UTC) #23
Message was sent while issue was closed.
Change committed as 199626

Powered by Google App Engine
This is Rietveld 408576698