Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(827)

Issue 240523002: Add test to make sure if PPB_Audio_Shared::StartThread() works. (Closed)

Created:
6 years, 8 months ago by hidehiko
Modified:
6 years, 8 months ago
CC:
chromium-reviews, hamaji, mazda, teravest
Visibility:
Public.

Description

Add test to make sure if PPB_Audio_Shared::StartThread() works. To NaCl in either SFI or non-SFI mode, PPB_Audio_Shraed::StartThread requires ppapi_register_thread_creator invoked in advance. Currently no test about it. This CL adds the test. Tests are guarded by #ifdef __native_client__, because it won't work and is meaningless for trusted plugins. TEST=Ran browser_tests --gtest_filter=*AudioThreadCreation locally, and ran trybots. BUG=359710 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264974

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 12

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -4 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M ppapi/native_client/src/untrusted/irt_stub/thread_creator.h View 1 chunk +8 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_audio_proxy.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_shared.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_shared.cc View 1 2 3 2 chunks +12 lines, -4 lines 0 comments Download
M ppapi/tests/DEPS View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/tests/test_audio.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/tests/test_audio.cc View 1 2 3 4 5 3 chunks +167 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Mark Seaborn
https://codereview.chromium.org/240523002/diff/1/ppapi/tests/test_audio.cc File ppapi/tests/test_audio.cc (right): https://codereview.chromium.org/240523002/diff/1/ppapi/tests/test_audio.cc#newcode36 ppapi/tests/test_audio.cc:36: Elf32_auxv_t* FindAuxv(void) { You should be able to use ...
6 years, 8 months ago (2014-04-16 20:00:00 UTC) #1
hidehiko
Could you take a look? Thanks, - hidehiko https://codereview.chromium.org/240523002/diff/1/ppapi/tests/test_audio.cc File ppapi/tests/test_audio.cc (right): https://codereview.chromium.org/240523002/diff/1/ppapi/tests/test_audio.cc#newcode36 ppapi/tests/test_audio.cc:36: Elf32_auxv_t* ...
6 years, 8 months ago (2014-04-17 14:05:14 UTC) #2
dmichael (off chromium)
bbudge@, would you be willing to look at this?
6 years, 8 months ago (2014-04-17 21:30:07 UTC) #3
bbudge
On 2014/04/17 21:30:07, dmichael wrote: > bbudge@, would you be willing to look at this? ...
6 years, 8 months ago (2014-04-17 21:33:47 UTC) #4
bbudge
https://codereview.chromium.org/240523002/diff/60001/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): https://codereview.chromium.org/240523002/diff/60001/ppapi/shared_impl/ppb_audio_shared.cc#newcode90 ppapi/shared_impl/ppb_audio_shared.cc:90: playing_ = false; This makes the comment above false. ...
6 years, 8 months ago (2014-04-17 21:44:27 UTC) #5
hidehiko
Thank you for review. Could you take another look? https://codereview.chromium.org/240523002/diff/60001/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): https://codereview.chromium.org/240523002/diff/60001/ppapi/shared_impl/ppb_audio_shared.cc#newcode90 ppapi/shared_impl/ppb_audio_shared.cc:90: ...
6 years, 8 months ago (2014-04-17 23:03:36 UTC) #6
bbudge
https://codereview.chromium.org/240523002/diff/60001/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): https://codereview.chromium.org/240523002/diff/60001/ppapi/shared_impl/ppb_audio_shared.cc#newcode90 ppapi/shared_impl/ppb_audio_shared.cc:90: playing_ = false; On 2014/04/17 23:03:37, hidehiko wrote: > ...
6 years, 8 months ago (2014-04-18 13:27:24 UTC) #7
bbudge
https://codereview.chromium.org/240523002/diff/80001/ppapi/proxy/ppb_audio_proxy.cc File ppapi/proxy/ppb_audio_proxy.cc (right): https://codereview.chromium.org/240523002/diff/80001/ppapi/proxy/ppb_audio_proxy.cc#newcode99 ppapi/proxy/ppb_audio_proxy.cc:99: return PP_FALSE; On 2014/04/18 13:27:25, bbudge wrote: > Could ...
6 years, 8 months ago (2014-04-18 13:34:40 UTC) #8
bbudge
https://codereview.chromium.org/240523002/diff/80001/ppapi/proxy/ppb_audio_proxy.cc File ppapi/proxy/ppb_audio_proxy.cc (right): https://codereview.chromium.org/240523002/diff/80001/ppapi/proxy/ppb_audio_proxy.cc#newcode99 ppapi/proxy/ppb_audio_proxy.cc:99: return PP_FALSE; On 2014/04/18 13:34:40, bbudge wrote: > On ...
6 years, 8 months ago (2014-04-18 15:08:07 UTC) #9
Mark Seaborn
https://codereview.chromium.org/240523002/diff/80001/ppapi/tests/test_audio.cc File ppapi/tests/test_audio.cc (right): https://codereview.chromium.org/240523002/diff/80001/ppapi/tests/test_audio.cc#newcode40 ppapi/tests/test_audio.cc:40: int g_num_thread_create_called = 0; Could you also check that ...
6 years, 8 months ago (2014-04-18 15:28:20 UTC) #10
hidehiko
Thank you for review. Could you take another look? https://codereview.chromium.org/240523002/diff/80001/ppapi/proxy/ppb_audio_proxy.cc File ppapi/proxy/ppb_audio_proxy.cc (right): https://codereview.chromium.org/240523002/diff/80001/ppapi/proxy/ppb_audio_proxy.cc#newcode99 ppapi/proxy/ppb_audio_proxy.cc:99: ...
6 years, 8 months ago (2014-04-18 18:16:29 UTC) #11
bbudge
Thanks. LGTM https://codereview.chromium.org/240523002/diff/120001/ppapi/shared_impl/ppb_audio_shared.h File ppapi/shared_impl/ppb_audio_shared.h (right): https://codereview.chromium.org/240523002/diff/120001/ppapi/shared_impl/ppb_audio_shared.h#newcode85 ppapi/shared_impl/ppb_audio_shared.h:85: // is invoked properly. s/is/was or 'has ...
6 years, 8 months ago (2014-04-18 18:44:13 UTC) #12
hidehiko
Thank you for review, Bill. Mark, could you take another look, too? https://codereview.chromium.org/240523002/diff/120001/ppapi/shared_impl/ppb_audio_shared.h File ppapi/shared_impl/ppb_audio_shared.h ...
6 years, 8 months ago (2014-04-18 19:01:37 UTC) #13
Mark Seaborn
LGTM with a suggestion. https://codereview.chromium.org/240523002/diff/140001/ppapi/tests/test_audio.cc File ppapi/tests/test_audio.cc (right): https://codereview.chromium.org/240523002/diff/140001/ppapi/tests/test_audio.cc#newcode431 ppapi/tests/test_audio.cc:431: You might split this function, ...
6 years, 8 months ago (2014-04-18 19:59:19 UTC) #14
hidehiko
The tests passed. Sending to CQ. https://codereview.chromium.org/240523002/diff/140001/ppapi/tests/test_audio.cc File ppapi/tests/test_audio.cc (right): https://codereview.chromium.org/240523002/diff/140001/ppapi/tests/test_audio.cc#newcode431 ppapi/tests/test_audio.cc:431: On 2014/04/18 19:59:19, ...
6 years, 8 months ago (2014-04-21 04:16:04 UTC) #15
hidehiko
The CQ bit was checked by [email protected]
6 years, 8 months ago (2014-04-21 04:16:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/240523002/160001
6 years, 8 months ago (2014-04-21 04:16:36 UTC) #17
commit-bot: I haz the power
6 years, 8 months ago (2014-04-21 10:36:23 UTC) #18
Message was sent while issue was closed.
Change committed as 264974

Powered by Google App Engine
This is Rietveld 408576698