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

Issue 10383167: PPAPI/NaCl: Fix leaky NaClIPCAdapter test. (Closed)

Created:
8 years, 7 months ago by dmichael (off chromium)
Modified:
8 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews, jam, pam+watch_chromium.org, timurrrr+watch_chromium.org, darin-cc_chromium.org, native-client-reviews_googlegroups.com, glider+watch_chromium.org, bruening+watch_chromium.org
Visibility:
Public.

Description

PPAPI/NaCl: Fix leaky NaClIPCAdapter test. The NaClIPCAdapter was not leaking, but the Channel deletion is posted as a task that the test was not running. This makes all the NaClIPCAdapter test cases do RunAllPending on shutdown to delete stuff. Unfortunately, one of the tests results in calling "Close()" on the channel in one of these tasks, and that fails for IPC::TestSink, because IPC::Channel::Close dereferences channel_impl_ unconditionally, and the channel_impl_ is NULL for TestSink. So this patch also makes Channel::Close() do nothing if channel_impl_ is NULL. BUG=127954 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137471

Patch Set 1 #

Patch Set 2 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -48 lines) Patch
M chrome/nacl/nacl_ipc_adapter_unittest.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ipc/ipc_channel_win.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/heapcheck/suppressions.txt View 1 1 chunk +0 lines, -38 lines 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
dmichael (off chromium)
I'm not sure if this is worth changing ipc_channel_{posix|win}.cc for. We could just leave the ...
8 years, 7 months ago (2012-05-14 22:15:27 UTC) #1
brettw
lgtm
8 years, 7 months ago (2012-05-16 05:17:29 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/10383167/9001
8 years, 7 months ago (2012-05-16 17:18:01 UTC) #3
commit-bot: I haz the power
8 years, 7 months ago (2012-05-16 18:58:36 UTC) #4
Change committed as 137471

Powered by Google App Engine
This is Rietveld 408576698