Audio VTS was testing wrong uninitialized variable due to typo

am: 72641e7ad0

Change-Id: I590efc99f853e1db7fa0747f9c91946913bb3679
This commit is contained in:
Kevin Rocard
2018-06-28 20:03:20 -07:00
committed by android-build-merger

View File

@@ -558,11 +558,11 @@ TEST_F(AudioPrimaryHidlTest, SetConnectedState) {
address.device = deviceType;
auto ret = device->setConnectedState(address, state);
ASSERT_TRUE(ret.isOk());
if (res == Result::NOT_SUPPORTED) {
if (ret == Result::NOT_SUPPORTED) {
doc::partialTest("setConnectedState is not supported");
return;
}
ASSERT_OK(res);
ASSERT_OK(ret);
}
}
}