Re-enable Binary Provisioning Test
(This is a merge of http://go/wvgerrit/69843) It turns out the reason the binary provisioning unit test was failing is because the test base class was setting the property to turn on binary provisioning before calling Init(), however all current Init() implementations overwrite the value of that field. As such, the tests weren't actually using binary provisioning. With that fixed, everything passes; the binary provisioning flow doesn't appear to actually be broken. Bug: 112046733 Test: CE CDM Unit Tests Test: Android Unit Tests Change-Id: I7413f7fb2227e596fb610d6ddc5b95cda2f406b8
This commit is contained in:
@@ -315,8 +315,7 @@ TEST_F(WvCdmEnginePreProvTestUat, ProvisioningServiceCertificateInvalidTest) {
|
||||
|
||||
TEST_F(WvCdmEnginePreProvTestStaging, ProvisioningTest) { Provision(); }
|
||||
|
||||
// TODO(b/112046733): This test is broken. It should be fixed.
|
||||
TEST_F(WvCdmEnginePreProvTestUatBinary, DISABLED_ProvisioningTest) {
|
||||
TEST_F(WvCdmEnginePreProvTestUatBinary, ProvisioningTest) {
|
||||
Provision();
|
||||
}
|
||||
|
||||
|
||||
@@ -203,8 +203,8 @@ class TestCryptoSessionFactory : public CryptoSessionFactory {
|
||||
|
||||
void WvCdmTestBase::SetUp() {
|
||||
::testing::Test::SetUp();
|
||||
Properties::set_provisioning_messages_are_binary(binary_provisioning_);
|
||||
Properties::Init();
|
||||
Properties::set_provisioning_messages_are_binary(binary_provisioning_);
|
||||
// Log the current test name, to help with debugging when the log and stdout
|
||||
// are not the same.
|
||||
const ::testing::TestInfo* const test_info =
|
||||
|
||||
Reference in New Issue
Block a user