Skip to content

Commit 8f69cc2

Browse files
authored
RDKEMW-6718 : Update HdcpProfileImplementation.cpp with test code
1 parent 91046ea commit 8f69cc2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

HdcpProfile/HdcpProfileImplementation.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,23 @@
350350
Core::hresult HdcpProfileImplementation::GetHDCPStatus(HDCPStatus& hdcpstatus,bool& success)
351351
{
352352
success = GetHDCPStatusInternal(hdcpstatus);
353+
if(fopen("/opt/check1.txt","r")!=NULL)
354+
{
355+
return ERROR_FILE_IO;
356+
}
357+
else if(fopen("/opt/check2.txt","r")!=NULL)
358+
{
359+
return ERROR_PERMISSION_DENIED;
360+
}
361+
else if(fopen("/opt/check3.txt","r")!=NULL)
362+
{
363+
return ERROR_BASE;
364+
}
365+
else if(fopen("/opt/check4.txt","r")!=NULL)
366+
{
367+
return MAX_ERROR_CODE;
368+
}
369+
return Core::ERROR_NONE;
353370
return Core::ERROR_NONE;
354371
}
355372

0 commit comments

Comments
 (0)