Bluetooth: enable/disable newblue in autotest

Support new command line argument "newblue=enable". Autotest will now
enable/disable newblue through crosh and reboot if needed. DBUS
service name if updated upon initializaiton to newblue if needed.

BUG=b:139309816
TEST=bluetooth_AdapterLESanity is passed on EVE and ATLAS with new
commnad line arugment newblue=enable

Change-Id: Ia659b43beff17200d9176f1c8c902c74b3f4e53c
Reviewed-on: https://chromium-review.googlesource.com/1749615
Tested-by: Michael Sun <michaelfsun@google.com>
Commit-Ready: Michael Sun <michaelfsun@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Yoni Shavit <yshavit@chromium.org>
diff --git a/server/site_tests/bluetooth_AdapterSASanity/control.sa_discoverable_timeout_test b/server/site_tests/bluetooth_AdapterSASanity/control.sa_discoverable_timeout_test
index 9d93d8b..3fccbba 100644
--- a/server/site_tests/bluetooth_AdapterSASanity/control.sa_discoverable_timeout_test
+++ b/server/site_tests/bluetooth_AdapterSASanity/control.sa_discoverable_timeout_test
@@ -3,6 +3,7 @@
 # found in the LICENSE file.
 
 from autotest_lib.server import utils
+from autotest_lib.server.cros.bluetooth import bluetooth_test
 
 AUTHOR = 'chromeos-bluetooth'
 NAME = 'bluetooth_AdapterSASanity.sa_adapter_discoverable_timeout_test'
@@ -28,9 +29,13 @@
 
 args_dict = utils.args_to_dict(args)
 chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
+newblue_enable = args_dict['newblue'] == 'enable'\
+  if 'newblue' in args_dict else False
 
 def run(machine):
     host = hosts.create_host(machine,chameleon_args=chameleon_args)
+    bluetooth_test.newblue_enable_disable(host=host,
+                                          newblue_enable=newblue_enable)
     job.run_test('bluetooth_AdapterSASanity', host=host,
                  num_iterations=1, test_name=NAME.split('.')[1])