DescriptionPPAPI/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 #
Messages
Total messages: 4 (0 generated)
|