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

Commit 2e0754c8 authored by Nathan Harold's avatar Nathan Harold Committed by Automerger Merge Worker
Browse files

Merge "Update UsageSetting Cache before comparison in VTS" am: 63063762 am:...

Merge "Update UsageSetting Cache before comparison in VTS" am: 63063762 am: af9e5f36 am: 5227cdb6 am: 8a5ce406

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

Change-Id: I901713e998da0f12a9aa00b12ad5106a64d7b4a1
parents 911588a8 8a5ce406
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -264,11 +264,16 @@ TEST_P(RadioNetworkTest, setUsageSetting) {
            [&](int serial) { return radio_network->setUsageSetting(serial, originalSetting); },
            {RadioError::NONE});

    // After resetting the value to its original value, update the local cache, which must
    // always succeed.
    invokeAndExpectResponse([&](int serial) { return radio_network->getUsageSetting(serial); },
                            {RadioError::NONE});

    // Check that indeed the updated setting was set. We do this after resetting to original
    // conditions to avoid early-exiting the test and leaving the device in a modified state.
    ASSERT_TRUE(expectedSetting == updatedSetting);
    EXPECT_EQ(expectedSetting, updatedSetting);
    // Check that indeed the original setting was reset.
    ASSERT_TRUE(originalSetting == radioRsp_network->usageSetting);
    EXPECT_EQ(originalSetting, radioRsp_network->usageSetting);
}

/*