Merge "Update PerOriginProvisioningSupportsOldPaths" into oc-mr1-dev

am: 4a4f9ff815

Change-Id: Ic4c16c14c0bdb5e19396c48b77c7b0b17fe95fd1
This commit is contained in:
Fred Gylys-Colwell
2017-09-01 00:57:02 +00:00
committed by android-build-merger

View File

@@ -1376,8 +1376,12 @@ TEST_F(WvCdmRequestLicenseTest, PerOriginProvisioningSupportsOldPaths) {
// Make sure that the cert exists.
std::vector<std::string> files;
ASSERT_TRUE(FileUtils::List(base_path, &files));
ASSERT_EQ(1u, files.size());
EXPECT_EQ(kOldFileName, files[0]);
ASSERT_LE(1u, files.size());
bool found_it = false;
for(std::string file: files) {
if (file == std::string(kOldFileName)) found_it = true;
}
EXPECT_TRUE(found_it);
// Reprovision the default identifier.
Provision(kDefaultCdmIdentifier, kLevel3);