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

Issue 7218066: Had a bug in the handle table unit test. (Closed)

Created:
9 years, 5 months ago by jschuh
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Had a bug in the handle table unit test. Added GetHandleName to fix the bug and make handle management easier. TEST=sbox_unittests --gtest_filter=HandleTable.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91270 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92403

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -14 lines) Patch
M sandbox/src/handle_table.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M sandbox/src/handle_table.cc View 1 2 3 4 chunks +25 lines, -13 lines 0 comments Download
M sandbox/src/handle_table_unittest.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
jschuh
Quick fix for a unit test plus a new helper function.
9 years, 5 months ago (2011-06-30 01:51:29 UTC) #1
nsylvain
http://codereview.chromium.org/7218066/diff/1/sandbox/src/handle_table.cc File sandbox/src/handle_table.cc (right): http://codereview.chromium.org/7218066/diff/1/sandbox/src/handle_table.cc#newcode150 sandbox/src/handle_table.cc:150: size, &size); should you not align size with handle? ...
9 years, 5 months ago (2011-06-30 19:21:46 UTC) #2
cpu_(ooo_6.6-7.5)
lgtm http://codereview.chromium.org/7218066/diff/1/sandbox/src/handle_table.cc File sandbox/src/handle_table.cc (right): http://codereview.chromium.org/7218066/diff/1/sandbox/src/handle_table.cc#newcode156 sandbox/src/handle_table.cc:156: return result; I would return a boolean. That ...
9 years, 5 months ago (2011-06-30 20:39:39 UTC) #3
jschuh
http://codereview.chromium.org/7218066/diff/1/sandbox/src/handle_table.cc File sandbox/src/handle_table.cc (right): http://codereview.chromium.org/7218066/diff/1/sandbox/src/handle_table.cc#newcode150 sandbox/src/handle_table.cc:150: size, &size); On 2011/06/30 19:21:46, nsylvain wrote: > should ...
9 years, 5 months ago (2011-07-01 01:24:26 UTC) #4
commit-bot: I haz the power
Change committed as 91270
9 years, 5 months ago (2011-07-01 05:10:57 UTC) #5
nsylvain
9 years, 5 months ago (2011-07-01 19:23:28 UTC) #6
http://codereview.chromium.org/7218066/diff/1/sandbox/src/handle_table_unitte...
File sandbox/src/handle_table_unittest.cc (right):

http://codereview.chromium.org/7218066/diff/1/sandbox/src/handle_table_unitte...
sandbox/src/handle_table_unittest.cc:51:
ASSERT_EQ(NT_SUCCESS(sandbox::GetHandleName(file, &handle_name)), true);
On 2011/07/01 01:24:26, Justin Schuh wrote:
> On 2011/06/30 19:21:46, nsylvain wrote:
> > TRUE instead of true ?
> 
> No, using a bool not BOOL.

NT_SUCCESS returns TRUE or FALSE, and ASSERT_EQ compares that with "true", this
will work, but i think it is more correct to use TRUE.

Powered by Google App Engine
This is Rietveld 408576698