20 #include "opencdmMocks.h"
24 struct OpenCDMSystem* opencdm_create_system(
const char keySystem[])
26 return g_mockOpenCdm->opencdm_create_system(keySystem);
29 OpenCDMError opencdm_construct_session(
struct OpenCDMSystem* system,
30 const LicenseType licenseType,
31 const char initDataType[],
32 const uint8_t initData[],
33 const uint16_t initDataLength,
34 const uint8_t CDMData[],
35 const uint16_t CDMDataLength,
36 OpenCDMSessionCallbacks* callbacks,
38 struct OpenCDMSession** session)
40 return g_mockOpenCdm->opencdm_construct_session(system,
52 OpenCDMError opencdm_destruct_system(
struct OpenCDMSystem* system)
54 return g_mockOpenCdm->opencdm_destruct_system(system);
57 KeyStatus opencdm_session_status(
const struct OpenCDMSession* session,
58 const uint8_t keyId[],
61 return g_mockOpenCdm->opencdm_session_status(session, keyId, length);
64 OpenCDMError opencdm_session_update(
struct OpenCDMSession* session,
65 const uint8_t keyMessage[],
66 const uint16_t keyLength)
68 return g_mockOpenCdm->opencdm_session_update(session, keyMessage, keyLength);
71 OpenCDMError opencdm_gstreamer_session_decrypt(
struct OpenCDMSession* session,
74 const uint32_t subSampleCount,
77 uint32_t initWithLast15)
79 return g_mockOpenCdm->opencdm_gstreamer_session_decrypt(session, buffer, subSample, subSampleCount, IV, keyID,initWithLast15);
82 OpenCDMError opencdm_session_decrypt(
struct OpenCDMSession* session,
84 const uint32_t encryptedLength,
88 const uint16_t keyIdLength,
89 uint32_t initWithLast15,
91 uint16_t streamInfoLength)
93 return g_mockOpenCdm->opencdm_session_decrypt(session, encrypted, encryptedLength, IV, IVLength, keyId, keyIdLength, initWithLast15, streamInfo, streamInfoLength);
96 OpenCDMError opencdm_session_close(
struct OpenCDMSession* session)
98 return g_mockOpenCdm->opencdm_session_close(session);
101 OpenCDMError opencdm_destruct_session(
struct OpenCDMSession* session)