-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh#100: dsVideoPort: Add L1 and L2 Test cases for ALLM APIs #129
base: develop
Are you sure you want to change the base?
Conversation
957213f
to
dcf1de2
Compare
739d7af
to
7d9eb13
Compare
Add L1 and L2 test cases for dsSetAllmEnabled and dsGetAllmEnabled
7d9eb13
to
1d0ebe0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added review comments
src/test_l1_dsVideoPort.c
Outdated
gTestID = 79; | ||
UT_LOG("\n In %s [%02d%03d]\n", __FUNCTION__, gTestGroup, gTestID); | ||
|
||
dsError_t status; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initialize with default values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
UT_LOG("\n In %s [%02d%03d]\n", __FUNCTION__, gTestGroup, gTestID); | ||
|
||
dsError_t status; | ||
intptr_t handle = 0, valid_handle = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initialize with default values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/test_l1_dsVideoPort.c
Outdated
gTestID = 81; | ||
UT_LOG("\n In %s [%02d%03d]\n", __FUNCTION__, gTestGroup, gTestID); | ||
|
||
dsError_t status; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initialize with default values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added review comments
Step3 -->|dsERR_NONE|Step4[Call dsGetAllmEnabled API] | ||
Step4 -->|dsERR_NONE|Step5[Compare ALLM Status] | ||
Step5 -->|loop through | Step2 | ||
Step5 -- "dsERR_NONE" --> Fail6[Test Case Failed] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not dsERR_NONE is a failure case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/test_l1_dsVideoPort.c
Outdated
*/ | ||
void test_l1_dsVideoPort_positive_dsGetAllmEnabled(void) { | ||
gTestID = 79; | ||
UT_LOG("\n In %s [%02d%03d]\n", __FUNCTION__, gTestGroup, gTestID); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you rebase the branch, UT_LOG is replaced with UT_LOG_INFO
for consistence use UT_LOG_INFO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
UT_ASSERT_EQUAL(status, dsERR_NONE); | ||
} | ||
else { | ||
UT_ASSERT_EQUAL(status, dsERR_INVALID_PARAM); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this -ve test case ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API is supported only for HDMI port
UT_ASSERT_EQUAL(status, dsERR_INVALID_PARAM); | ||
} | ||
else if (gSourceType == 0) { | ||
UT_ASSERT_EQUAL(status, dsERR_OPERATION_NOT_SUPPORTED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here dsERR_INVALID_PARAM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as per the interface doc, for sink devices API returns dsERR_OPERATION_NOT_SUPPORTED
UT_ASSERT_EQUAL(status, dsERR_NONE); | ||
} | ||
else { | ||
UT_ASSERT_EQUAL(status, dsERR_INVALID_PARAM); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this -ve test case ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API is supported only for HDMI port. For other ports its returns invalid
Addressed review comments
164a409
to
73f3132
Compare
Addressed review comments
Add L1 and L2 test cases for dsSetAllmEnabled and dsGetAllmEnabled