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

Issue 7648033: Add means for running some tests only o-o-p, add messaging o-o-p test. (Closed)

Created:
9 years, 4 months ago by dmichael (off chromium)
Modified:
9 years, 3 months ago
Reviewers:
polina, brettw
CC:
chromium-reviews, piman+watch_chromium.org, polarbear.lost
Visibility:
Public.

Description

Add means for running some tests only o-o-p. Add messaging non-main thread test. BUG=92909 TEST=included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98826

Patch Set 1 #

Patch Set 2 : Add thread wrappers so we can test on Windows. #

Patch Set 3 : Fix up windows threading #

Total comments: 3

Patch Set 4 : Enable the test on Windows. Make each thread send multiple messages. #

Total comments: 19

Patch Set 5 : Review fixes #

Patch Set 6 : Add improved comment #

Patch Set 7 : merged #

Patch Set 8 : merge #

Patch Set 9 : updated a copyright header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -12 lines) Patch
M ppapi/c/dev/ppb_testing_dev.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -2 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_testing_proxy.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
A ppapi/tests/pp_thread.h View 1 2 3 4 5 1 chunk +117 lines, -0 lines 0 comments Download
M ppapi/tests/test_case.h View 1 chunk +12 lines, -6 lines 0 comments Download
M ppapi/tests/test_post_message.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/tests/test_post_message.cc View 1 2 3 4 5 6 7 4 chunks +82 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dmichael (off chromium)
This is just a tiny baby step towards allowing calls off of the main thread. ...
9 years, 4 months ago (2011-08-16 19:42:26 UTC) #1
brettw
http://codereview.chromium.org/7648033/diff/6001/ppapi/c/pp_macros.h File ppapi/c/pp_macros.h (right): http://codereview.chromium.org/7648033/diff/6001/ppapi/c/pp_macros.h#newcode97 ppapi/c/pp_macros.h:97: #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \ I'd ...
9 years, 4 months ago (2011-08-16 22:55:53 UTC) #2
polina
http://codereview.chromium.org/7648033/diff/6001/ppapi/ppapi_tests.gypi File ppapi/ppapi_tests.gypi (right): http://codereview.chromium.org/7648033/diff/6001/ppapi/ppapi_tests.gypi#newcode75 ppapi/ppapi_tests.gypi:75: 'tests/pp_thread.h', why in this in the tests dir? http://codereview.chromium.org/7648033/diff/6001/ppapi/tests/pp_thread.h ...
9 years, 4 months ago (2011-08-17 17:58:15 UTC) #3
dmichael (off chromium)
Thanks for the reviews. Comments addressed, PTAL. http://codereview.chromium.org/7648033/diff/6001/ppapi/c/pp_macros.h File ppapi/c/pp_macros.h (right): http://codereview.chromium.org/7648033/diff/6001/ppapi/c/pp_macros.h#newcode97 ppapi/c/pp_macros.h:97: #if defined(__linux__) ...
9 years, 4 months ago (2011-08-17 21:15:15 UTC) #4
brettw
LGTM
9 years, 4 months ago (2011-08-18 16:19:50 UTC) #5
polina
9 years, 4 months ago (2011-08-18 20:02:33 UTC) #6
LGTM

http://codereview.chromium.org/7648033/diff/4001/ppapi/tests/test_case.h
File ppapi/tests/test_case.h (right):

http://codereview.chromium.org/7648033/diff/4001/ppapi/tests/test_case.h#newc...
ppapi/tests/test_case.h:150: } while (false)
On 2011/08/16 19:42:26, dmichael wrote:
> This is just so you can safely do stuff like:
> if (blah)
>   RUN_TEST(blab);
> (I could have used curly braces, but wanted to foolproof it)

it's better this way
we use this approach in nacl_macros.h, etc.
thanks for making the improvement

http://codereview.chromium.org/7648033/diff/6001/ppapi/ppapi_tests.gypi
File ppapi/ppapi_tests.gypi (right):

http://codereview.chromium.org/7648033/diff/6001/ppapi/ppapi_tests.gypi#newco...
ppapi/ppapi_tests.gypi:75: 'tests/pp_thread.h',
On 2011/08/17 21:15:15, dmichael wrote:
> On 2011/08/17 17:58:15, polina wrote:
> > why in this in the tests dir?
> By request from Brett. I was going to put it in ppapi/c, but we don't really
> need it for anything other than tests (yet?), and all 3rd party (NaCl)
> developers can just use posix.
> 
> I left it in the style it would need to be to move in to ppapi/c/ so that it
can
> go there if/when we need it for other things (like maybe thread-safe C++
> wrappers)

I would add a comment explaining all this to the header.

Powered by Google App Engine
This is Rietveld 408576698