Remove usage info clean up test tear down.

[ Merge of http://go/wvgerrit/160857 ]

Reboot tests were attempting to clean up usage info records when the
tests were done.  However, usage info are no longer supported.
Unfortunately, the clean up code would trigger a test failure if the
usage info records could not be deleted.

Bug: 258469123
Test: OfflineLicenseTest.VariousTests
Change-Id: I17cebd82da1e45ef53853d35dbe314365a1909be
This commit is contained in:
Alex Dale
2022-11-09 14:42:31 -08:00
parent a84c7b8ac4
commit b0bb45876d

View File

@@ -707,16 +707,6 @@ class OfflineLicenseTest : public RebootTest {
for (auto key_set : key_set_ids) {
cdm_engine_.RemoveOfflineLicense(key_set, kSecurityLevelL1);
}
// TODO(b/215230202): Is this necessary? It doesn't seem to work.
std::vector<std::string> ksids;
std::vector<std::string> pst;
std::string app_id = "";
EXPECT_EQ(NO_ERROR,
cdm_engine_.ListUsageIds(app_id, kSecurityLevelL1, &ksids, &pst));
for (auto k : ksids) {
EXPECT_EQ(NO_ERROR,
cdm_engine_.DeleteUsageRecord(app_id, kSecurityLevelL1, k));
}
}
std::vector<std::vector<std::unique_ptr<OfflineLicense>>> test_case_;