RDK Documentation (Open Sourced RDK Components)
playreadyFakes.cpp
1 /*
2  * If not stated otherwise in this file or this component's license file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2022 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 #define FAKE_FUNCTION(x) \
21 void x(); \
22 void x() {}
23 
24 #define FAKE_SYMBOL(x) \
25 extern void *x; \
26 void *x;
27 
28 extern "C" {
29 FAKE_SYMBOL(g_dstrDrmPath)
30 FAKE_SYMBOL(g_dstrWMDRM_RIGHT_PLAYBACK)
31 
32 FAKE_FUNCTION(DRM_B64_EncodeA)
33 FAKE_FUNCTION(Drm_Content_SetProperty)
34 FAKE_FUNCTION(DRM_DWordAdd)
35 FAKE_FUNCTION(DRM_DWordMult)
36 FAKE_FUNCTION(DRM_DWordSub)
37 FAKE_FUNCTION(Drm_Initialize)
38 FAKE_FUNCTION(Drm_LicenseAcq_GenerateChallenge)
39 FAKE_FUNCTION(Drm_LicenseAcq_ProcessResponse)
40 FAKE_FUNCTION(Drm_Reader_Bind)
41 FAKE_FUNCTION(Drm_Reader_Close)
42 FAKE_FUNCTION(Drm_Reader_Commit)
43 FAKE_FUNCTION(Drm_Reader_Decrypt)
44 FAKE_FUNCTION(Drm_Reader_InitDecrypt)
45 FAKE_FUNCTION(Drm_Reinitialize)
46 FAKE_FUNCTION(DRM_REVOCATION_IsRevocationSupported)
47 FAKE_FUNCTION(Drm_Revocation_SetBuffer)
48 FAKE_FUNCTION(DRMCRT_memcmp)
49 FAKE_FUNCTION(DRMCRT_memcpy)
50 FAKE_FUNCTION(DRMCRT_memset)
51 FAKE_FUNCTION(Oem_MemAlloc)
52 FAKE_FUNCTION(Oem_MemFree)
53 FAKE_FUNCTION(Oem_Random_GetBytes)
54 }