adhd: Fix memory leaks and refactor in a2dp_iodev_unittest

(8/17 leaking tests for the issue)

Memory leak at variable dummy_audio_area and atlog.
Create class A2dpIodev with SetUp and TearDown for stub data.

BUG=chromium:844092
TEST=FEATURES="test noclean nostrip" emerge-eve adhd
and
valgrind --leak-check=full --show-leak-kinds=all a2dp_iodev_unittest

Change-Id: I2de3c3b919ba689a0423703e63130da74246de46
Reviewed-on: https://chromium-review.googlesource.com/1068783
Commit-Ready: Chih-Yang Hsia <paulhsia@chromium.org>
Tested-by: Chih-Yang Hsia <paulhsia@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
1 file changed