[autotest] audio_AudioBasicBluetooth*: Use set_chrome_active_node_type

Use chrome.extension API to select node. This fix the race when
cras_test_client and Chrome select node at the same time.

Also, only select bluetooth input node when there is internal mic. Otherwise,
bluetooth input node should be automatically selected.

BUG=chromium:547100
TEST=run audio_AudioBasicBluetoothRecord.suspend and
audio_AudioBasicBluetoothPlaybackRecord.suspend on link.
Change-Id: I1a319509c6d63ee8360bf57db3268b6c6e5be30e
Reviewed-on: https://chromium-review.googlesource.com/313230
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Kalin Stoyanov <kalin@chromium.org>
2 files changed