Fix EnsureProvisioned for double provisioning

[ Merge of http://go/vwvgerrit/147459 ]

Bug: 222355942
Bug: 166849552
Test: GtsMediaTestCases on sunfish
Change-Id: Ia14cad535425af814927b14df8f1ee839ac7dee2
This commit is contained in:
Rahul Frias
2022-03-14 02:56:52 -07:00
parent d6362f6e6b
commit 1ab6872f82

View File

@@ -123,10 +123,9 @@ void show_menu(const char* prog_name, const std::string& extra_help_text) {
<< std::endl;
std::cout << " --initial_time=<time>" << std::endl;
std::cout
<< " Set the initial time on the fake clock. This is ignored"
<< " if fake_sleep was not set." << std::endl
<< std::endl;
std::cout << " Set the initial time on the fake clock. This is ignored"
<< " if fake_sleep was not set." << std::endl
<< std::endl;
std::cout << " --pass=<N>" << std::endl;
std::cout << " Run test pass N. This is used for reboot tests that "
@@ -448,7 +447,9 @@ void WvCdmTestBase::EnsureProvisioned() {
Provision();
status = cdm_engine.OpenSession(config_.key_system(), nullptr, nullptr,
&session_id);
if (status == NEED_PROVISIONING) {
continue;
}
ASSERT_EQ(NO_ERROR, status);
status = cdm_engine.GenerateKeyRequest(session_id, key_set_id, init_data,
kLicenseTypeStreaming,