Lines Matching refs:drm
93 static void ExpectEqSessionInfo(const SessionInfo& info, sp<DrmSessionClientInterface> drm, in ExpectEqSessionInfo() argument
95 EXPECT_EQ(drm, info.drm); in ExpectEqSessionInfo()
140 sp<DrmSessionClientInterface> drm; in testGetLeastUsedSession() local
142 EXPECT_FALSE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
146 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
147 EXPECT_EQ(mTestDrm1, drm); in testGetLeastUsedSession()
150 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
151 EXPECT_EQ(mTestDrm2, drm); in testGetLeastUsedSession()
156 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
157 EXPECT_EQ(mTestDrm2, drm); in testGetLeastUsedSession()
204 sp<FakeDrm> drm = new FakeDrm; in TEST_F() local
208 mDrmSessionManager->addSession(kTestPid2, drm, sessionId); in TEST_F()
216 ExpectEqSessionInfo(infos2[0], drm, sessionId, 3); in TEST_F()
233 sp<FakeDrm> drm = new FakeDrm; in TEST_F() local
237 mDrmSessionManager->addSession(15, drm, sessionId); in TEST_F()