Deflake WMITest tests.

These tests were reaching through a ComPtr to call Release on underlying
interface pointers. This is a no-no, as the ComPtr still thinks it's
holding a ref on the interface and will Release again in its dtor. This
is a crashtrocity. This here CL changes such calls to the Reset method
on the ComPtr itself, which does what the test actually intended:
releases the ref held on the interface pointer and forgets about it.

BUG=923562
R=gab@chromium.org

Change-Id: Ie7276f868e88eb63e19605d877fc5c9373564fbf
Reviewed-on: https://chromium-review.googlesource.com/c/1424942
Auto-Submit: Greg Thompson <grt@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#624616}
1 file changed