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

Issue 9174020: PPAPI URLRequestInfo test: port NaCl version to ppapi_tests. Fix Var and Resource leaks. (Closed)

Created:
8 years, 11 months ago by polina1
Modified:
8 years, 11 months ago
CC:
chromium-reviews, elijahtaylor (use chromium)
Visibility:
Public.

Description

PPAPI URLRequestInfo test: port NaCl version to ppapi_tests. Fix Var and Resource leaks. I had to also port a couple of constants and helpers from native_client/ppapi_test_lib. TEST=ui_tests BUG=110242 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=119522

Patch Set 1 : '' #

Patch Set 2 : '' #

Total comments: 28

Patch Set 3 : Addressed review comments #

Patch Set 4 : Used ASSERTs where possible and reindented #define's. #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -371 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M ppapi/native_client/tests/ppapi_browser/ppb_url_request_info/nacl.scons View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A ppapi/tests/test_url_request.h View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A + ppapi/tests/test_url_request.cc View 1 2 3 4 chunks +276 lines, -370 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
polina1
8 years, 11 months ago (2012-01-14 02:17:19 UTC) #1
bbudge
Just a few comments. Thank you for doing this! http://codereview.chromium.org/9174020/diff/3004/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/9174020/diff/3004/chrome/test/ui/ppapi_uitest.cc#newcode483 chrome/test/ui/ppapi_uitest.cc:483: ...
8 years, 11 months ago (2012-01-16 16:24:29 UTC) #2
dmichael (off chromium)
mostly just nits. http://codereview.chromium.org/9174020/diff/3004/ppapi/tests/test_url_request.cc File ppapi/tests/test_url_request.cc (right): http://codereview.chromium.org/9174020/diff/3004/ppapi/tests/test_url_request.cc#newcode55 ppapi/tests/test_url_request.cc:55: if (!ppb_url_request_interface_) optional: You could just ...
8 years, 11 months ago (2012-01-17 18:38:02 UTC) #3
polina1
http://codereview.chromium.org/9174020/diff/3004/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/9174020/diff/3004/chrome/test/ui/ppapi_uitest.cc#newcode483 chrome/test/ui/ppapi_uitest.cc:483: TEST_PPAPI_NACL_VIA_HTTP(URLRequest_Stress) On 2012/01/16 16:24:29, bbudge1 wrote: > Each PPAPITest ...
8 years, 11 months ago (2012-01-26 02:56:26 UTC) #4
dmichael (off chromium)
just nits, LGTM http://codereview.chromium.org/9174020/diff/3004/ppapi/tests/test_url_request.cc File ppapi/tests/test_url_request.cc (right): http://codereview.chromium.org/9174020/diff/3004/ppapi/tests/test_url_request.cc#newcode55 ppapi/tests/test_url_request.cc:55: if (!ppb_url_request_interface_) On 2012/01/26 02:56:26, polina1 ...
8 years, 11 months ago (2012-01-26 17:13:43 UTC) #5
bbudge
LGTM. Thanks again Polina.
8 years, 11 months ago (2012-01-26 17:22:08 UTC) #6
polina1
http://codereview.chromium.org/9174020/diff/3004/ppapi/tests/test_url_request.cc File ppapi/tests/test_url_request.cc (right): http://codereview.chromium.org/9174020/diff/3004/ppapi/tests/test_url_request.cc#newcode90 ppapi/tests/test_url_request.cc:90: return "Create() passed with an invalid instance"; On 2012/01/26 ...
8 years, 11 months ago (2012-01-26 21:26:58 UTC) #7
dmichael (off chromium)
8 years, 11 months ago (2012-01-26 21:36:05 UTC) #8
LGTM, thank you!

http://codereview.chromium.org/9174020/diff/3004/ppapi/tests/test_url_request.cc
File ppapi/tests/test_url_request.cc (right):

http://codereview.chromium.org/9174020/diff/3004/ppapi/tests/test_url_request...
ppapi/tests/test_url_request.cc:137: #define TEST_BOOL(_name) \
On 2012/01/26 21:26:59, polina1 wrote:
> On 2012/01/26 17:13:43, dmichael wrote:
> > On 2012/01/26 02:56:26, polina1 wrote:
> > > On 2012/01/17 18:38:03, dmichael wrote:
> > > > nit: I think the style guide says that all precompiler directives should
> go
> > at
> > > > the start of the line (i.e., no 2-space indent). There's also no point
in
> > > having
> > > > it in the scope of the function. It doesn't hurt anything, so feel free
to
> > > leave
> > > > it in there if you like, but be aware that precompiler directives don't
> > > respect
> > > > scope.
> > > 
> > > Yeah, I know. I wanted to keep the diff with the original NaCl function
(not
> > > written by me) to a minimum, so it is easy to see how the test was ported.
> So
> > is
> > > it OK to leave things as-is?
> > How about just fixing the indentation so they are consistent with the style
> > guide? I don't think you need to move them out of the function body.
> 
> I shifted #define to the very left to be consistent with the style guide
> (although it was talking about #ifdef and such actually). And the rest is
> shifted 4 spaces. The style guide did not talk about that, but I found an
> example in the C++ primer.
The style guide says "preprocessor directives", which includes #define. I think
4-space indent is what I'm used to seeing, too.

Powered by Google App Engine
This is Rietveld 408576698