Merge "audio VTS: Update SetConnectedStateInvalidDeviceAddress" am: 3812519bc1 am: 9f7d0a7f55 am: f0f4df7c2c

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1959939

Change-Id: I812ee096e0800c16901c7b5577376f7b5e48e959
This commit is contained in:
Treehugger Robot 2022-01-25 21:06:36 +00:00 committed by Automerger Merge Worker
commit b79dbd949e

View file

@ -53,9 +53,9 @@ static const DeviceAddress& getInvalidDeviceAddress() {
TEST_P(AudioHidlDeviceTest, SetConnectedStateInvalidDeviceAddress) {
doc::test("Check that invalid device address is rejected by IDevice::setConnectedState");
EXPECT_RESULT(Result::INVALID_ARGUMENTS,
EXPECT_RESULT(invalidArgsOrNotSupported,
getDevice()->setConnectedState(getInvalidDeviceAddress(), true));
EXPECT_RESULT(Result::INVALID_ARGUMENTS,
EXPECT_RESULT(invalidArgsOrNotSupported,
getDevice()->setConnectedState(getInvalidDeviceAddress(), false));
}