Merge "Bluetooth: Check the return value of initialize()"

am: f570fedcd4

Change-Id: I4451755b0d9994d96d78452bc51b0f0af6ab7ebd
This commit is contained in:
Myles Watson 2017-02-22 03:41:54 +00:00 committed by android-build-merger
commit e3bbdea832

View file

@ -123,7 +123,7 @@ class BluetoothHidlTest : public ::testing::Test {
// currently test passthrough mode only
bluetooth = IBluetoothHci::getService();
ASSERT_NE(bluetooth, nullptr);
ALOGW("%s: getService() for bluetooth is %s", __func__,
ALOGI("%s: getService() for bluetooth is %s", __func__,
bluetooth->isRemote() ? "remote" : "local");
bluetooth_cb = new BluetoothHciCallbacks(*this);
@ -255,7 +255,7 @@ class BluetoothHidlTest : public ::testing::Test {
virtual ~BluetoothHciCallbacks() = default;
Return<void> initializationComplete(Status status) override {
parent_.initialized = true;
parent_.initialized = (status == Status::SUCCESS);
parent_.notify_initialized();
ALOGV("%s (status = %d)", __func__, static_cast<int>(status));
return Void();