Update PerOriginProvisioningSupportsOldPaths
Merge from Widevine repo of http://go/wvgerrit/32067 PerOriginProvisioningSupportsOldPaths is changed to allow for there to be several other device files. bug:64952779 Test: unit tests on bullhead. Change-Id: I0593d95a877c236c9a87c5893bbec22abe25fde9
This commit is contained in:
committed by
Jeff Tinker
parent
e492811200
commit
fb1e0623ad
@@ -1376,8 +1376,12 @@ TEST_F(WvCdmRequestLicenseTest, PerOriginProvisioningSupportsOldPaths) {
|
|||||||
// Make sure that the cert exists.
|
// Make sure that the cert exists.
|
||||||
std::vector<std::string> files;
|
std::vector<std::string> files;
|
||||||
ASSERT_TRUE(FileUtils::List(base_path, &files));
|
ASSERT_TRUE(FileUtils::List(base_path, &files));
|
||||||
ASSERT_EQ(1u, files.size());
|
ASSERT_LE(1u, files.size());
|
||||||
EXPECT_EQ(kOldFileName, files[0]);
|
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.
|
// Reprovision the default identifier.
|
||||||
Provision(kDefaultCdmIdentifier, kLevel3);
|
Provision(kDefaultCdmIdentifier, kLevel3);
|
||||||
|
|||||||
Reference in New Issue
Block a user