Ref count WvCdmDecryptionModule in cdm_extended_duration_tests

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

WvCdmDecryptionModule needs to be refcounted since it inherits
from RefBase. The test code instantiates it as a member variable.

Bug: 133188706
Test: WV unit/integration tests
Change-Id: I8ae3d92ae148677ea9a8290a6c0553c1a43e3454
This commit is contained in:
Rahul Frias
2019-05-27 17:19:20 -07:00
parent 96c36fa25e
commit 6004c2a945
2 changed files with 113 additions and 111 deletions

View File

@@ -1623,8 +1623,9 @@ class TestWvCdmEventListener : public WvCdmEventListener {
class DecryptCallbackTester {
public:
DecryptCallbackTester(android::sp<wvcdm::WvContentDecryptionModule> decryptor,
SubSampleInfo* sub_sample_info)
DecryptCallbackTester(
const android::sp<wvcdm::WvContentDecryptionModule>& decryptor,
SubSampleInfo* sub_sample_info)
: decryptor_(decryptor),
sub_sample_info_(sub_sample_info) {}