Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4993240b authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audio VTS: Update SetConnectedStateInvalidDeviceAddress

Allow IDevice.setConnectedState to return NOT_SUPPORTED
when invalid device address is passed in.

Bug: 214426419
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I5084cbeedc10696e215c8decc235433849c3bfce
parent a366ec1a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));
}