Lines Matching refs:drm
89 static void ExpectEqSessionInfo(const SessionInfo& info, sp<DrmSessionClientInterface> drm, in ExpectEqSessionInfo() argument
91 EXPECT_EQ(drm, info.drm); in ExpectEqSessionInfo()
136 sp<DrmSessionClientInterface> drm; in testGetLeastUsedSession() local
138 EXPECT_FALSE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
142 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
143 EXPECT_EQ(mTestDrm1, drm); in testGetLeastUsedSession()
146 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
147 EXPECT_EQ(mTestDrm2, drm); in testGetLeastUsedSession()
152 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
153 EXPECT_EQ(mTestDrm2, drm); in testGetLeastUsedSession()
200 sp<FakeDrm> drm = new FakeDrm; in TEST_F() local
204 mDrmSessionManager->addSession(kTestPid2, drm, sessionId); in TEST_F()
212 ExpectEqSessionInfo(infos2[0], drm, sessionId, 3); in TEST_F()
229 sp<FakeDrm> drm = new FakeDrm; in TEST_F() local
233 mDrmSessionManager->addSession(15, drm, sessionId); in TEST_F()