DBus: 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.


Review URL: https://chromiumcodereview.appspot.com/12039033

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178450 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: bda573565d5f1f32fd1674dac23829b3202bef42
1 file changed
tree: 39b99672b09ec35c676fa59e6fa2fdc8408723b3
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/