DescriptionDBus: Fixes a flaky test case.
In the UnregisterExportedObject test, an ExportedObject is created, destroyed
and created again as a new object. The test assumes the new object is different
from the first one just comparing the memory pointers to those objects.
Nevertheless, the memory manager could possibly alloc the same memory address
for the second object since the first one was already destroyed. This fixes
this situation preventing the first object from being destroyed incrementing
its reference count.
BUG=chromium:137846
TEST=test enabled.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178450
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|